My Second Post
Last updated: Oct 20, 2019
So, we’ve come up with our brilliant idea, setup the project and laid down our side-scrolling background. Time to get our player on the screen as well as get him moving.
The Game Rules
In our game, the player moves sideways while many adorable pups pass him and he simply must pet them before he loses the chance. At first glance it may be tempting to give our player free reign of the screen.
But this is our MVP - and our motto here is to keep it simple. If dogs come in continuously across the screen horizontally, I decided it would be good enough to have the player move up and down to try and ‘catch’ them before they pass. Not only does it make my life easier, but it adds a little extra gameplay difficulty.
The Player.
First I consider what a player is. He has a width, a height, an x and y coordinate on the grid - which can be updated to allow him to ‘move’ - as well as an image representation.
I split up the Player into three steps.
| Movement | Hitbox | Animation |
|---|---|---|
| up and down | able to check if is in the same position as another object | smooth sprite animation |
| bounces off boundaries | is a simple rectangle | continous loop |

This adorable derpy dinosaur comes from the free assets section at itch.io. I used a third party app to separate the gif into separate sprites to use later in my walking animation -
Disqus comments are disabled.