A JavaScript Capstone project built using JavaScript framework called phaser
Explore the docs �
Assigment
�
Report Bug
�
Request Feature
- Table of Contents
- About The Project
- Live Demo
- Design Process
- Choosing the Building Blocks
- Getting Started
- Usage
- How to Play the Game
- Roadmap
- Contributing
- License
- Contact
- Acknowledgements
This is the basic start of a Space Shooter Game built with Phaser 3.The project had a deadline of five days total. Two of those days were allocated to designing, preparing and learning, while the final three days were allocated to building the project.
Here is the link to the game space-shooter
This progam was made using this technologies
- Javascript - Language used.
- Phaser - The Game Framework used.
- Webpack - Tool for bundling our code.
At the end of day two, I had learned the basics of PhaserJS, specifically, the physics and motion. There were several objectives I had when starting day three.
- MVP - Try to build the core functionality before dolling it up.
- Making sure that what I build is functional.
- Try to make the code scalable by focusing on building a system.
- The layout and look of the game can always change, but the functionality will become more difficult to alter over time.
Given the limited timeframe, there was not a lot of flexiblity afforded to me here, so I ran with what I could. Luckily, I found great music, sprites, etc in a short amount of time.
The design process here was dependent on basic cohesion, in order to fit the deadline.
To get a local copy up and running follow these simple example steps.
- Clone the repo
git clone https://github.com/abruzy/space-shooter
- Next step is to change directory by doing this below
cd space-shooter
- Next step is to install all the project dependencies by running this command below
npm install
- Then, next step is to run this command:
NB: This will open a new tab on your browser where you will see the game.
npm start
- There are two control for moving the player which are:
- using the A, D, W and S key
- Key A for moving to the left
- Key D for moving to the right
- Key W for moving to the top
- Key S for moving to the bottom
- using the arrow / cursor key
You need to enter the name of the player in the input text field and clicked on the Submit Name
button
After which you can now click on the Play
button to start playing the game
- We have three different types of enemies in this game
- The CarrierShip enemy which has a green color, to destory this type of enemy, you need to three of your laser to hit it before it can be destroy
- The second type of enemy is the ChaserChip enemy, which chase the player when it closer to the player and you need two laser to hit this type of enemy before it can be destroy
- The last type of enemy only need one laser to hit before it can be destroy
- For each type of enemy, there are different points for them, like for the enemy type that need three laser to hit it before it can be destroy, you will have 3 point for destroying such enemy
This project is an open source project, there are quite a features you could add to this project as well. A few I can think of are:
- ADD TINT IF DAMAGED
- ADD LIVES
- ADD INCREASING DIFFICULTY
- ADD UPGRADE
- ADD BOSES
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- 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
Distributed under the MIT License. See LICENSE
for more information.
Project Link: https://github.com/abruzy/space-shooter