Zapperz! Instructions
How to play
- What is this about?
- Your task is to kill all of the aliens.
- The aliens are green blocks and they will fight you.
- But be careful when fighting back, you only have 3 lives! Lose them all and it's game over.
- You will also have four shields, each shield can be broken by the aliens or your laser.
- Once a shield takes four hits, it is gone.
- You can keep going if you destroy all of the aliens in one round to improve your score, but each time you continue, it does get more challenging
- Once you run out lives, your score will be reset the next round.
- Controls
- Moving Left: LeftArrow, a, j
- Moving Right: RightArrow, d, l
- Fire Laser: f
Other Notes
- Interesting or Problematic Code
- Collision detection for the aliens was some of the most problematic code I've had to work with. Mostly because the y axis was inverted
- Other than alien collison, all of the other collision were pretty easy
- This game was going to have an aim assist feature so that you could easily predict shots.
- This was scrapped due to it being kind of dumb and was causing some speed issues as more items got added
- Not terriably interesting but the way the aliens moved is only track by the top two corners of the alien grid and changes depending on if the alien is alive or not.
- I added the comments above the canvas as a little bit of a goofy quirky to the game but over time became more useful as a game mechanic
- Components Added / What's different
- I should have everything from the list added in this project.
- All member data is private and use get and set to retrieve canvas information.
- A defender is implemented and has movement.
- A block of aliens are implemented with a small explosion animation, travels appropriately, can shoot lasers, and the aliens speed up as more are destroyed.
- Note: This game has rounds, and is pratically endless-if you have enough lives. The speed of the aliens after each round will not reset and the aliens get faster and faster.
- After every 5 aliens die, then the aliens speed up slightly in the game
- There are four shields in the game and regenerate after a round is completed. Each shield can take up to four hits before it can be destroyed by either the player or the aliens.
- There are elements in the game that show if you won or lost a round.
- if the aliens reach the bottom and the ship still has lives, the aliens will reset to their initial position but keep the speed they had.
- The defender does have mutiple lives.
- There are HTML elements that display the score and the amount of lives the defender has.
Assignment Information
- Zappers! is made by Joseph Graves for Computer Graphics (CMAC-3780).
Click here to play