recursive box game/toy prototype.
Go to file
transoptimal f64679ca43 fix world save & load bug.
previously, serialization of world data couldn't handle boxes, since
they contain references to their parents, meaning worlds are cyclic.
this commit fixes this, and changes world loading to correctly re-assign
parents to boxes after deserializing them.

this bug is what happens when you commit without testing for more than a
few seconds.
2023-06-24 18:10:58 +02:00
assets add demo video. 2023-06-24 14:31:50 +02:00
js fix world save & load bug. 2023-06-24 18:10:58 +02:00
README.md add keys for more paint colors. 2023-06-24 15:36:25 +02:00
favicon.ico get basic graphics set up. 2023-06-24 14:15:27 +02:00
index.html add autosave and world reset button. 2023-06-24 17:38:04 +02:00
style.css get basic graphics set up. 2023-06-24 14:15:27 +02:00

README.md

overview

the player character is currently the dark green square. creating new tiles creates them where you're standing, so you have to move out of the way to see them.

moving onto boxes makes you enter them. right now, this doesn't change your position; in the future entering a box from e.g. the left side will make you move to its left edge.

moving out of bounds makes you exit the box, if you're in one. this also doesn't change your position yet. if you exit at a position where there's another box in the one you exit into, you'll immediately enter that box.

there's a demo video at /assets/demo_video.webm.

controls

  • arrow keys: move around.
  • QWEASD: paint with RGBYCM colors, respectively.
  • ZX: paint with background colors.
  • CV: paint with black and white.
  • space: create box.
  • backspace: delete/clear/empty tiles to your left and right, and where you're standing.

how to play

run a server in the root directory and open index.html in a web browser.