public 3d-motion repository
Lego-Blocks-Game
// NafisRayan/Lego-Blocks-Game
It is a Lego type game and a modern web application built with Next.js 15, React 19, and React-Three-Fiber/Three.js, featuring a robust UI component system and 3D capabilities.
š§± Lego Blocks
A modern web-based 3D Lego simulation game built with Next.js 15, React 19, and Three.js. Create, modify, and explore virtual Lego structures using an elegant UI and immersive 3D environment.

š Tech Stack
-
Framework: Next.js
15.2.4 -
Language: TypeScript
-
3D Engine: Three.js via
@react-three/fiber&@react-three/drei -
Styling: TailwindCSS +
tailwindcss-animate -
UI Components:
- Radix UI primitives
- shadcn/ui components
- Custom-built elements
-
Forms & Validation:
- React Hook Form
- Zod
-
Theme Support: Dark & Light mode via
next-themes -
Data Storage: Vercel KV
š¦ Installation
-
Clone the repo
git clone https://github.com/NafisRayan/Lego-Blocks-Game.git cd Lego-Blocks-Game -
Install dependencies
npm install # or pnpm install -
Run the dev server
npm run dev # or pnpm dev
Open http://localhost:3000 to view the app.
š§° Available Scripts
| Script | Description |
|---|---|
npm run dev | Start development server |
npm run build | Build production application |
npm run start | Start production server |
npm run lint | Run ESLint for code quality |
š Project Structure
āāā app/ # Next.js app directory
ā āāā layout.tsx # Root layout
ā āāā page.tsx # Entry page
āāā components/
ā āāā ui/ # Base UI components
ā āāā block/ # Block logic components
ā āāā scene/ # 3D scene management
ā āāā color-selector/ # Color selection system
ā āāā blocks/ # Initial block prototypes
āāā lib/
ā āāā actions/ # Server-side logic
ā āāā utils/ # Utility functions
āāā hooks/ # Custom React hooks
āāā public/ # Static files
āāā styles/ # Global styles
⨠Features
š§ 3D Simulation
- Fully interactive 3D Lego environment
- Build and erase blocks in real-time
- Scene lighting & camera controls
š§© UI Components
- Dialogs, dropdowns, tooltips
- Navigation, forms, accordions
- Visual components for mobile & desktop
šØ Interactive Tools
- Color selector with history
- Dimension input controls
- Responsive toolbar
- Audio integration & file tools
š Developer Experience
- Strong type safety with TypeScript
- ESLint for consistent code quality
- TailwindCSS for rapid UI building
- Hot module reloading
š Requirements
- Node.js v18+
- npm or pnpm
š License
Private ā All rights reserved.
š Version
Current release: 0.1.0
[INFO] 4 topics link to curated motion topic pages.