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

https://github.com/burnycoder/racing-game

A simple 3D racing game built with Three.js.
https://github.com/burnycoder/racing-game

Last synced: 3 months ago
JSON representation

A simple 3D racing game built with Three.js.

Awesome Lists containing this project

README

          

# Racing Game

A simple 3D racing game built with Three.js.

![image](https://github.com/user-attachments/assets/6cea5ec7-b415-440c-9250-0fb182cc1d8c)

## Features

- 3D car model with basic physics
- Speed display
- Camera that follows the car

## Controls

- W / Up Arrow: Accelerate
- S / Down Arrow: Brake/Reverse
- A / Left Arrow: Turn Left
- D / Right Arrow: Turn Right
- R: Reset car position

## Development

This project uses [Vite](https://vitejs.dev/) for fast development and building.

### Installation

```bash
# Install dependencies
npm install
```

### Running the development server

```bash
# Start development server
npm run dev
```

### Building for production

```bash
# Build for production
npm run build
```

## Technologies Used

- Three.js: JavaScript 3D library
- Vite: Build tool and development server