Cell-based movement

Ok, another little “experiment”: cell-based movement. On each keypress the character slides 8 pixels left, right, up or down, thus keeping aligned with the tiles. Also, the character’s position is constrained to the inside of the “room.” Next up: solid walls and some cell-based collision detection (i.e. divide coordinates by 8 and compare…)

minild45grid

 

On the game design front, this is turning into a series of rooms that the player has to traverse avoiding hazards and maybe solving simple puzzles. Vague and yet not very original, I know… ;P