Jump for Your Life is a dynamic arcade game developed by Diego Silva and Elena Frontiñán. The main objective is to make the character jump across various platforms to progress as far as possible, earning points and avoiding hazards. The platforms, which can be stable or weak, add an extra layer of strategy and difficulty. With its visually appealing design and intuitive controls, Jump for Your Life is perfect for anyone seeking an addictive and thrilling challenge.
- Dynamic Platforms: Stable and weak platforms. Weak platforms collapse upon contact, adding extra difficulty.
- Simple and Intuitive Controls: Use arrow keys to navigate and jump through levels.
- Score and High Score Storage: Keeps the highest score in the browser's local storage.
- Immersive Sound: Includes sound effects triggered during various in-game events (start, collision, game over).
- Accurate Collision Detection: Ensures realistic movements and adds strategic challenge.
The project is organized around a Game
object that contains all the game logic and configuration, along with separate .js
files defining each class.
init()
: Sets up the game area size, events, and score display.start()
: Starts the game by hiding the start screen and playing the initial sound.setEventListeners()
: Detects key presses for character movement.createPlatforms()
: Generates platforms at the start of the game.collisionDetection()
: Checks for collisions between the character and platforms.gameOver()
: Ends the game, displays a message, and plays a game-over sound.updateLocalStorage()
: Saves the highest score in local storage.resetGame()
: Resets the game to its initial state.
- Up Arrow: Move to the platform directly above.
- Right Arrow: Move to the platform above and to the right.
- Left Arrow: Move to the platform above and to the left.
Developed by Diego Silva and Elena Frontiñán.