hoylemd / deathdeath

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

Player object #13

Closed hoylemd closed 12 years ago

hoylemd commented 12 years ago

There should be a player object containing all of it's Methods and attributes.

hoylemd commented 12 years ago

I've created a dd.player object.

it has an x and a y variable hidden through closure. Also, a hidden link to the dd.spriteGrid object hidden through closure It has an exposed move() function. It accpts 2 parameters dx and dy. These represent the change in tiles in the player's position on the x and y axes respectively.