Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Catch the Objects

tetishi
March 15, 2021

Catch the Objects

tetishi

March 15, 2021
Tweet

More Decks by tetishi

Other Decks in Programming

Transcript

  1. Why did we create this game? Our initial idea was

    to create a game similar to tetris however the code for the different shapes and sizes along with the movement and control of the objects was more complicated than we thought. So, we decided to use the idea of dropping an object from the top of the screen from tetris and catching it on the bottom of the screen with a basket to gain points. We also added different shapes and colors for the objects to make it more interesting.
  2. Starting Menu When the user run the program, this window

    is shown. If the user clicks OK, the game starts. If the user clicks Cancel, the program ends.
  3. GUI

  4. Rules of the game • You can use mouse or

    keyboard to move the basket. • Catching each ball the player earns 10 points. • Catching each square the player earns 50 points • After scoring 100 points, the points earned for each object is decreased to half i.e. 5 for each ball and 25 for each square. • You have 10 lives which means you lose 1 life each time you miss the object and if you miss 10 objects the game is over.
  5. Restart or Quit the game After you click OK on

    the previous window the window below appears This window asks you whether or not you want to restart the game. If you click OK, the game restarts. If you click Cancel, the program ends.
  6. This block of codes moves the balls, determine if the

    user catches the balls, reset balls, update the score and the life, and setting the speed of balls.
  7. This block of codes moves the squares, determine if the

    user catches the square, reset squares, update the score and the life, and setting the speed of squares.
  8. These blocks of codes display the game over option, if

    the user chooses OK, the game restarts. If the user chooses Cancel the program ends.