Welcome to Jumper, an exciting platformer game where you control a nimble character to collect coins, avoid bombs, and navigate through dynamic levels! Designed with Phaser 3, this project features an intuitive main menu, smooth preloading, challenging gameplay, and a dramatic game over sequence. Let the adventure begin! ๐
- Responsive scaling for all screen sizes ๐ฑ๐ป
- Engaging animations and sound effects ๐ถโจ
- Retro-inspired pixel art ๐น๏ธ
- Fully modular code structure for easy maintenance ๐ ๏ธ
- Transparent assets and organized folder structure ๐จ
The repository is organized as follows:
jumper/
โโโ assets/ # Game assets
โ โโโ images/ # Images and sprites
โ โโโ audio/ # Audio files
โโโ src/ # Source code
โ โโโ scenes/ # Game scenes (Boot, Preloader, MainMenu, etc.)
โโโ index.html # Entry point for the game
โโโ README.md # Documentation
โโโ style.css # Game styling
โโโ package.json # Project dependencies
index.html
: The starting point of the game. Loads all scripts and styles.src/scenes/
: Contains individual scene files, such as:Boot.js
- Initializes the game.Preloader.js
- Loads assets.MainMenu.js
- Displays the main menu.Game.js
- The core gameplay logic.GameOver.js
- Game over screen logic.
-
Clone the repository:
git clone https://github.com/your-username/jumper.git
-
Navigate to the project directory:
cd jumper
-
Install dependencies:
npm install
-
Serve the project locally:
npm start
- Launch the game:
- Open your browser and navigate to
http://localhost:8080
.
- Open your browser and navigate to
- Use arrow keys to control your character:
- Left/Right: Move the character.
- Up: Jump.
- Collect coins and avoid bombs to increase your score!
Initializes the game and preloads essential assets.
Loads game assets, including images, sprites, and audio.
Displays the main menu with an option to start the game.
The core gameplay happens here! Control your character, collect coins, and dodge bombs.
Shows the game over screen when you lose.
- Fork the repository.
- Create a new branch for your feature:
git checkout -b feature-name
- Commit your changes:
git commit -m "Add a new feature"
- Push to the branch:
git push origin feature-name
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
๐ Thank you for exploring Jumper! Feel free to contribute, share, and play! ๐ป๐น๏ธ