Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gschier/2d-platformer

A base foundation for a 2D platform game using HTML Canvas. See README for details.
https://github.com/gschier/2d-platformer

Last synced: 21 days ago
JSON representation

A base foundation for a 2D platform game using HTML Canvas. See README for details.

Awesome Lists containing this project

README

        

base-2d-platformer
==================
## Demo

[gschier.github.com/platform-pixels](http://gschier.github.com/platform-pixels/)

## Requirements

- Have [Node.js](http://nodejs.org/) installed

## Setup

``` bash
$ # cd to root of project
$ npm install
$ npm start
$ # visit http://localhost:5000 in your browser
```

*To get memory stats to work start Google Chrome with the "--enable-memory-info" flag*

## Functionality

This basic 2D platform game was built from scratch using HTML and Javascript. The basic features include:
- Movement
- Gravity
- Jumping
- Framerate independant movement mechanics
- Collision detection
- Canvas size independent (everything scales properly)

You will find config options for the following scattered throughout the code.
I will make configuration easier eventually. The more advanced features include the following:
- n-jumping (double jump, tripple jump, ...)
- sticking to walls
- time manipulation (slow down, speed up)

## Future Plans

So far this is just a start, here's a list of things I want to do next:
- Sequential level flow
- More trigger types
- A lot more

## Contribution and Questions
If you would like to contribute you can do one or more of the following
- Fork the project (I welcome pull requests) :D
- Create an issue
- Send me a question or comment at @GregorySchier on [Twitter](https://twitter.com/GregorySchier) or [App.net](https://alpha.app.net/gregoryschier)