hoylemd / deathdeath

death death and more death. death? death!
0 stars 0 forks source link

Player movement #12

Closed hoylemd closed 12 years ago

hoylemd commented 12 years ago

The player should be able to move around the game area with the arrow keys

hoylemd commented 12 years ago

I've added movement through the arrow keys.

There is a dd.spriteGrid object that is a 2d 32x32 array. a character put into one of these elements will e drawn to the corresponding span when dd.drawSprites() is called. if nothing is to be drawn to that span, insert null into that element. Upon pressing a key, the player's move() function is called, and immediately the dd.drawSprites() function is called to update the display

rocky1138 commented 12 years ago

Changed this functionality to call the processTick() function instead of drawSprites(). Inside processTick() all kinds of round-ending events happen (enemies will move, sounds play, doors open/close, items drop, etc.)