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.

$ git log --oneline --stat
stars:13forks:0updated:2026-04-09
README.md
readonly

🧱 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.

Lego Blocks Simulation Image


šŸš€ 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

  1. Clone the repo

    git clone https://github.com/NafisRayan/Lego-Blocks-Game.git
    cd Lego-Blocks-Game
    
  2. Install dependencies

    npm install
    # or
    pnpm install
    
  3. Run the dev server

    npm run dev
    # or
    pnpm dev
    

Open http://localhost:3000 to view the app.


🧰 Available Scripts

ScriptDescription
npm run devStart development server
npm run buildBuild production application
npm run startStart production server
npm run lintRun 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

metadata.json
TypeScript3dGames3d-graphics3d-modelsGamesgame-developmentjavascriptlegonextjsnodejsreactReact Three FiberreactjsThree.js

[INFO] 4 topics link to curated motion topic pages.