20 December 2014

Developing Square Drop - Part 3

This week I've managed to make the square move in the opposite direction as soon as it lands on a new platform. That means that I'm only a few steps away from completing my prototype - all I need to do is spawn platforms continuosly, place the gaps through code once on the left side, once on the right, and add the scoring system.

This is what I've done and learnt:
  • Managed to make the square move once left and once right simultaneously, each time it touches a new platform
  • Added scoring, so each time the square successfully drops through the gap the player gets a point
  • Learnt how to refer to a function from another class
  • Organised code - there are now more functions and less repeatitive code, to make it more readible
This is the current stage:

This is a screenshot of the game:
And as usual I'm going to share the code:




No comments:

Post a Comment