Skip to content

This is Cat Jump, a small game made with JavaScript using the Phaser 3 Library. It is an endless runner platform game, it has a double jump mechanic, a score that can be saved, and a Leaderboard that shows the top 10 scores.

License

Notifications You must be signed in to change notification settings

jpdf00/phaser3-plataformer

Repository files navigation

Cat Jump

A small platformer game built wiht Javascript and Phaser 3.

screenshot

Game instructions

  • This game is an endless runner platformer. The plataforms appear infinitly until the game ends and the game character (a cat) has to jump from building to building.
  • If the cat falls below the edge of the screen the game ends.
  • Your progress (score) is measured in seconds. The longer the cat stays "alive" higher the score.
  • To jump you have to simply click on the screen with the left mouse button.
  • The cat can jump twice. After the second jump, the cat has to touch a platform to be able to jump again.
  • On the game over screen you can input your name and click on the "Save Score" button, to save your score in a leaderbord.
  • If no name is given, the name "Default User" will be attributed.
  • If you access the leaderboard (by clicking on the "Leaderboard" button) without saving your score, the score for that run WILL BE LOST!
  • If you chose to return to the title screen (by clicking on the "Title Screen" button) without saving your score, the score for that run WILL BE LOST!
  • By clicking on the "Leaderboard" button, on the Title screen or on the game over screen, You will be shown a Leaderboard with the top 10 scores.

Click Here to read the Game Design Document

Built With

  • JavaScript, CSS, HTML.
  • Phaser 3
  • Webpack, Jest, Babel, eslint, stylelint, webhint.

Live Demo

Play Cat Jump

Getting Started

To get a local copy up and running follow these simple example steps.

  • On the top of the page there is a green button name "Code" Code Button
  • Click on the "Code" button.
  • A Menu will appear click in "Download Zip" Download Zip
  • Save the "phaser3-plataformer-feature-full-game.zip" file on your computer.
  • Extract the contents of the "phaser3-plataformer-feature-full-game.zip" you just downloaded in a folder.

Prerequisites

  • nodeJS.
  • A browser.

Setup

  • Open your comand prompt.
  • Go inside the folder "phaser3-plataformer-feature-full-game" (The one you extracted from the "phaser3-plataformer-feature-full-game.zip" file).
  • Type npm install.

Usage

  • Open your comand prompt.
  • Go inside the folder "phaser3-plataformer-feature-full-game" (The one you extracted from the "phaser3-plataformer-feature-full-game.zip" file).
  • Type npm run start (this should open a page in your default browser and the game should load).

Run tests

  • Open your comand prompt.
  • Go inside the folder "phaser3-plataformer-feature-full-game" (The one you extracted from the "phaser3-plataformer-feature-full-game.zip" file).
  • Type npm run test.

Authors

👤 João Paulo Dias França

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

Thanks to:

📝 License

This project is MIT licensed.

About

This is Cat Jump, a small game made with JavaScript using the Phaser 3 Library. It is an endless runner platform game, it has a double jump mechanic, a score that can be saved, and a Leaderboard that shows the top 10 scores.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published