A mesmerizing 3D stacking game built with Three.js, featuring realistic physics, responsive design, and addictive gameplay mechanics.
Stack blocks with precision and watch them fall with realistic physics!
- A modern web browser (Chrome, Firefox, Safari, Edge)
 - No additional software required!
 
- 
Clone the repository
git clone https://github.com/maitri-vv/3D-Blockstack.git cd 3D-Blockstack - 
Open the game
# Option 1: Simple file opening open index.html # Option 2: Local server (recommended) python -m http.server 8000 # Then visit http://localhost:8000
 - 
Start playing! ๐ฏ
 
- Desktop: Click mouse or press 
Spaceto drop blocks - Mobile: Tap screen to drop blocks
 - Restart: Press 
Rkey or tap after game over 
- Stack blocks on top of each other with perfect timing
 - Watch blocks fall with realistic physics when you miss
 - Build higher - each successful stack increases your score
 - Challenge yourself to reach the blue-colored blocks
 - Beat your high score - progress is automatically saved!
 
- Each successfully stacked block = +1 point
 - High score is automatically saved in your browser
 - Can you reach 20+ blocks? ๐
 
- ๐จ Beautiful 3D Graphics - Gradient backgrounds and particle effects
 - ๐ฑ Responsive Design - Works perfectly on desktop, tablet, and mobile
 - โก Realistic Physics - Blocks fall and interact naturally
 - ๐ฏ Precise Controls - Mouse, keyboard, and touch support
 - ๐พ High Score System - Local storage saves your best performance
 - ๐ Visual Effects - Ring effects, particle systems, and smooth animations
 - ๐ต Smooth Animations - TWEEN.js powered transitions
 - ๐ Auto-restart - Seamless game restart functionality
 - ๐ Score Tracking - Real-time score display with diamond indicators
 
- Realistic falling with Cannon.js physics engine
 - Collision detection for precise stacking
 - Mass calculation based on block size
 - Gravity simulation for natural movement
 
- Gradient backgrounds with custom canvas textures
 - Particle systems for ambient atmosphere
 - Ring effects on successful stacks
 - Smooth camera movement following the tower
 
- Adaptive box sizing based on screen dimensions
 - Touch-optimized controls for mobile devices
 - Cross-platform compatibility
 - High DPI support for crisp rendering
 
I welcome contributions! Here's how you can help:
- Use the GitHub Issues tab
 - Include steps to reproduce the issue
 - Specify your browser and device type
 
- Open an issue with the "enhancement" label
 - Describe the feature and its benefits
 - Consider the impact on mobile users
 
- Fork the repository
 - Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
 
- Follow existing code style and patterns
 - Test on both desktop and mobile devices
 - Ensure responsive design compatibility
 - Add comments for complex physics calculations
 
- Sound Effects - Audio feedback for stacking and falling
 - Power-ups - Special blocks with unique properties
 - Multiplayer Mode - Compete with friends in real-time
 - Custom Themes - Different visual styles and colors
 - Achievement System - Unlock badges for milestones
 - Leaderboards - Global high score competition
 
- Stack by Ketchapp - Original stacking game concept
 - Community tutorials - Three.js and Cannon.js learning resources
 
- Montserrat - Beautiful typography from Google Fonts
 
This project is licensed under the MIT License - see the LICENSE file for details.
Maitri V V ๐ฎ Developer & Designer of 3D Blockstack
๐ซ Reach me at:
- GitHub: @maitri-vv
 - LinkedIn: maitrivaghasiya
 - Twitter: maitrivv
 
If you enjoyed this game, please give it a โญ on GitHub!
Made with โค๏ธ and lots of โ
Happy Stacking! ๐งฑ

