Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build a simple HTML5/canvas 2D game. Game engine recommended to use? [closed]

I want to start learning HTML5 with canvas by building a simple 2d game. I want to build one that looks like this one: http://www.youtube.com/watch?v=h4SgiVCPfPk

Do you recommend any framework or game engine I could use to do this?

like image 990
pimpampoum Avatar asked May 26 '12 11:05

pimpampoum


People also ask

How does html5 work on canvas?

The HTML <canvas> element is used to draw graphics, on the fly, via scripting (usually JavaScript). The <canvas> element is only a container for graphics. You must use a script to actually draw the graphics. Canvas has several methods for drawing paths, boxes, circles, text, and adding images.

Can you make games with pure JavaScript?

Now that you know JavaScript can be used to make games, it brings the question of is it good for this task. Yes! JavaScript is a great language for game development, depending on the type of game you want to create. JavaScript is best for web-based and mobile games.

What is Canvas API?

The Canvas API provides a means for drawing graphics via JavaScript and the HTML <canvas> element. Among other things, it can be used for animation, game graphics, data visualization, photo manipulation, and real-time video processing. The Canvas API largely focuses on 2D graphics.


2 Answers

I would recommend using EaselJs for a 2D game using canvas. You will find some great examples on the site, and a pretty decent documented api to get you going.

like image 121
Neil Avatar answered Oct 13 '22 16:10

Neil


I'll offer you an alternative in the form of MelonJS Which has some excellent documentation and very easy to get up and running.

like image 34
Biped Avatar answered Oct 13 '22 16:10

Biped