GameCs is a port of GameJs Framework to CoffeeScript.
GameJs is a JavaScript library for writing 2D games or other interactive
graphic applications for the HTML Canvas http://gamejs.org.
You can check simple canvas gamecs examples online here
and multi-canvas example here.
Examples are also available in the repository in the src/sc-examples/
and src/mc-examples
directory.
Every example works in file:// except worker-require that uses WebWorker's ImportScript function which require http://
Download last version here
OR
compile it yourself by:
- cloning repository
make && make install
- Get your minimized file from assets/js/gamecs.min.js
Start simple http server: make server
(server available on http://localhost:8000)
Recompile on file change: make watch
.
See the GameJs Website for more help or drop us
an email in the Mailing List.
Irc channel #gamejs (on irc.freenode.net)
Under refactoring
For now please use http://docs.gamejs.org/
-
Multi-Canvas example development
-
Solid implementation of the Entity-Component-System architecture
-
Polygon collision detection (PNPoly)
-
Polygon collision mask rotation
-
Polygon mask graphic editor (as a gamecs example)
-
Architecture refarctoring:
Maybe rename the project as g-spot (g.).
Separate whole project into smaller modules, my actual proposition is:
- Audio:
- mixer
- sound
- midi
- 2d:
- rect
- circle
- polygon (or pnpoly)
- mask (when pnpoly is not precise enough)
- collision
- spriteSheet
- Tilemap
- Draw:
- surface
- surfaceArray
- shape (formerly draw)
- img
- noise (simplex, Alea)
- transform
- Engines:
- Particle
- Physics
- Text:
- Font
- Browser (or Web?):
- Dom
- XHttp (formerly http)
- Input (formerly events)
- Uri
- Algorithm (maybe put algorithm in Utils)
- Astar
- MinMax (AlphaBeta pruning)
- prng
- Utils
- Arrays
- BinaryHeap
- Base64
- Geometry (formerly utils/math)
- Matrix
- Objects
- Time
- Vectors
- Parser
- xml
Refactoring could also include some:
- Feature refatoring (if needed)
- Write proper unit tests for each module