Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nafisrayan/simple-car-game-threejs
https://github.com/nafisrayan/simple-car-game-threejs
game javascript threejs
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/nafisrayan/simple-car-game-threejs
- Owner: NafisRayan
- Created: 2024-04-10T19:12:36.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-28T06:13:47.000Z (7 months ago)
- Last Synced: 2024-04-28T08:16:47.015Z (7 months ago)
- Topics: game, javascript, threejs
- Language: HTML
- Homepage: https://nafisrayan.github.io/Simple-Car-Game-ThreeJS/
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cube Runner
Cube Runner is a simple 3D game built using Three.js library. The game involves controlling a cube to avoid obstacles and survive as long as possible.
## Features
- Control a cube using keyboard inputs (arrow keys and spacebar).
- Avoid obstacles represented by red cubes.
- The game ends when the cube collides with an obstacle.
- Displays "Game Over" message with the final score upon collision.
- Provides a "Restart" button to play again.## How to Play
1. Use arrow keys to move the cube:
- Left arrow: Move left
- Right arrow: Move right
- Up arrow: Move forward
- Down arrow: Move backward
2. Press the spacebar to make the cube jump.
3. Avoid colliding with red cubes to survive.
4. Survive as long as possible to achieve a higher score.## Installation
No installation is required to play the game. Simply open the `index.html` file in a web browser that supports WebGL.
## Development
To modify or extend the game:
1. Clone or download the repository.
2. Open the project directory in your preferred code editor.
3. Modify the `index.html`, `style`, and `script` sections as needed.
4. Test your changes in a WebGL-enabled browser.
5. Commit your changes and push them to your repository.## Credits
- Game developed by [Your Name]
- Built with [Three.js](https://threejs.org/)
- Inspired by [similar games]