1 May 2015

Polishing Square Drop

This week I've been working on Square Drop, and here are the things I've improved:
  • The code for the platforms spawning has been improved so that a new platform spawns when the previous one is in a certain y position, as opposed to when it gets destroyed as it used to be. The distance between the platforms should be more equal now than what it used to be
  • Added a highscore
  • Added a restart button
  • Used a skin to allign the score text so that it stays in the middle no matter how big the number is
  • Used a skin to allign the score in the right hand corner of the screen, and made the font smaller than the actual score so that player's eyes are focused on their score
  • Removed the gap and sensor objects attached to the platform, as they were redundandly taking up space and instead coded the game in a more reliable way without using them
There were possibly some more tweak ups I have done but forgot to note down, but nevertheless the most important ones I have mentioned.

Here are the screenshots of the updated code:

SquareClass:

PlatformClass:

PlatformSpawnClass:

GUIClass:

ClickClass:

No comments:

Post a Comment