A highly addictive, production-ready stacking game built with Expo for iOS and Android.
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!
# Install dependencies
npm install
# Start the development server
npx expo start
# iOS
npx expo run:ios
# Android
npx expo run:android
# 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
# iOS (requires Mac)
npx expo run:ios --configuration Release
# Android
npx expo run:android --variant release
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
Game settings can be adjusted in src/constants/index.ts:
INITIAL_BLOCK_WIDTH: Starting block widthINITIAL_SPEED: Starting movement speedSPEED_INCREMENT: Speed increase per levelPERFECT_THRESHOLD: Pixel tolerance for perfect placementCOMBO_THRESHOLD: Combo activation thresholdModify COLORS in src/constants/index.ts to change the gameโs color scheme.
Update blockColors array for different block appearances.
React.memo for component optimizationMIT License - feel free to use this for your own projects!
Inspired by classic stacking games. Built with: