๐งฑ 3D Blockstack Game
A mesmerizing 3D stacking game built with Three.js, featuring realistic physics, responsive design, and addictive gameplay mechanics.
๐ฎ Demo
Light Theme
Dark Theme
Stack blocks with precision and watch them fall with realistic physics!
๐ Quick Start
Prerequisites
- A modern web browser (Chrome, Firefox, Safari, Edge)
- No additional software required!
Installation
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! ๐ฏ
๐ฏ How to Play
Controls
โฆ
๐งฑ 3D Blockstack Game
A mesmerizing 3D stacking game built with Three.js, featuring realistic physics, responsive design, and addictive gameplay mechanics.
๐ฎ Demo
Light Theme
Dark Theme
Stack blocks with precision and watch them fall with realistic physics!
๐ Quick Start
Prerequisites
- A modern web browser (Chrome, Firefox, Safari, Edge)
- No additional software required!
Installation
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! ๐ฏ
๐ฏ How to Play
Controls
- Desktop: Click mouse or press
Spaceto drop blocks - Mobile: Tap screen to drop blocks
- Restart: Press
Rkey or tap after game over
Gameplay
- 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!
Scoring
- Each successfully stacked block = +1 point
- High score is automatically saved in your browser
- Can you reach 20+ blocks? ๐
๐ ๏ธ Technology Stack
| Technology | Purpose | Version |
|---|---|---|
| 3D rendering and scene management | r128 | |
| Realistic physics simulation | 0.6.2 | |
| Smooth animations and transitions | 18.6.4 | |
| Game structure and UI | 5 | |
| Responsive design and animations | 3 | |
| Game logic and interactions | ES6+ |
โจ Features
- ๐จ 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
๐จ Game Mechanics
Block Physics
- Realistic falling with Cannon.js physics engine
- Collision detection for precise stacking
- Mass calculation based on block size
- Gravity simulation for natural movement
Visual Effects
- Gradient backgrounds with custom canvas textures
- Particle systems for ambient atmosphere
- Ring effects on successful stacks
- Smooth camera movement following the tower
Responsive Design
- Adaptive box sizing based on screen dimensions
- Touch-optimized controls for mobile devices
- Cross-platform compatibility
- High DPI support for crisp rendering
๐ค Contributing
I welcome contributions! Hereโs how you can help:
๐ Bug Reports
- Use the GitHub Issues tab
- Include steps to reproduce the issue
- Specify your browser and device type
๐ก Feature Requests
- Open an issue with the โenhancementโ label
- Describe the feature and its benefits
- Consider the impact on mobile users
๐ง Code Contributions
- 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
๐ Development Guidelines
- Follow existing code style and patterns
- Test on both desktop and mobile devices
- Ensure responsive design compatibility
- Add comments for complex physics calculations
๐ฏ Roadmap
- 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
๐ Credits & Attribution
Libraries & Frameworks
Inspiration
- Stack by Ketchapp - Original stacking game concept
- Community tutorials - Three.js and Cannon.js learning resources
Fonts
- Montserrat - Beautiful typography from Google Fonts
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐จโ๐ป Author & Maintainer
Maitri V V ๐ฎ Developer & Designer of 3D Blockstack
๐ซ Reach me at:
- GitHub: @maitri-vv
- LinkedIn: maitrivaghasiya
- Twitter: maitrivv
๐ Weโre Still Playing! Shoutout to the Amazing Contributors Who Secured the Win.
โญ Show Your Support
If you enjoyed this game, please give it a โญ on GitHub!
Made with โค๏ธ and lots of โ
Happy Stacking! ๐งฑ