project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

TowerItUp

A tower game where you stack each block of the tower the higher and the more accurately you drop the block the higher you build, the more score you get !!

TowerItUp

Created At

StarkHack

Project Description

Overview: TowerItUp is an innovative and engaging tower-building game that leverages blockchain technology for an enhanced gameplay experience. The game challenges players to build the tallest and most stable tower possible, combining elements of strategy, timing, and luck. With its vibrant graphics, progressive difficulty levels, and competitive scoring system, TowerItUp offers a unique and immersive gaming experience.

Gameplay Mechanics:

Objective:

The primary objective in TowerItUp is to stack blocks as high as possible to create a towering structure. Players must carefully time their actions to ensure each block is placed perfectly, minimizing wobble and instability. Block Placement:

Players control a swinging hook from which blocks are released. The hook swings horizontally, and players must press a key to drop the block onto the stack. The goal is to align each block perfectly with the one below it for maximum stability and bonus points. Progressive Difficulty:

The game introduces progressively challenging mechanics to keep players engaged. After every 10 blocks are spawned, the hook’s swing speed and radius increase slightly, making it more challenging to place blocks accurately. This incremental difficulty ensures that the game remains challenging and exciting as players progress. Score System:

Players earn points for each block successfully placed. Additional points are awarded for perfectly aligned blocks. The scoring system rewards precision and skill, encouraging players to aim for high scores. As they can later share it on Twitter and Flex about it.

The game ends if the player fails to place a block successfully more than three times . A collision event counter tracks these failures, ensuring that multiple quick failures are counted as a single event. Alternatively, in Quick play the game ends when a countdown timer reaches zero. This adds an element of time pressure, encouraging players to stack quickly yet accurately.

Blockchain Integration: On-Chain Gameplay:

Every player action is recorded as a blockchain transaction on Starknet, a layer-2 scaling solution for Ethereum. This ensures transparency, security, and immutability of game actions. Players can verify their moves and progress on the blockchain. Smart Contracts:

The game’s logic and transactions are managed using smart contracts written in Cairo, a programming language for Starknet. These smart contracts handle score calculations, difficulty adjustments. Technology Stack:

Blockchain:

Starknet is used for handling on-chain gameplay. It provides high throughput and low latency, making it ideal for recording player actions as blockchain transactions. Smart Contracts:

Written in Cairo, these contracts manage the game's core logic, including score calculations, difficulty adjustments, and leaderboard management. Frontend:

Developed using Unity, the game features vibrant 2D graphics and an intuitive user interface. Unity provides the tools necessary to create a visually appealing and responsive gaming experience. Backend:

Dojo.unity and Dojo Contracts form the backend infrastructure, bridging Unity with the blockchain. Dojo.unity handles seamless interaction with smart contracts, ensuring smooth gameplay. Advanced Features:

Audio Integration:

Smooth audio transitions between the main menu and game scenes maintain an immersive experience. Background music and sound effects enhance the overall atmosphere. Camera Controls:

The camera adjusts dynamically to keep the hook and the highest block in view, ensuring players always have a clear perspective of their tower. When the game ends, the camera pans smoothly to the platform to provide a final view of the tower.

How it's Made

Game Mechanics: Block Stacking:

Players control a hook that swings back and forth horizontally. A block is attached to the hook. By pressing the spacebar (or tapping the screen on mobile devices), players release the block, attempting to stack it on top of previous blocks. Perfect Alignment:

Precision is key. Aligning blocks perfectly rewards players with bonus points. Misaligned blocks increase the risk of the tower collapsing. Increasing Difficulty:

As players progress, the game introduces more challenging mechanics. The swing speed and radius of the hook increase after every 10 blocks spawned, requiring players to adapt to the changing dynamics. Collision and Game Over:

Blocks that fall off the tower and hit the ground are counted. If the number of collision events exceeds the allowed limit (3 collisions), the game ends. The game also ends when the timer runs out, adding an element of time management. Scoring:

Players earn points for each block successfully stacked. Perfectly aligned blocks provide additional bonus points, encouraging players to focus on precision. Timer and Time's Up:

The game features a timer that starts when the first block is released. Players have a limited amount of time (e.g., 1 minute) to build their tower. If the timer reaches zero, the game ends, regardless of the tower's height.

Camera and Visual Effects:

The camera smoothly follows the hook and the highest block, ensuring the player's focus remains on the gameplay. When the game ends, the camera pans down to the platform, providing a final view of the tower before transitioning to the game over screen.

On-Chain Gameplay: TowerItUp integrates blockchain technology to enhance the gameplay experience. Every move players make is recorded as a blockchain transaction on Starknet, ensuring transparency, security, and immutability. This feature allows players to verify their actions and progress, adding a layer of trust and authenticity to the game.

Competitive Scoring System: The game features a competitive scoring system that encourages players to aim for the highest scores. Players earn points for each block successfully stacked, with additional bonuses for perfectly aligned blocks. The scoring system is designed to reward precision and skill, making the competition more intense and engaging. Making it more fun as you can show off your score on twitter.

Progressive Difficulty Levels: As players progress, the game introduces progressively challenging mechanics. The hook's swing speed and radius increase after every 10 blocks spawned, requiring players to adapt to the changing dynamics. This progressive difficulty ensures that players are constantly challenged, keeping the gameplay fresh and exciting.

Real-Time Leaderboard: TowerItUp includes a real-time leaderboard that displays the top players and their scores. This feature fosters a competitive environment, motivating players to improve their skills and climb the ranks. The leaderboard updates in real-time, reflecting the latest scores and positions, and enhancing the sense of competition.

Technology Stack:

Blockchain: Starknet is utilized to handle on-chain gameplay. Starknet is a layer-2 scaling solution for Ethereum, offering high throughput and low latency. It enables the game to record every move as a blockchain transaction efficiently.

Smart Contracts: The game's logic and transactions are managed using smart contracts written in Cairo. Cairo is a programming language for writing smart contracts on Starknet, known for its efficiency and scalability.

Frontend: The game's frontend is developed using Unity, a powerful and flexible game engine that supports 2D and 3D graphics. Unity provides the tools needed to create a visually appealing and responsive user interface.

Backend: The backend infrastructure includes Dojo.unity and Dojo Contracts. Dojo.unity provides a bridge between Unity and the blockchain, enabling seamless interaction with smart contracts. Dojo Contracts are the smart contracts that define the game's rules and handle transactions on Starknet.

Integration and Workflow:

Player Actions:

When a player makes a move (e.g., stacking a block), the action is recorded and sent to the blockchain via a transaction. The smart contract on Starknet validates and records the transaction, updating the game's state on-chain. Score Calculation:

The smart contract calculates the player's score based on their actions and the game's rules. Scores are updated in real-time and reflected on the leaderboard. Progressive Difficulty:

The game tracks the number of blocks spawned and adjusts the difficulty accordingly. Changes in hook speed and radius are implemented in real-time, providing immediate feedback to the player. Leaderboard Updates:

The leaderboard is updated in real-time, pulling data from the blockchain to display the latest scores and player rankings. Players can view their position and strive to climb higher on the leaderboard. User Interface:

The Unity frontend presents the game visually, with a smooth and responsive interface. Players interact with the game through an intuitive UI, accessing features such as the leaderboard, settings, and gameplay controls. Audio Integration:

Audio transitions between the main menu and game scenes are handled smoothly to maintain an immersive experience. Background music and sound effects enhance the overall gameplay atmosphere.

background image mobile

Join the mailing list

Get the latest news and updates