Skip to content

KairuiLiu/ThreeCraft

Repository files navigation

ThreeCraft

⛏ MineCraft Release Based on Three.js

Threejs Socket.io TypeScript Vite

✨ Feature

  • Multiplayer online games
  • Efficient collision detection method
  • Efficient multi-threaded dynamic infinite map generation and partial refresh method
  • Five random game scenes (Classic / Ice / Beach Melon Field / Halloween / Bizarre)
  • Multi-terminal and multi-control mode support (PC, mobile, VR, PS4/5 Joy Stick, Xbox Joy Stick support)
  • Multiple parameters can be adjusted(FOV / Fog factor / Simulate range / Operation range / Volume / Number of threads / Operation sensitivity / Language / Operation mode / Crosshair color / Backpack mode / Cheat mode)
  • Multiple ways to save and load archive
  • Dual language support (Chinese / English)
  • Original sound

🎮️ Operation

  • PC

    • Space Bar:Jump
    • E Key: Switch Bag
    • Q Key: Cheat Mode
    • Mouse Move: Change Orientation
    • WSAD Key: Move
    • Number Key: Toggle Block
    • Wheel Scroll: Toggle Block
    • Click Item Box: Toggle Block
    • Shift Key: Drop in Cheat Mode
    • Mouse left/right click: Destroy/Create Blocks
    • ESC Key: Show Menu
  • Mobile

    • Drag Screen: Change Orientation
    • Click Item Box: Toggle Block
    • Click Active Item: Open Backpack
  • Xbox Joy Sitck(test on Xbox one)

  • PS Joy Sitck(test on PS4)

  • VR

    • Turn Headset: Change Orientation
    • Using Remote: Destroy Blocks

🛠️ Install

// Install pnpm
npm install -g pnpm

// Install all dependance
pnpm install

// Install a dependance
pnpm install xxx  -D/-S

// Run
pnpm dev

// Build
pnpm build

🥰 Reference