Skip to content

Latest commit

ย 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Tower Blocks Game

A challenging and addictive 3D stacking game where players must carefully place blocks on top of each other to build the tallest tower possible.

โœจ Features

  • Smooth 3D graphics powered by Three.js
  • Responsive design that works on desktop and mobile devices
  • Simple one-click/tap or spacebar controls
  • Progressive difficulty as your tower grows taller
  • Animated game effects using GSAP animations
  • Minimalist design with focus on gameplay

๐Ÿš€ Getting Started

Prerequisites

  • A modern web browser
  • Basic understanding of HTML, CSS, and JavaScript (for development)

Installation

  1. Clone the repository:

    git clone https://github.com/Sadat-Rakib/TowerBlocks-Game.git
  2. Navigate to the project directory:

    cd TowerBlocks-Game
  3. Open index.html in your web browser to play the game locally.

Development Setup

For development, you can use a local server to avoid CORS issues when loading assets:

# Using Python 3
python -m http.server

# Using Node.js with http-server
npm install -g http-server
http-server

๐ŸŽฏ How to Play

  1. Click the "Start" button to begin the game
  2. As blocks move across the screen, click, tap, or press the spacebar to place them
  3. Try to align each new block with the one below it
  4. The game ends when a block misses the tower completely
  5. Aim to build the tallest tower possible and achieve the highest score!

๐Ÿ› ๏ธ Technology Stack

๐Ÿ“ Project Structure

TowerBlocks-Game/
โ”œโ”€โ”€ index.html          # Main HTML file
โ”œโ”€โ”€ style.css           # Main CSS styles
โ”œโ”€โ”€ style.scss          # SCSS source (if using Sass)
โ”œโ”€โ”€ main.js             # Main JavaScript game logic
โ”œโ”€โ”€ main.ts             # TypeScript source (if using TypeScript)
โ”œโ”€โ”€ .godo/              # Project configuration folder
โ””โ”€โ”€ README.md           # This file

๐Ÿงฉ Game Mechanics

The game follows these core mechanics:

  1. Blocks move horizontally across the screen
  2. Player timing determines block placement
  3. Perfect alignment adds to score
  4. Partial alignment causes the block to split
  5. Block speed increases as the tower grows taller
  6. Game ends when a block completely misses the tower

๐Ÿ”ฎ Future Enhancements

  • Add sound effects and background music
  • Implement different themes/color schemes
  • Add power-ups and special blocks
  • Create a global leaderboard
  • Add difficulty levels

๐Ÿค Contributing

Contributions are welcome! Feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Inspired by classic stacking games
  • Three.js community for the excellent 3D library
  • Original concept based on similar arcade games

Made with โค๏ธ by Sadat-Rakib

About

๐Ÿ”ฅ Stack the blocks! ๐Ÿ“Š Beat scores! ๐Ÿš€ Test your reflexes! ๐Ÿ† Challenge friends! ๐Ÿงฉ Get addicted! ๐ŸŽฒ ๐Ÿ’ป Built With ๐ŸŒ HTML5 | ๐ŸŽจ CSS3/SCSS | โšก JavaScript | ๐Ÿ“ TypeScript | ๐ŸงŠ Three.js | โœจ GSAP Animations

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages