Games from Nothing: Black & White Exercise #1 — Up to the Circles

Screen Capture #013

The game is called UP TO THE CIRCLES and the goal is to bring the square between those two circles which are doing a circular motion.

On the bottom left player is able to see its score and to goal is to get as close as to 100, so 99 would be the highest score you can get but once you get to 100 that means you exceeded the limit which ends the game.

It was my first time using circular motion and if else statement so I decided to be as simple as possible. In order to move the square I used mouseY to move it vertically so square is just able to move on the Y direction. Every time Y is in the circle’s range the score increases pretty fast. In order to get 99 you have to be really careful.

Screen Capture #014

Once you get 100, the text that says GAME OVER  pops up on the screen to let you know that you lost the game and  if you get 99 game pops a screen that says HIGH SCORE CONGRATS!!!

As a first game I felt pretty confident using the code and understand stuff, but I hope to come up with new stuff in the future.

Enjoy playing UP TO THE CIRCLES!!!

Author: Ege Ozcan