- Day 7 -
Tons of progress! Got map collision detection working where all I have to do is check a box on the sprite to make it solid. Refactored my camera code to stay on a subsection of the map. Also finally got around to building a framework for handling all objects which was actually a lot easier than I expected due to the way tables are handled, which makes inheritance super easy. Lastly, I got animated map tiles working with another simple flag, and I think it's coded pretty efficiently even.
The only problem that's kind of important to figure out is I have a crash if I hit a corner with a pixel-perfect diagonal collision, so I'll be digging though the collision code a bit. Up next is actually coding puzzles and events for the game portion, but I'm pretty pleased with the framework I've built so far :D
-Edit- turns out the crash was likely caused by some rounding errors in the collision check that led to an infinite loop, so I added a timeout to the command that appears to fix the issue while keeping collision working as it should.
List of features to work on in week 2:
sounds/music (effects, plus 1 chill song, 1 action song)
player object interactions
2 rudimentary puzzle options
2 cutscenes
Splash page/Death screen/Win screen