A JavaScript project built using the Phaser 3 Game Engine
Explore the docs
JavaScript Curriculum Final Project @Microverse
Implementation of an Adventure Game built with the Phaser 3 framework.
In this project, I utilize the Phaser 3 framework to build an endless runner game. It is a game in which you need to survive without falling off the platforms while also skipping fire. The player acquires points by collecting coins. I used Adobe Photoshop and TexturePacker to create the character and the background. I used local storage to persist in the player score. I also used the Leaderboard API to post the player's score, displaying the top 10 players on the leaderboard scene.
You need to jump from one platform to another. To jump, either press space, or click with the left button in your mouse. Your score increases with every coin picked which is worth 10 points.
This game was designed using Phaser 3.
The rules of the game are: You need to jump from one platform to another. If you hit miss a platform or you touch the fire you die. You have 3 attempts as in 3 lives. When your live count goes to 0 the game is over. Your score increases with every coin picked which is worth 10 points.
The purpose of the game is to gain the max score count by picking coins.
Once you lose in the game you get a chance to see the leaderboard and watch how well you rank against another player: To jump, either press space, or click with the left button in your mouse. Have fun!!!
- HTML5/CSS
- Phaser 3
- Webpack
- Javascript
- Eslint
- Babel
- Stylelint
- npm
- Jest for testing
- Netlify for deployment
- Leaderboard API service for high scores
- Make a directory somewhere in your file system where you want to keep your project.
cd
into that directory from the command line.- Clone this project with
git clone https://github.com/vmwhoami/TheRunner
. cd
to TheRunner
- From the cloned project's directory, run
npm install
.
- Clone the project to your local machine;
cd
into the project directory;- Run
npm install
to install the necessary modules; - To check in development mode, run
npm start
, the page will automatically load on localhost:3000.
Jest, a JavaScript testing framework was used for testing to ensure correctness of any JavaScript codebase.
To run the test use: npm test
To host the project on external server like netlify, you will need to run the webpack build command:
npm run build
Use "npm run-script " followed by any of the following commands :
"build": "webpack --mode production
"watch": "webpack --mode development --watch"
"test": "jest"
- Add other enemies besides fire
- Make a levels
- Add another level with another background
Vitalie Melnic
- Github: @vmwhoami
- Twitter: @vmwhoami
- Linkedin: vitalie-melnic
Distributed under the MIT License. See LICENSE
for more information.
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!