Space Shooter Game build with Phaser 3
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
- What is MicroSpace
- How to run the game
- How to play the game
- Game Rules
- Author
- Contributing
- Show your support
- License
- Acknowledgements
For this project, the requirements are:
- Implement it with Phaser library
- Implement a scoring system and using a provided api to save the user name and score
- Deploy the game on a server to make it accessible online
- Include description of the game desing
- Provide instruction on how to run the game in local environment
In addition, I added the following features:
- 20 level weapons for the player
- 20 level stage to play
Game Design Document (GDD) Link
The demo is deployed on Heroku. You can access it here.
To get the game on your own computer, please do the following steps
This app require: nodejs. If you don't have not installed yet, do the following commands in your terminal.
- git
- nodejs & npm
npm install npm@latest -g
- yarn (Optional)
npm install --global yarn
Once your computer meets all the requirements you can proceed to the next steps.
-
Open your command terminal
-
Clone the repo from github
git clone https://github.com/tigamadou/microspace
- Browse to the cloned folder
cd microspace
- Install NPM packages using npm or yarn
npm install 'or' yarn
- All the game files will be installed. You'll be now able to build the game and run it.
All the tests in this project are done with Jest. To run the tests, do
npm test 'or' yarn test
MicroSpace is a Space shooter browser game. To score points, the player need to shoot the enemies and proceed to the next Stage.
Once all the precious steps completed, and you have built the game, run the following command
- Build the game
npm run build 'or' yarn build
- Run the start command in your terminal
npm run start 'or' yarn start
-
Your browser will automatically open with the address http://127.0.0.1:8050
-
If you don't want to build the game first, you can run the Development server:
npm run dev 'or' yarn dev
- The development server will start and automatically open a new tab in your browser with the address http://127.0.0.1:8051
- Run The game using the instructions above
- On the Title Scene
- Start to start a new game
- Options to enter the game options
- LeaderBoard to see the top players
- Credits to see the closing credits of the game
- Click Start to run a new game
- Chose a name and click save
- Read your mission details and instructions. Click Accept to proceed
- You can move with both W S A D keys and UP DOWN LEF RIGHT arrows key
- Use space to shoot
- Good Luck
- If you complete the stage you'll progress to the next Stage
- A player can be moved using arrow keys but also common w a s d keys.
- The Player use the space bar to shoot lasers.
- There are 4 types of lasers each one having 5 speed level.
- There are 4 types or enemies
- The score is increased each time an enemy is destroyed. The score gained depends on the enemy and the level.
- The game is over when the player is destroyed by a laser shoot or a colision with an enemy
👤 Amadou Ibrahim
- GitHub: @tigamadou
- Twitter: @tigamadou
- Linkedin: Amadou IBRAHIM
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Give a ⭐️ if you like this project!
This project is MIT licensed.
- Microverse
- WebPack
- Javascript ES6
- Eslint
- Jest
- GitHub Actions
- Heroku
- Phaser3
- axios
- Opengameart.com
- SFX
- Cute astronaut flying with planet balloons in space cartoon created by catalyststuff - www.freepik.com -
- Build a Space Shooter with Phaser 3
- How (And Why) to Write a Great Game Design Document
- Creating a Phaser 3 Template