16

Nowadays with <canvas>, it is easy to find all kind of cool stuff around the Internet. Like emulators, demos, games, just visual stuff, etc.
But it seems that everyone is programming using the basic primitives of canvas.

There exist any framework working over <canvas> or utility library?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Jordi
  • 1,212
  • 2
  • 11
  • 25
  • It would help if you gave an idea what you want to do on the canvas tag. – James Black Dec 14 '09 at 22:06
  • The goal is create a game where users input common sense data. For instance Fire burns... But create some game like and attractive interface – Jordi Dec 16 '09 at 09:11

6 Answers6

4

You could look at something like Processing.js:

http://processingjs.org/exhibition

UPDATE:

If you want a game API, I haven't tried it, but the comments are promising, you can look at:

http://ajaxian.com/archives/gamejs-canvas-game-library

In order to keep the javascript small and optimized I tend to just access the elements directly, but, over time people will create libraries of their own, but it may not be libraries that are useful in certain situations.

UPDATE 2:

Looks like you can get a version of gamejs from here:

http://tommysmind.com/gamejs/GameJS-0.1.rar

This also was an interesting article on GameJS by the author: http://tommysmind.com/gamejs/

James Black
  • 41,583
  • 10
  • 86
  • 166
3

A couple of sprite based canvas libraries are:

Community
  • 1
  • 1
oberhamsi
  • 1,303
  • 8
  • 18
2

http://www.effectgames.com/effect/article.psp.html/docs/Getting_Started_Guide

Check it out - very cool!

Dominic Rodger
  • 97,747
  • 36
  • 197
  • 212
alex
  • 479,566
  • 201
  • 878
  • 984
2

The best is really Akihabara.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
celsowm
  • 846
  • 9
  • 34
  • 59
  • The best for people who want arcade-style games *fast* -- definitely, but not for everyone. – namuol Apr 19 '12 at 23:58
1

jCanvaScript. It's very simple to use and there are many examples at the site.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Alex Savin
  • 286
  • 2
  • 6
1

jsGameSoup looks good: http://jsgamesoup.net/

Batteries included

  • Cross browser event handling (keyboard, mouse, touch)
  • Game entity management
  • Sprite management sprite.js
  • Sound effects playback with audio.js
  • Rudimentary polygon, box, circle collision detection collisions.js
  • Fast, deterministic random number generator random.js
  • Simple AJAX and bulk data loading with network.js
  • Basic cookie management cookies.js
  • Simple finite state machine statemachine.js
  • Optional auto-init to launch code attached to HTML canvases
Ladik
  • 477
  • 5
  • 8