Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/pengxiaohua/my-first-threejs-demo

My first threejs demo.
https://github.com/pengxiaohua/my-first-threejs-demo

Last synced: about 2 months ago
JSON representation

My first threejs demo.

Awesome Lists containing this project

README

        

# My First Threejs Demo

## Project Overview

A simple game like star war.

3D Models from [https://sketchfab.com](https://sketchfab.com/3d-models?date=week&features=downloadable&sort_by=-likeCount)

## Technology Stack

This project utilizes the following technologies:

- **Three.js** - A JavaScript library for creating 3D graphics in the browser.
- **React** - A JavaScript library for building fast and interactive
- **SCSS** - A CSS preprocessor that adds features like variables and nested rules for easier styling.
- **TypeScript** - A typed superset of JavaScript that helps catch errors early and improve code quality.
- **react-three/fiber** - A React renderer for Three.js, enabling a declarative approach to 3D scenes.
- **react-three/drei** - A collection of useful components for react-three/fiber to simplify 3D development.

## Demo

![Project Demo](https://github.com/pengxiaohua/my-first-threejs-demo/blob/main/src/assets/demo.gif)

## Installation and Running

### Installation Steps

1. Clone the repository

```bash
git clone https://github.com/pengxiaohua/my-first-threejs-demo
```

2. Install

```bash
npm install
```

3. Run

```bash
npm run dev
```

4. Play

Use the `A` and `D` keys on your keyboard to move the ship.