Recent

Author Topic: power maze (pacman style game)  (Read 3205 times)

speter

  • Hero Member
  • *****
  • Posts: 527
power maze (pacman style game)
« on: April 01, 2026, 03:31:05 am »
Another short and simple old basic game "power maze" would probably have been better named "Ghost Maze". The original source was a mighty 60 lines long. :)

You don't "win" this game, you somply try to score as highly as possible! 500+ is certainly achievable (if all the power-ups are getable). One interesting aspect is that the "monster" is a ghost and therefore can ignore walls :o this greatly simplifies the ghost's movement code!

Enjoy,
S.
I climbed mighty mountains, and saw that they were actually tiny foothills. :)

speter

  • Hero Member
  • *****
  • Posts: 527
Re: power maze (pacman style game)
« Reply #1 on: April 02, 2026, 02:11:44 am »
As you may have noticed, I like games where the player can "win". In the earlier version of this game, the best you could do was the get 500+ points. This version of the game makes it possible for the player to "win". :)

I have added two checkbox options to the program:
  • Ghost clears walls: when the ghost moves through a wall, it is removed.
  • Ghost lays dots: when the ghost moves, it lays a trail of dots; also, every 20 moves, the Ghost will lay a power-up.
These options (espectially the second), mean that the player can be quite aggressive and "camp" the Ghost, while their power > 0; and then head to a power-up to refresh their "power".

Also note that power-ups are cumulative, each increases the players "power" by 50 (it decrements with each move). Note in the attached image that the player's power = 106.

All the above make the game much more enjoyable, imo.

Enjoy.
S.

I climbed mighty mountains, and saw that they were actually tiny foothills. :)

 

TinyPortal © 2005-2018