Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/gschier/2d-platformer
- Owner: gschier
- Created: 2013-03-04T17:27:45.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-18T05:05:28.000Z (almost 12 years ago)
- Last Synced: 2024-11-09T20:35:35.362Z (2 months ago)
- Language: JavaScript
- Size: 270 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)