Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaScript game framework

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?

like image 351
Jordi Avatar asked Dec 14 '09 06:12

Jordi


People also ask

Is there a game engine for JavaScript?

Babylon. js is a powerful, beautiful, simple, and open game and rendering engine packed into a friendly JavaScript framework.

Can JavaScript be used to develop games?

Starting with pure JavaScript is the best way to get a solid knowledge of web game development. After that, you can pick any framework you like and use it for your projects.

Is JavaScript good for 3D games?

js is one of the most popular 3D game engines used by developers. As with any other 3D library, it provides built-in functions to help you implement common 3D functionality more quickly. See the Building up a basic demo with Babylon. js subpage for the basics of using Babylon.


2 Answers

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/

like image 95
James Black Avatar answered Oct 25 '22 18:10

James Black


A couple of sprite based canvas libraries are:

  • http://gamejs.org GameJs
  • http://lamberta.org/doodle-js Doodle-js
like image 42
oberhamsi Avatar answered Oct 25 '22 17:10

oberhamsi