Stack-Tower

Stack Master

A highly addictive, production-ready stacking game built with Expo for iOS and Android.

๐ŸŽฎ Game Overview

Stack Master is a precision stacking game where you tap to drop moving blocks and build the tallest tower possible. Perfect placements earn bonus points and combos!

Psychological Hooks (What Makes It Addictive)

  1. Variable Reward Schedule: Random โ€œperfectโ€ and โ€œgoodโ€ messages, combo multipliers
  2. Near-Miss Effect: Close placements feel rewarding even when not perfect
  3. Progress & Achievement: Score tracking, milestones, combo system
  4. Social Comparison: Share scores, compete with yourself
  5. Loss Aversion: Want to protect your high score
  6. Flow State: Increasing difficulty keeps you in the zone
  7. Short Sessions: Quick games encourage โ€œone more tryโ€
  8. Daily Challenges: Return daily to complete new challenges

๐Ÿš€ Getting Started

Prerequisites

Installation

# Install dependencies
npm install

# Start the development server
npx expo start

Running on Device/Simulator

# iOS
npx expo run:ios

# Android  
npx expo run:android

๐Ÿ“ฑ Building for Production

# Install EAS CLI
npm install -g eas-cli

# Login to Expo
eas login

# Configure your project
eas build:configure

# Build for iOS
eas build --platform ios

# Build for Android
eas build --platform android

Local Build

# iOS (requires Mac)
npx expo run:ios --configuration Release

# Android
npx expo run:android --variant release

๐ŸŽฏ Game Features

๐Ÿ“ Project Structure

src/
โ”œโ”€โ”€ components/      # Reusable UI components
โ”‚   โ”œโ”€โ”€ Block.tsx
โ”‚   โ”œโ”€โ”€ FallingPiece.tsx
โ”‚   โ”œโ”€โ”€ ComboIndicator.tsx
โ”‚   โ”œโ”€โ”€ ParticleEffect.tsx
โ”‚   โ””โ”€โ”€ ...
โ”œโ”€โ”€ screens/         # Main screens
โ”‚   โ”œโ”€โ”€ HomeScreen.tsx
โ”‚   โ”œโ”€โ”€ GameScreen.tsx
โ”‚   โ””โ”€โ”€ GameOverScreen.tsx
โ”œโ”€โ”€ hooks/           # Custom React hooks
โ”‚   โ””โ”€โ”€ useGame.ts
โ”œโ”€โ”€ utils/           # Utility functions
โ”‚   โ”œโ”€โ”€ gameLogic.ts
โ”‚   โ”œโ”€โ”€ storage.ts
โ”‚   โ””โ”€โ”€ audio.ts
โ”œโ”€โ”€ constants/       # Game configuration
โ”‚   โ””โ”€โ”€ index.ts
โ””โ”€โ”€ types/           # TypeScript types
    โ””โ”€โ”€ index.ts

โš™๏ธ Configuration

Game settings can be adjusted in src/constants/index.ts:

๐ŸŽจ Customization

Colors

Modify COLORS in src/constants/index.ts to change the gameโ€™s color scheme.

Block Colors

Update blockColors array for different block appearances.

๐Ÿ“Š Performance

๐Ÿ“„ License

MIT License - feel free to use this for your own projects!

๐Ÿ™ Credits

Inspired by classic stacking games. Built with: