Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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]