26 December 2014

Developing Square Drop - Part 5

It's another day at the office, and today I have finally managed to spawn the platforms continuosly, and move the gaps at random left and right positions. This puts a big smile on my face, because it was a massive struggle that's been going on for hours and hours but I have overcome it!

Other things I have learnt and done:
  • Named the spawning platforms individually thanks to which they're unique allowing me to access each one independently
  • 5 platforms spawn at the beginning, each being separated by another by the same distance, they then spawn one by one continuosly
  • When a platform is beaten and it moves above the square it disappears using the Destroy() command
  • Platforms' gaps are positions left and right simultaneously. They're also randomised each time which improves replayability
  • Learnt how to return a random number at a provided range
Although I've summarised it all in 5 bullet points, I cannot stress how much C# I have learned recently. Hopefully by tomorrow I'll have a fully working Square Drop!

No comments:

Post a Comment