.
CCES Middle Computer Science
Mrs. Karen Polstra
  • Home
  • App Inventor
  • Code Club 7/8
  • Code Club 5/6
  • NXT Bluetooth Tutorials
  • Hour of Code
  • Conference Prep
  • Camps
  • ISTE 2017

EdX App Inventor Final Project

Picture
A Space Shooter Game
I teach App Inventor in a middle school so I created a shooter game that kids can use as an inspiration for creating games themselves.  And it is fun to play!
Picture

Description:

Use the "Left" and "Right" buttons to move the rocket ship.  The "Fire" button shoots the missiles.  Try to explode as many aliens as you can in 60 seconds.  If you explode greater than 20 then "You Win" otherwise "You Lose".  If you win then your score is compared to a TinyDB high score and if your score is greater then you are notified and your score becomes the new high score.

Downloading the Game:

Here is the .apk file to download to your phone.  Enjoy!
Picture

Testing the game:

  • I only had a very small Android phone to test this on, so I would like some feedback as to how it looks on a larger platform.
  • Try playing the game so that you score less than 20 in 60 seconds.  Then more than 20 and then try doing better or worse than your last score to see if the TinyDB is keeping track of the high score correctly.

Technical Description

Picture
I use the countdown variable to end the game after 60 seconds and I use the score variable to keep score. The TinyDB is used to store the high score for the game.
Picture
In addition to the procedure on the left, I have these two that make the aliens appear (called three times) and resets the game (called twice).
Picture
This should cover it for if/else statements.
Proudly powered by Weebly