This is a platformer game Built with Phaser 3. I designed the character using TexturePacker with Assets from Kenney's Site and the map with Tiled. I used MatterJs Physics instead of Arcade Physics which is commonly used.
- Phaser 3.52
- Javascript/Es6
- Tiled
- Texture Packer
To get a local copy of it and run it, follow these simple example steps.
-
Git clone Repo
-
Change the directory by
cd phaser-platformer
. -
Git checkout to your favorite branch and create a pull request if you want to add a new feature.
-
Run
npm start
to start the development server.
- Code editor
- Browser
Accessing the application requires a running server. This can easily be achieved from the project's root directory by running first npm install
to install required dependencies and later npm start
to start the server. The app will now be accessible at the following URL: http://localhost:8080/
.
- Run
npm install
to install required packages for testing and the whole project. - Run
npm run test
to run the tests - Tests are located in
./test
.
-
You have cloned the repo, next go to the terminal.
-
Run
npm install
oryarn
for yarn users also remember to removepackage-lock.json
if you useyarn
-
To start the development server run
npm start
oryarn start
-
The server will start automatically on
http://localhost:8080/
if not browse tohttp://localhost:8080/
-
For production, you can run
npm run build
oryarn build
I named my game Kim's Game
. Kim is the main character of the game. She is an adventurer. she is going to run and jump collecting Cherries and avoiding walking on spikes which can reduce her health. But also there are health kits she can collect to get healed when walked on spikes.
-
The game, will load and be asked the put in your name. It is for connecting your scores with you.
-
After that, You will have 3 buttons namely:
PLAY
: Click to start playingLEADERBOARD
: Click to View who is leading the scoresCREDITS
: Click to see the acknowledgment to those who inspired the game.
-
When you click
play
the game starts and see the tilemap and the character, scores, and health bar. -
When playing, try to avoid walking on spikes as they are going to remove
40%
from your health and the health kit will only add10%
to your health. -
Each Cherry collected, you will get
10
points added to your scores. -
When your health ends that will be game over.
-
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.
👤 Maurice MURANGWA
-
Github: @Morrism1
-
Twitter: @MorrisMontana0
-
Linkedin: Maurice Murangwa
Contributions, issues, and feature requests are welcome!
Give and ⭐️ if you like this project!