Skip to content

Mohamedhazeem/Pit-Panic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

180 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔥 Pit Panic

Pit Panic is a fast-paced, reflex-driven tile-matching arcade game where players must match incoming tiles before they fall into a deadly pit. Every missed match brings the characters closer to danger, creating constant tension and urgency.

Built with a focus on performance, modular architecture, and clean gameplay systems, Pit Panic is designed for WebGL and casual gaming platforms.


🎮 Game Overview

  • Genre: Arcade / Puzzle / Reflex
  • Platform: WebGL
  • Engine: Unity
  • Target Platforms: CrazyGames, Y8, Web Browsers
  • Mode: Single Player

The objective is simple but intense:
match tiles correctly and quickly to prevent them from falling into the pit.


✨ Key Features

  • 🔥 Fast-Paced Tile Matching Gameplay
    Tiles move toward a pit and must be matched in pairs before time runs out.

  • 🛣️ Multi-Lane Tile System
    Four independent lanes with smart spawning logic to avoid overlap.

  • 🎨 GPU-Instanced Rendering
    Uses MaterialPropertyBlocks for efficient rendering and better WebGL performance.

  • 🧠 Modular & SOLID Architecture
    Clean separation of systems such as spawning, matching, movement, and animation.

  • WebGL Optimized
    Designed for lightweight builds and smooth browser gameplay.


🧩 Core Gameplay Mechanics

  • Pair-based tile spawning using a shuffled pool system
  • Texture-based tile matching (e.g., apple ↔ apple)
  • Continuous tile movement toward the pit
  • Match validation and fail-state handling
  • Character danger / death trigger when tiles fall into the pit

🛠️ Technologies Used

  • Unity Engine
  • C#
  • ScriptableObjects for tile data
  • GPU Instancing with MaterialPropertyBlocks
  • DOTween for animations
  • Event-driven systems
  • WebGL build optimization techniques

🧠 System Architecture Highlights

  • Tile Manager – Controls tile lifecycle and movement
  • Match Manager – Validates matches and triggers outcomes
  • Spawn System – Smart lane selection with shuffled tile data
  • Animation Controller – Script-driven animation playback without large AnimatorControllers

📦 Project Purpose

This project was built to:

  • Demonstrate advanced Unity architecture
  • Showcase performance-focused WebGL development
  • Highlight clean C# design following SOLID principles
  • Serve as a strong portfolio piece for game and software development roles

🔮 Planned Improvements

  • Combo and scoring system
  • Difficulty scaling
  • Sound effects and feedback
  • Leaderboards
  • Additional tile themes and animations

👤 Developer

Mohamed Hazeem
Unity & Full-Stack Developer
📍 India


🔒 License

Private / Proprietary Software

© 2025 Mohamed Hazeem. All rights reserved.

This repository is for portfolio and demonstration purposes only.
Unauthorized copying, redistribution, or commercial use is prohibited.

About

Pit Panic is a fast-paced tile-matching survival game. Match tiles before they reach the burning pit to save people — or watch the people fall into the Pit!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors