Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // an object containing the state of a game
- state = {
- level: string, // unique id of level object (see datastructure.js)
- changes: [{ // stores changes to the actual labyrinth, to override definition in level object
- wall/borderid: string,
- newtype: "type"
- }, ...],
- entities: [{
- type: "type", // if different from start type
- x: int, // start x
- y: int // start y
- }, ...],
- flags: [string, ...], // all flags currently set (if any)
- vars: { // all variables with nonzero values (if any)
- var: int, ...
- },
- moves: int // number of moves used so far
- }
Add Comment
Please, Sign In to add comment