Cover for the App

Mineshaft Mayhem

This is an Infinite Runner game.

This is an Infinite Runner game.

Mineshaft Mayhem

Mineshaft Mayhem is an infinite runner set in a dark, dungeon-like mineshaft where players collect gold pieces while avoiding various obstacles. This project is fully clonable and customizable by anyone.

Project Info

All of the code in this project is commented and should be very readable.
Please feel free to take and use any of this code in other projects.

Custom Component Overview

Collidable Entity Controller
A component that manages the behavior of collidable entities such as obstacles, coins, shields, and multipliers.

Game Manager
A component that handles important game logic, including player score tracking, managing the 2X multiplier, and shield mechanics.

Input Controller
A component that manages both UI button and keyboard inputs for player movement.

Lateral Player Movement
A component that controls the player’s left and right movement between lanes based on input events.

Vertical Player Movement
A component that handles the player’s jumping and ducking actions, ensuring proper vertical movement.

Move Entities
A component that moves obstacles and terrain forward, adjusting speed over time as the game progresses.

Moving Terrain Controller
A component that loops and resets terrain elements when they reach the end of their movement.

Player Animations
A component that manages the player's animation states like running, jumping, sliding, and idle based on game events.

Player Audio Manager
A component that handles audio playback for different characters, including jump, death, and other action-related sounds.

Object Audio Controller
A component that plays sound effects for events like collecting coins, gaining shields, and activating multipliers.

Player Model Controller
A component that manages the visual representation of different player characters during the player selection process.

Body Collider Controller
A component that tracks collisions between the player and ground or obstacles, controlling jump and landing mechanics.

Head Collider Controller
A component that detects head collisions during ducking and overhead obstacles.

Shield
A component that grants the player temporary invulnerability, managed through the Game Manager.

Spikes
A component representing a group of spike obstacles that move toward the player, requiring jumping or ducking to avoid.

Wall
A component representing a stationary wall obstacle that the player must jump over or avoid.

Coin
A component for spawning and managing the behavior of collectible coins.

Barrel
A component representing barrel-shaped obstacles that roll toward the player.

Rock
A component that instantiates large rock obstacles that block lanes, requiring dodging or jumping.

2X Multiplier
A component for handling the behavior of the 2X multiplier, which doubles the player's score for a limited time.

Instantiation Controller
A component responsible for spawning obstacles and collectibles at regular intervals across different lanes.

UI Controller
A component that controls the game’s user interface, managing different screens such as the welcome screen, instructions, player selection, in-game HUD, and game over screen.

Attribution

All assets used in Mineshaft Mayhem have Creative Commons (CC0) licenses.

Assets retextured and edited by Jason VonGermeten (jason.vongermeten@gmail.com)

Featured screenshot
Featured screenshot