BoxGame is a 2D game where the player must guide a box to the finish line, similar to the Mario game. The game includes a registration and login system, with user details stored in LocalStorage. Additionally, there is a counter that tracks the number of meters the player has covered during the game.
Live Project Link: https://davidpulke.github.io/BoxGame/
-
Registration and Login: Users can register and log into the game, with details saved in LocalStorage.
-
Progress Tracking: A counter that tracks the number of meters the player covers throughout the game.
-
2D Design: A simple and enjoyable game with 2D design reminiscent of classic arcade games.
-
Controls:
-
Movement: WSD or wsd
-
Jump: SpaceBar / w
To increase difficulty, I added a "False Jump" mechanism: After the third jump, the player will experience a "False Jump," and they must land on the ground and press Space to cancel the "False Jump." Only then will the player regain the ability to jump twice again.
The game is designed for desktop play since it uses keyboard event listeners. Therefore, it is optimized for screen sizes above 1050px by 750px.
-
Clone the repository:
-
bash
-
Copy code
-
git clone https://github.com/username/BoxGame.git
-
bash
-
Copy code
-
cd BoxGame
Open index.html in your preferred browser.