Guest User

Untitled

a guest
May 24th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. // an object containing the state of a game
  2. state = {
  3. level: string, // unique id of level object (see datastructure.js)
  4. changes: [{ // stores changes to the actual labyrinth, to override definition in level object
  5. wall/borderid: string,
  6. newtype: "type"
  7. }, ...],
  8. entities: [{
  9. type: "type", // if different from start type
  10. x: int, // start x
  11. y: int // start y
  12. }, ...],
  13. flags: [string, ...], // all flags currently set (if any)
  14. vars: { // all variables with nonzero values (if any)
  15. var: int, ...
  16. },
  17. moves: int // number of moves used so far
  18. }
Add Comment
Please, Sign In to add comment