Closed hoylemd closed 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.
There should be a player object containing all of it's Methods and attributes.