1.9 KiB
1.9 KiB
Build Guidelines
Create an HTML Phaser 3 video game. This game will be a top down space shooter game, similar to Asteroids but with several modifications.
Tools and Organization
- Phaser version 3 HTML game
- Use Javascript
- Do NOT require a web packager. Have JS objects reference each other directly via IMPORT and EXPORT using ES6 standards
Basic Framework
- 1600 x 900 view
- Use termporary vector graphics that can later be replaced by sprites
Gameplay
- There should be multiple levels in this game.
- A level ends when all asteroids and alien ships are destroyed.
- When a new level begins, the player always begins in the middle of the screen.
- Asteroids spawn at the beginning of each level.
- Asteroids rotate slowly in a random direction and a random low speed.
- When Large Asteroids are shot and destroyed, they turn into either mid sized or small asteroids (between 1 and 3 total)
- When mid sized asteroids are destroyed, they turn into two small asteroids.
- When small asteroids are destroyed, they are completely destroyed.
- Periodically alien ships will attack.
- They move towards the player's ship and fire occasionally.
- WHen the alien ship is hit with a shot from the player, it is destroyed.
Controls
- Player's space ship follows the mouse cursor.
- The space ship can only rotate to follow the mouse at the rate of 2 seconds to turn 360 degrees.
- If the user moves the mouse the players ship will rotate automatically at this rate until it is pointing in the direction of the mouse cursor.
- The left mouse button fires the accelerator for the space ship.
- In all cases the space ship is in zero gravity.
- It takes a couple seconds to get the ship to full acceleration.
- If the player stops accelerating the ship continues to move in it's current direction until it decelerates.
- The player can use the "a" key or "space" key to fire.