This project revolves around creating a platform game using the Phaser library, serving as the JavaScript capstone project at Microverse.
- Crafted a comprehensive Game Design Document(GDD) outlining the game's overview and specific mechanics.
- Developed the platform game utilizing the Phaser library.
- Implemented a scoring system utilizing an API to save scores with associated usernames, displaying them within the game view.
- Deployed the game onto a server, ensuring accessibility to all users.
Three distinct modes (Easy, Normal, and Hard) with varying enemy and fruit speed settings. Introduced the ability for the main character to execute a double jump.
A list of commonly used resources that I find helpful is listed in the acknowledgments.
- About the Project
- Built With
- Live Demo
- Game Design Document(GDD)
- Getting Started
- How to run the game
- What is Grab Fruits
- How to play the game
- Rule of the game
- Author
- Contributing
- Show your support
- License
- Acknowledgements
Game Design Document (GDD) Link
To get a local copy up and running follow these simple example steps.
- On the project GitHub page, navigate to the main page of the repository.
- Under the repository name, locate and click on a green button named
Code
. - Copy the project URL as displayed.
- If you're running the Windows Operating System, open your command prompt. On Linux, Open your terminal.
- Change the current working directory to the location where you want the cloned directory to be made. Leave as it is if the current location is where you want the project to be.
- Type git clone, and then paste the URL you copied in Step 3.
e.g. $ git clone https://github.com/yourUsername/yourProjectName - Press Enter. Your local copy will be created.
- To run the test, run
npm test
- After cloning or downloading this repository, in the terminal, move to this folder
eg:
cd Desktop/platform-game
- Run
npm install
oryarn install
- After installing packages in step2, run
npm run build
- Run
npm run dev
, then the local server will be automatically opened - Choose dist folder, and start the game
Grab Fruits! is a simple game as its name is. A player is expected to collect as many fruits as possible without touching spiders.
- Click the "Click to Start" button
- Input a username that will be shown if a player will be a top 5 scorer.
- Choose the mode from easy, normal, or hard that is different on the speed of showing spiders(enemy) and fruits
- Start the game
- In the game-over view,
- To see the top 5 scorers, click the "Score" button.
- To start the different username or mode, click the "TOP" button
- To restart the game in the same mode, click the "Restart" button
- In the score view,
- The top 5 scorers are showing with their username and their score
- To start the different username or mode, click the "TOP" button
- To restart the game in the same mode, click the "Restart" button
- A player gets a 70 scores when touching a fruit
- The game will be over when a player touches a spider
- A player can be operated by using keyboard cursors arrows (←, →, ↑).
- To run to the left, click ←, to the right, click →, and to jump up, click ↑
- A player can double jump, to do it, click ↑ again in the air
👤 Yoko Saka
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.