https://github.com/nipuna-lakruwan/kaplay-game
https://github.com/nipuna-lakruwan/kaplay-game
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nipuna-lakruwan/kaplay-game
- Owner: Nipuna-Lakruwan
- Created: 2024-12-22T14:23:17.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-12-22T14:41:32.000Z (4 months ago)
- Last Synced: 2025-01-02T00:15:44.663Z (4 months ago)
- Language: HTML
- Size: 376 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kaplay Game
This is a simple 2D game created using JavaScript and the Kaplay library. The game features a player that can jump and avoid obstacles that move across the screen. The objective is to survive for as long as possible while avoiding obstacles.
## Features
- **Player Movement**: The player can jump by pressing the spacebar.
- **Obstacles**: Obstacles move towards the player from the right side of the screen at random speeds.
- **Game Over**: The game ends when the player goes offscreen.
- **Score Tracking**: The score increases as time passes, and the difficulty increases as the score grows.
- **Responsive Design**: The game works at different screen resolutions.## How to Play
1. Press the **Spacebar** to make the player jump.
2. Avoid obstacles moving across the screen.
3. Survive as long as you can and see how high you can score.## How to Run the Game Locally
1. Clone the repository:
```bash
git clone https://github.com/nipuna-lakruwan/kaplay-game.git
```2. Open the project folder in your preferred code editor.
3. Open index.html in a web browser to play the game.Technologies Used
• JavaScript: For game logic and interactions.
• Kaplay: A simple JavaScript library for creating 2D games.
• HTML/CSS: For structuring and styling the game interface.Live Demo
You can play the game online by visiting the following link:
[Kaplay Game Live](https://nipuna-lakruwan.github.io/kaplay-game/)License
This project is licensed under the MIT License - see the LICENSE file for details.