This is a simple game called Block Tower where the objective is to stack blocks as high as possible. The game is built using JavaScript, HTML, and CSS. You can try it here: https://tomngo03.github.io/Tower-Block/
Block Tower is a fun and addictive game where players aim to stack blocks as high as they can without toppling the tower. The game features simple gameplay where players click or tap to drop each block onto the tower. The tower's stability is affected by the positioning and alignment of the blocks, adding a physics simulation aspect to the game. Players are challenged to stack blocks vertically and create the tallest tower possible. The game keeps track of the player's score, and if the tower becomes too unstable and collapses, the game ends. It's a test of precision, timing, and strategic thinking.
To run the Block Tower game locally, follow these steps:
- Clone the repository or download the source code.
git clone https://github.com/TomNgo03/Tower-Block.git
- Open the project directory in your preferred code editor.
To play the Block Tower game, follow these steps:
- Open the index.html file in your web browser.
- Click or tap anywhere on the screen to drop a block onto the tower.
- Aim to stack the blocks as vertically as possible to keep the tower stable.
- Keep stacking blocks to increase your score and tower height.
- Be careful not to make the tower too unstable, or it will collapse.
- The game ends when the tower falls. Your final score will be displayed.
- To play again, simply refresh the page or click/tap the "Play Again" button.
- Challenge yourself to beat your high score and see how tall you can make the tower!
The Block Tower game is highly customizable. Here are a few customization options you might consider:
- Styling: Modify the CSS styles in the styles.css file to customize the game's appearance, including colors, fonts, and layout.
- Game Rules: Adjust the game logic in the JavaScript file (script.js) to customize the gameplay mechanics, such as the block falling speed or scoring system.
- Graphics: Replace the block image (images/block.png) with your own custom block design or use different images for each block level.
- Sound Effects: Add sound effects to enhance the gaming experience by integrating HTML5 audio tags or utilizing JavaScript libraries for audio playback.
Contributions to this project are welcome! If you have suggestions for improvements, new features, or encounter any issues, please open an issue or submit a pull request. Let's make the Block Tower game even better!
This project is licensed under the MIT License. You can find the full license text in the LICENSE file.