Noah Petherbridge
c3d7348843
* Added an inventory system for actors as a replacement to the arbitrary key/value data store. Colored keys now add themselves to the player's inventory, and colored doors check the inventory. * Inventory is a map[string]int between doodad filenames (red-key.doodad) and quantity (0 for key items/unlimited qty). * API methods to add and remove inventory. * Items HUD appears in Play Mode in lower-left corner showing doodad sprites of all the items in the Player's inventory. |
||
---|---|---|
.. | ||
blue-closed.png | ||
blue-key.png | ||
blue-left.png | ||
blue-right.png | ||
blue1.png | ||
blue2.png | ||
build.sh | ||
colored-door.js | ||
electric-door.js | ||
electric.gif | ||
electric1.png | ||
electric2.png | ||
electric3.png | ||
electric4.png | ||
green-closed.png | ||
green-key.png | ||
green-left.png | ||
green-right.png | ||
green1.png | ||
green2.png | ||
keys.js | ||
locked-door.js | ||
README.md | ||
red-closed.png | ||
red-key.png | ||
red-left.png | ||
red-right.png | ||
red1.png | ||
red2.png | ||
yellow-closed.png | ||
yellow-key.png | ||
yellow-left.png | ||
yellow-right.png | ||
yellow1.png | ||
yellow2.png |
Button Doodads
doodad convert -t "Red Door" red1.png red2.png red-door.doodad
doodad convert -t "Blue Door" blue1.png blue2.png blue-door.doodad
doodad convert -t "Green Door" green1.png green2.png green-door.doodad
doodad convert -t "Yellow Door" yellow1.png yellow2.png yellow-door.doodad
doodad convert -t "Red Key" red-key.png red-key.doodad
doodad convert -t "Blue Key" blue-key.png blue-key.doodad
doodad convert -t "Green Key" green-key.png green-key.doodad
doodad convert -t "Yellow Key" yellow-key.png yellow-key.doodad
doodad convert -t "Electric Door" electric{1,2,3,4}.png electric-door.doodad