Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakofranko/platformgame
A platform game from http://eloquentjavascript.net chapter 15, based off the platform game Dark Blue (http://www.lessmilk.com/games/10/)
https://github.com/jakofranko/platformgame
Last synced: about 2 months ago
JSON representation
A platform game from http://eloquentjavascript.net chapter 15, based off the platform game Dark Blue (http://www.lessmilk.com/games/10/)
- Host: GitHub
- URL: https://github.com/jakofranko/platformgame
- Owner: jakofranko
- Created: 2015-07-27T18:27:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-09T20:21:48.000Z (about 9 years ago)
- Last Synced: 2024-04-13T19:21:44.385Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# platformGame
A platform game from http://eloquentjavascript.net chapter 15, based off the platform game Dark Blue (http://www.lessmilk.com/games/10/)There are two display modes: DOMDisplay, and CanvasDisplay. Each uses pretty widely varying methods for displaying the levels and the actors.
DOMDisplay uses a table element to draw the background and absolutely positioned divs for the actors.
CanvasDisplay draws everything onto a single canvas element, animating based off of the actor and player's behavior.
As of right now, there's not a way to switch between them besides specifying in index.html which one to use in the `runGame()` function.