Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 14808

HTML 5 refers to new web technologies such as high performance JavaScript engines, canvas 2D and WebGL, video and audio tags.

1 vote

HTML5 game obfuscation

HTML5 games have viewable source code. Is there a way to make them like swf files? Yeah, use Flash and translate your code to ActionScript. …
Laurent Couvidou's user avatar
1 vote

Creating several instances of the same object, and selecting only one

You could user JSON to store your objects, that's the easiest way to serialize objects in Javascript that I know of. Then for your picking, a for loop with a bounding box or sphere test does the tric …
Laurent Couvidou's user avatar
2 votes
Accepted

HTML5 Canvas fillStyle as numbers not text

Nope, you're not missing anything. This has to be a string, containing a valid CSS color value. To reassure you, you're not the first one wondering why so much hate.
Laurent Couvidou's user avatar
0 votes

How should I implement parallax scrolling with pan and zoom in HTML5?

If you've not gone too far on the rendering side yet, one simple solution would be to use an actual 3D renderer. This way you don't have to reinvent the wheel and implement the parallax yourself, you …
Laurent Couvidou's user avatar
14 votes

Why do I need a local server for HTML5 game development?

Web browsers disable some Javascript features for security reasons. My bet is that you just hit Google Chrome forbidding XMLHttpRequest on local files by default (see this answer on SO for how to dis …
Laurent Couvidou's user avatar
1 vote

How can a NodeJS server be used from Game Maker HTML5?

Game Maker HTML5 is supposed to have an "Internal code editor with user definable syntax colouring". So if you're able to write some Javascript on the client side, you can use socket.io. …
Laurent Couvidou's user avatar
0 votes
Accepted

How can I render player movement on a 2d plane efficiently?

You should probably cache your player move in an array, and step through it frame after frame. Let's say you store your Bresenham result in an array called path, you'll need an additional variable to …
Laurent Couvidou's user avatar
2 votes

HTML5 game programming style

Their are indeed differences between these at runtime. In OOP terms, this is directly an instantiated object, or if you prefer this is a singleton. If you want more instances of those you'll have to …
Laurent Couvidou's user avatar
3 votes

Frustum Culling/Only rendering what's viewed by the Camera in HTML5 Canvas?

For a small 2D game, there nothing inherently wrong with this approach. Rendering is indeed costly, but looping over objects shouldn't be an issue (except if you really have tons of them, then look fo …
Laurent Couvidou's user avatar
3 votes
Accepted

How to compute the 2D equations of 3D circular arcs?

Of course you've got line segments instead of arcs, but drawing arcs in an HTML5 canvas kills performance, so I wouldn't recommend it. Just subdivide your sphere until the result looks OK. …
Laurent Couvidou's user avatar