OPEN GAME AI COMMONS
KINETICGRID / TECHNICAL OVERVIEW01
Snapshotv1 + Commandsordered + Δtfixed + Engineversion = Statesame
{
"version": 1,
"clock": { "tick": 480 },
"randomState": 319742901,
"grid": { "width": 15 },
"entities": [ ... ],
"bombs": [ ... ]
}
import {
FixedStepRunner,
createBomberBattleWorld
} from "@open-game-ai/kinetic-grid";
const { world, player } =
createBomberBattleWorld({
seed: "lesson-01",
level: 4
});
world.events.on("bombExploded",
({ cells }) => renderBlast(cells));
world.queueCommand({
type: "bomb",
entityId: player.id
});
const checkpoint = world.snapshot();