Pac-Rat Minigame


I've added a pac-man style minigame as a distraction for myself as well as the player. Featuring a rat in a small maze being chased by dogs, you pick up "pellets" until you expend your 3 lives.


Controls

Move - Arrows

Jump  - Space

On attract screen

Exit - Esc

Shift - Insert Coin

Space - Start


  • The pellets respawn after 15s of being picked up.
  • A faster 3rd dog spawns at 100 and a 4th 250 points
  • You can jump over one tile, water or dog. (Also serves as a small speed boost)
  • If you land in the water, you lose a life
  • A powerup spawns after a random range: 2:1 points/1up
  • Added a high score display as well as a game time/game money display
  • Only one game dollar per play!
  • Coin return to collect unused credits


Bugfixes

  • Added barriers preventing player from moving before enemies
  • Fixed a bug allowing the player to jump over the barriers
  • Added a 2 second blink time to later dogs to prevent spawn killing
  • Powerup is now functioning as intended
  • Attract screen functioning normally
  • Ajusted the rat color for visibility, and changed the colors of the 3rd and 4th dogs
  • Added 3 frame delay after jumping

Leave a comment

Log in with itch.io to leave a comment.