I'm refactoring all the code in the branch getting-rid-of-closure-compiler. Basically I'm getting rid of closure compiler and using require.js instead. This will make things a lot simpler to debug & play, as well as deploy. And possibly reducing file-size of the library, as it will only add the core modules + whatever you need in your game.
I'll also add support back for canvas (already there, missing support for block groups), clean the API for actions, and add simple raycasting (detect when you touch/click a block in the scene graph).
ChesterGL (Chester Game Library) is a WebGL/canvas 2d game library that focuses on ease of use and performance. It supports a simple scene graph and provides a minimal interface for you to create games, and extend the library if you need. Current features: time based actions, simple scene graph, Tiled (tmx) map support, different shaders (webgl only), batched sprites.
The easy way: play with the official jsfiddle
If you need help on how to do anything, the best idea would be to check the online tests
Or look at the (not always updated) online documentation
Sorry, the docs are not yet complete, but they will at some point :) Just look at the examples and figure your way out from there. It shouldn't be too hard
Or wait until I write my "how to make an HTML5 game using chesterGL" (should be soon, although I keep saying that)
# clone the repo
git clone git://github.com/funkaster/ChesterGL.git
cd ChesterGL
cp developer.template.mk developer.mk
# edit developer.mk and set the paths accordingly
# look below for the requirements
make debug
If you really want to get into this, I wrote a small page with some hints that might help you.
How to just check this workingPoint your browser (even your mobile browser!) to: http://funkaster.github.com/ChesterGL/test/
You will need to modify the Makefile and change the location of closure compiler, as well as add the following externs:
All of them are in the svn repo of google closure. You also will need closure-compiler and the closure builder (+ the closure library, of course). You can read about that here:
https://developers.google.com/closure/library/docs/calcdeps
Check the Makefile for where to place them or modify that to suit your needs.
The WebGL implementation might depend a lot on your graphic card, but I tried to make it very efficient, so it should go very fast with lots of sprites on the screen. Try to use BlockGroups (batched sprites) as much as you can. As a reference, you might want to look at the performance test, for my dev machine (4 years old MacBook Pro, Firefox 11), it's around 13,000 blocks at 33ms per frame (~ 30 frames per second).
For the canvas version, the is a bit more slow, but pretty decent even on iOS devices:
That's my dog's name. And I would like this library to have the same goals that my dog usually has
You can always look at the issues on the github project and look for the right milestone.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4