Skip to content

LaurenceScotford/stackhack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stackhack

Prototype for a 2D physics game

This is a Christmas game prototype I created as a final project for the CS50 online course from Harvard University / edX. I wanted to create something that would help me learn how to construct a 2D physics game.

After completing the project, I decided that the core gameplay idea wasn't strong enough to develop further.

The prototype consists of 5 demo levels - enough to introduce the player to each of the key game mechanics.

Game story

The present stacking machine at Santa's workshop has broken down and is throwing out presents haphazardly. It is up to the player, as Santa's chief elf, to collect and stack presents in the required pattern.

Game controls

The game is played using the keyboard:

  • Left arrow: Move Left
  • Right arrow: Move Right
  • Up arrow: Jump
  • Spacebar: Pick up / drop a present

Features

  • 2D physics-based game
  • Progressive tutorial system triggered by player actions
  • Timed or untimed levels
  • Simple JavaScript object structure for level and tutorial data

Development notes and dependencies

The game makes use of HTML canvas. It uses the following frameworks:

These are both loaded via CDNs.

Other than those frameworks, the game is standard ES5 JavaScript.

All code (other than dependencies cited above) and graphics are by me, Laurence Scotford.

Further information

If you are interested, there's futher information about the development of this prototype on my website.

About

A prototype 2D-physics Christmas-themed web game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors