Skip to content

TahaGHZ/wasted-potential-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wasted Potential Game

A Three.js first-person game MVP with environment and NPCs.

Watch the project demo : https://drive.google.com/drive/folders/1wMcjeZUnxxQjFv-XirCTFLBwgLxFhf4J?usp=drive_link

Features

  • First-person perspective with WASD movement and mouse look
  • Small environment with hut, trees, bushes, and rocks
  • 2 NPCs that spawn near the player
  • Modular NPC system ready for future expansion (personality, attributes, behaviors)

Setup

  1. Install dependencies:
npm install
  1. Run development server:
npm run dev
  1. Open your browser to the URL shown (typically http://localhost:5173)

Controls

  • WASD - Move around
  • Mouse - Look around
  • Click - Lock pointer for mouse control

Project Structure

  • src/main.js - Main game entry point
  • src/FirstPersonController.js - First-person camera and movement controls
  • src/Environment.js - Environment generation (hut, trees, bushes, rocks)
  • src/NPC.js - NPC class with structure for future expansion

Future Expansion

The NPC system is designed with future features in mind:

  • Personality traits
  • Character attributes
  • Behavior system
  • State management
  • Interaction system

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors