Live, Dream, Connect โ One Life at a Time.
LifeLoop is a 3D life simulation game built with React, Three.js, and Express.js where you can build your dream life, explore real-world cultures, and form deep emotional connections with AI-powered characters.
๐ Live in immersive 3D cities - Explore detailed urban environments
๐ง AI-driven NPCs - Powered by OpenAI GPT-4o for realistic conversations
๐จ Customizable homes - Build and decorate your living spaces
โค๏ธ Dynamic needs system - Manage happiness, energy, social, hunger, and hygiene
๐ Real-time progression - Day/night cycles and character aging
๐จโ๐ฉโ๐งโ๐ฆ Multiple life stages - Start as child, teen, adult, or elder
git clone <your-repo-url>
cd lifeloop-game
npm install
.env
file and add:
OPENAI_API_KEY=your_openai_api_key_here
npm run dev
http://localhost:5000
โโโ client/ # Frontend React application
โ โโโ src/
โ โ โโโ components/ # React components
โ โ โ โโโ game/ # 3D game components
โ โ โ โโโ ui/ # UI components
โ โ โโโ lib/ # Game logic and stores
โ โ โ โโโ gameLogic/ # Core game mechanics
โ โ โ โโโ stores/ # Zustand state management
โ โ โโโ pages/ # Application pages
โ โโโ public/ # Static assets
โโโ server/ # Backend Express application
โ โโโ routes/ # API route handlers
โ โโโ storage.ts # Data storage layer
โโโ shared/ # Shared types and schemas
client/src/lib/gameLogic/activities.ts
client/src/lib/stores/useNPCs.tsx
client/src/components/ui/
server/routes/
The game requires Node.js 18+ and an OpenAI API key for AI features.
This project is open source. See LICENSE file for details.
For questions or support, please open an issue on GitHub.
Start your life simulation journey today with LifeLoop!