squidlegs
v0.1.15
Published
ES6 Game Framework
Downloads
3
Readme
Squidlegs: ES6 Game Framework
Quick and dirty game framework that works with Babel and Gulp so you can write ES6 game code today, instead of ∞ days from now.
It consists of –
1
squidlibrary/
A basic set of ES6 Javascript classes, designed to be pretty modular so you cannew
whatever you actually needLoop
- userequestAnimationFrame
to setup your main game loopCanvas
,DomCanvas
, andVirtualCanvas
- wrapper to draw to an onscreen or offscreen canvas (holdscontext
and has helpers likerotate
)Mouse
- handles the conversion between click events and simple coordinates on a canvasKeyboard
andKeyboardMovement
- handleswasd
/ ↑→↓← events, and translation to location deltas and facing degreesSprite
- loads a sprite sheet image, stores it in an offscreen canvas (to allow for rotation), and draws to a canvasFont
- loads and displays simple pixel fonts in the format of (one section per line)0..9
A..Z
Extras
gulpfile.js
to translate the framework and your code into ES6 via Babelgame/
- where your actual game code might go, currently home to a samplemain.js
index.html
- a test page
It's open source, unstable, and has no tests - it may eat your dog, my dog, or any number of other figurative dogs.
@todo
- Add a cohesive
export
/import
system - currently extending classes depends on ordering thegulpfile
– not cool - Add moar things!