How lengyuan1/tower-game works
This is a browser-based 3D tower-stacking game. The documented player workflow is to time a click to stack a moving block; the game aligns it, cuts off overhangs, and increases the challenge as the tower rises. The README also describes ready, playing, ended, and reset states, a requestAnimationFrame render loop, Three.js scene rendering, and GSAP animations for camera motion, falling pieces, and end-game transitions. No source excerpts were provided, so implementation paths and relationships below rely on the README and use index.html only as the available application file.
Main entry points: index.html GSAP animations
Components 13
Game logic
- Game states
index.html - Block stacking
index.html - Alignment and cutting
index.html - Rising difficulty
index.html
3D rendering
- Render loop
index.html - Three.js scene
index.html - Scene lighting
index.html - Orthographic camera
index.html
Animation
- GSAP animations
index.html - Camera motion
index.html - Falling cut pieces
index.html - End transition
index.html
Other components
- Player
Connections 10
- Player → Block stacking: times click
README.md - Block stacking → Alignment and cutting: aligns and cuts
README.md - Alignment and cutting → Rising difficulty: raises challenge
README.md - Game states → Block stacking: controls play
README.md - Render loop → Three.js scene: renders scene
README.md - Three.js scene → Scene lighting: uses lights
README.md - Three.js scene → Orthographic camera: uses camera
README.md - GSAP animations → Camera motion: animates camera
README.md - GSAP animations → Falling cut pieces: animates falls
README.md - GSAP animations → End transition: animates ending
README.md