Skip to content

About

A debugging case for hiring interviews

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bug Hunt - Unity 2D Prototype

A minimal top-down 2D shooter prototype.

Requirements

  • Unity 2022 LTS or newer

Quick Start

  1. Open the project in Unity 2022 LTS+
  2. Open the scene: Assets/Scenes/BugHuntScene.unity
  3. Press Play

The scene is fully configured and ready to play - no manual setup required.

How to Play

  • WASD / Arrow Keys: Move the player
  • R: Restart (when game over)

Shooting is automatic: the player fires at the closest enemy in range, on a fixed interval.

File Structure

Assets/
├── Scenes/
│   └── BugHuntScene.unity      # Main playable scene
├── Scripts/
│   ├── Core/
│   │   ├── EventBus.cs         # Static event system
│   │   └── GameManager.cs      # Game state management
│   ├── Enemies/
│   │   ├── Enemy.cs            # Enemy AI and health
│   │   └── EnemySpawner.cs     # Enemy spawning
│   ├── Player/
│   │   ├── PlayerController.cs # Player movement
│   │   ├── Projectile.cs       # Projectile behavior
│   │   └── Shooter.cs          # Projectile shooting
│   ├── UI/
│   │   └── SimpleUI.cs         # UI display
│   └── Utilities/
│       ├── CinemachineSetup.cs # Camera setup helper
│       ├── SpriteSetup.cs      # Sprite configuration
│       └── TiledBackground.cs  # Background tiling
├── Resources/
│   ├── Enemy.prefab            # Enemy prefab
│   └── Projectile.prefab       # Projectile prefab
└── Sprites/
    └── WhiteSquare.png         # Base sprite asset

Known Bug Symptoms

  1. When the game gets harder, enemy hit behavior is strange
  2. When we play multiple times we see the log "HandleGameOver called!" printed too many times
  3. When playing on devices that have different performances, the player movement speed is inconsistent

Notes

  • All scripts compile and the game is fully playable
  • Check the Console for debug logs that may hint at issues
  • Test the game multiple times, including after restarting with R

About

A debugging case for hiring interviews

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages