Hi! I was wondering if any experts out there could share the knowledge and resources of what is necessary to start making games with the latest HTML standards and JavaScript (or what some like to call HTML 5). Are there JavaScript libraries that are essential to the process? Aside from the <canvas>
tag, what other pieces of HTML do we need to be aware of?
up vote
5
down vote
favorite
6
|
|
|||
|
up vote
6
down vote
|
HTML and JavaScript are honestly fairly bad platforms for game development, but that won't matter until you've decided on a kind of game. The answer would be radically different for a first person shooter, an RTS or a puzzle game. Notice that you're starting to get vague, hand-wavey answers rattling off random technologies that seem neat. That's a warning sign that you haven't asked a question with a particularly legitimate answer. You might as well ask what C++ stuff you need to write applications. That depends. Tell us more about the project, and you might get a useful answer. By and on the whole, there's a reason that nearly all web games are still Flash. |
||||||||
|
up vote
2
down vote
|
You should be aware of the Audio and Video tags. Web Storage is pretty critical if you need to save a lot of data for saved games etc. There are already a few Javascript html5 game frameworks, Akihabara is rather popular. As far as other libraries, Jquery and Functional Javascript are 2 of my favorites. |
||
|
up vote
2
down vote
|
There are a couple of frameworks already: GameQuery and Akihabara, which is a plugin for jQuery to do some game-related activities, like animations, grouping sprites, detect collisions and read player input. |
|||
|
up vote
1
down vote
|
I'm writing a game in HTML5, the current early version may be found from: http://boxbase.org/fun/knights though I will likely move it elsewhere once I get it readied. The reason to write it this way is the visibility - everyone who just happens to navigate on the site can play it. From my point of view javascript+HTML5 will be an excellent platform for large amount of indie-games. It'd be pretty much useful to know everything of HTML5 because you eventually need much of it. I'll need at least Audio, Image, canvas, WebSocket, few event handlers and timing -mechanisms at the clientside. They are all pretty easy to use. example.js:
example.html:
http://developer.mozilla.org/ has lot of useful documentation on it all, javascript and canvas documentation especially. One good idea would be to ignore internet exploder as a platform and develop it all on google chrome. That way it has highest chances to work all right on Firefox and safari -browsers as well (60% of users in web). |
|||
|
up vote
0
down vote
|
Just to throw more resources out there, check out RaphaelJS. It's a very nice SVG drawing and animation library that has a nice API. Don't forget to check out the demos. Overall, I'd recommend |
||
|