News for hackers. Stuff that matters.

joshuamanton

All pointer reads/writes are sandboxed. The game state is a power of two number of bytes (64MB right now, might have to bump this up as people make more complex games), so we can use masking to quickly clamp any pointer to the sandbox by computing `game_state_base + (<pointer> & (game_state_size-1))` before doing the access. That masking makes sure you can't access anything outside the game state, but you can corrupt your own game state if you'd like!

Show HN: I built the first scripting language for multiplayer game dev

https://docs.allout.game/scripting/syntax

Hi HN,I&#39;m one of the engine programmers at All Out Games (https://allout.game/), a multiplayer-first gaming UGC platform where creators can make and play games with their friends. For scripting we wanted our creators to be able to jump in and create game mechanics without having to think about networking. If a developer had to manually send packets to/from client/server to get things to...

( Read More... | 2 comments | 5 points | on HN )