Ghosts

Ghosts is a first person shooter with time abilities. The only goal in the game is to survive waves of enemies and get as far as you can. You have different abilities like a time grenade, everything in the influence radius of the time grenade freezes in time until the time grenade runs out of time. You also have a time slow ability, with this you can slow time for a short period of time. The wormhole ability places a wormhole on the spot you stand, if you use the wormhole ability again it teleports you to the wormhole and destroys the wormhole.

Since there is no tutorial in the game I will put all the special controls here.
T : Slow time
G: Grenade
Y: Time grenade
H: Wormhole / Teleport
  • Download

  • GitHub

  • The things I did in this project:


    Soldier AI:

    I used A* for the pathfinding. The soldier always pathfinds to the player, if they can see the player and are withing a certain range they stop walking to the player and start shooting him, if they can't see the player anymore they stop and start walking to the player again. When they run out of ammo they have to reaload, before they do this they scan their seroundings for cover, if there is a cover nearby they will run to the cover before reloading. After they reload they go back to shooting the player.

    Helicopter AI:

    The helicopter has a chance based on the current wave to spawn. When it spawns it wil go straight to the helipad. When close to the helipad it will slow and start going down, if it's close to the ground it will drop off 4 ennemies and start flying away.

    Time slow ability:

    You can slow time in the game. When you do the game will slow and a bar at the bottom of your screen will go down. When the bar is empty the time will go back to normal.

    Time grenade:

    You can throw a time grenade, this works just like a normal grenade but instead of exploding it will put down a sphere. Everything in this sphere will stop moving including bullets, when the sphere disappears everything in the sphere will start moving again. So every bullet you shot in it before will also shoot to any enemy behind it.

    Wormhole:

    When you press the button for the wormhole powerup it will place down a wormhole, if you press the button after this you teleport back to this wormhole and the wormhole will be on cooldown.

  • Back