🎮 Match’n Gacha

🎲 Play Now

🚀 Launch Match'n Gacha

Mobile-optimized block-matching puzzle with gacha mechanics

Overview

Match’n Gacha is a professional-grade mobile block-matching puzzle game that combines addictive match-3 mechanics with collectible trading card elements. Built with modern web technologies, it delivers a polished gaming experience with revolutionary risk/reward psychology.

🎯 Core Game Features

🎲 Addictive Game Loop

  1. Complete Objective → Earn 1 Token + Celebration
  2. Choice Modal → “Next Level” (safe) vs “Wager Token” (risky)
  3. Wager Path → New objective, same level, remaining moves, 2x reward
  4. Success → Double tokens + choice modal again (compound wagering!)
  5. Failure → Lose wagered token, advance to next level anyway

This creates psychologically compelling “just one more try” moments that drive engagement.


🏗️ Technical Architecture

Technology Stack

Component Technology Purpose
Game Engine Phaser.js 3.70.0 High-performance 2D game framework
Architecture Component-based Modular systems for maintainability
Frontend HTML5 + CSS3 + ES6 Progressive Web App foundation
Deployment Docker + nginx Containerized static site serving
SSL/Proxy Traefik v3.0 Automatic HTTPS with Let’s Encrypt
Storage LocalStorage Persistent game state and tokens
PWA Support Service Worker + Manifest App store readiness

Core Systems

Grid & Physics System

Power-up Generation

Level Objective System

Token Economy Architecture

File Structure

/home/thrax/unified-services/match-n-gacha/
├── Dockerfile                     # nginx Alpine container
├── nginx.conf                     # Web server config with PWA support
└── public/
    ├── index.html                 # Main game page with mobile meta
    ├── manifest.json              # PWA manifest for app stores
    ├── service-worker.js          # Offline support
    ├── css/main.css               # Mobile-responsive styles
    ├── js/
    │   ├── main.js                # Game initialization & config
    │   ├── components/
    │   │   ├── Block.js           # Core block with drag support
    │   │   ├── Grid.js            # Grid container management
    │   │   ├── PowerUp.js         # Special block abilities
    │   │   └── Collectible.js     # Trading card visuals
    │   ├── scenes/
    │   │   ├── PreloadScene.js    # Asset loading with fallbacks
    │   │   ├── MenuScene.js       # Main menu navigation
    │   │   ├── GameScene.js       # Core gameplay with swap logic
    │   │   ├── MarketplaceScene.js # Trading interface
    │   │   └── CollectionScene.js  # Player collection view
    │   └── systems/
    │       ├── AssetManager.js    # Modular loading with fallbacks
    │       ├── ThemeManager.js    # Hot-swappable visual themes
    │       ├── GameStateManager.js # Persistent save system
    │       ├── TokenSystem.js     # Economy management
    │       ├── LevelObjectiveSystem.js # Challenge generation
    │       ├── CollectibleSystem.js # Item generation & rarity
    │       └── MarketplaceSystem.js # Player-to-player trading
    ├── data/themes/               # JSON theme configurations
    └── assets/ (placeholder structure)
        ├── sprites/               # Block, collectible, UI graphics  
        ├── audio/                 # Sound effects and music
        └── themes/                # Theme-specific assets

🎮 Game Mechanics Deep Dive

Advanced Match Detection

The game features sophisticated pattern recognition:

Power-up Strategy Layer

Power-ups add strategic depth beyond basic matching:

Collectibles & Gacha (Framework)

Advanced trading card system with:


🚀 Deployment & Performance

Docker Configuration

match-n-gacha:
  build: ./match-n-gacha
  container_name: match-n-gacha
  restart: unless-stopped
  networks:
    - services-network
  labels:
    - traefik.enable=true
    - traefik.http.routers.gacha.rule=Host(`gacha.playtopia.com.au`)
    - traefik.http.routers.gacha.entrypoints=websecure
    - traefik.http.routers.gacha.tls.certresolver=letsencrypt

Performance Optimizations

Development Workflow

# Build and deploy
cd /home/thrax/unified-services
docker compose build match-n-gacha --no-cache
docker compose up -d match-n-gacha

# View logs  
docker compose logs -f match-n-gacha

# Quick file access
ls -la match-n-gacha/public/js/{components,scenes,systems}/

📊 Development Status

Production Ready Features

🎯 Game Status: PRODUCTION READY

The game delivers a polished, commercial-quality experience with:

Match’n Gacha represents the culmination of professional game development practices, combining engaging gameplay mechanics with robust technical architecture to create an addictive puzzle experience that keeps players coming back for “just one more try.”