Skip to content

A high school janitor encounters ghosts in his High School's Gymnasium the night before graduation! See how long you can survive by feeding the ghosts mice running around, and avoid the ghosts as they move faster and faster.

ainzero/Ghosts-In-A-Gymnasium

Repository files navigation

3/17/2017 - This is a silly game I wrote using pygame back when I first started programming. I've been thinking
about actually making the code architecture "reasonable", as well as numerous other improvements to it. Stick around for changes
in the future. -Anthony


Ghosts in A Gymnasium

Gameplay: Before the game starts, the player has the opportunity to move 
blocks (Chairs) around anyway he or she wishes. Once finished, two 
Ghosts will spawn, along with three mice. The player must kill mice and 
feed the ghosts to buy time before they catch him or her. The ghosts 
will move fast enough before the first feeding where they will catch the 
player. Gaining time for yourself involves feeding the ghosts without 
being eaten by them. The goal in the game is to see how long you can 
survive 
without being eaten. 

Code Notes:

Theres some needless duplication and inefficency here and there, mainly 
because I just 
wanted to get something working.

game.py - main game object, runs game. 

Ghostman,Mouse,Player - objects pertaining to given name

Sprite Data:

  /data/sprites/<spritename>/<action i,e stand,walk 
etc>/<direction>/<spritename>0.png for first frame of animation, 1 for 
next etc


TODO:
Major code cleanup
better collision detection between sprites
enhanced pathfinding for ghosts and mice, taking into account chairs

About

A high school janitor encounters ghosts in his High School's Gymnasium the night before graduation! See how long you can survive by feeding the ghosts mice running around, and avoid the ghosts as they move faster and faster.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages