Skip to content
/ SPACECAT Public

SPACECAT is a precision platform game which involves navigating our hero, the spacecat, to the exit portal.

Notifications You must be signed in to change notification settings

j-d-b/SPACECAT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPACECAT

spacecat_example

SPACECAT is a precision platform game written in Haskell, which involves navigating our hero, the spacecat, to the exit portal.

Setup

Setup and build with the cabal tool.

cabal sandbox init
cabal install
cabal build

Then start SPACECAT with

cabal run

Background

Uses Haskell gloss package for animation and 2D rendering.

Written in Fall 2016 with imcinerney as our Functional Programming course final project, though I put more work into cleaning it up and adding features after the course for a v1.1 release in early January, 2017.

Instructions

SPACECAT gameplay requires both precisely timed keypresses and more restful thinking to master MAP II. Use MAP I to practice and learn the controls.

The objective is to reach the gate, which appears as a purple, rectangular portal.

Controls

Move the cat around with the arrow keys:

  • LEFT Move left
  • RIGHT: Move Right
  • UP: Jump
  • DOWN: Crouch

SPACEBAR: Paw swipe. Can use this to attack cannons when close.

Press q to return to the home screen at any time.

Press r to restart a given level.

Close the game/window with the esc key.

Note: crouching while in the air allows the cat to lift its feet a bit higher, and reach platforms otherwise unreachable, if well timed.

Platforms

There are three types of platforms: hardbottom, softbottom, and spike.

The cat can jump through softbottom platforms from below, but not hardbottom.

spikes cause you to lose a life for every frame you are touching them.

Cannons

cannons will shoot at the cat from any distance when he enters their line of sight; from one projectile hit, you will lose one life; remaining lives are displayed in the top left.

Good luck out there!

About

SPACECAT is a precision platform game which involves navigating our hero, the spacecat, to the exit portal.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published