Friday, August 16, 2013

Lets talk about states

... but first!  Complete sprite sheet!!!


Second, there is an algorithm being planned for the movement.

Now, when the player presses a key on the keyboard or clicks/moves the mouse or tap/swips a touchscreen the machine recieves an event from the interupt prompts.  Detail at the moment on this mechanism isn't that important, just that these events determine things in the game like the direction that the character is facing.

For the purposes of this, the states are going to be for determining which lovely image of Arianna would be used for the motion.  Now, I have thought this through.


There will be a direction variable and a boolean for movement.  The sprite will not only move if the boolean is true, but the animations will cycle in accordance to the direction.  Else the stationary images are used and the sprite does not move.

I'll show you what I have when it comes.

No comments:

Post a Comment