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 4484

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

1 vote

Is it possible create an HTML5 mobile game without the user having internet connection?

You can in principle, create an offline HTML5 application, as descibed, for example, here: http://www.w3.org/TR/offline-webapps/#offline This involves creating some manifest file, or something. …
MarkR's user avatar
  • 1,676
1 vote

HTML5 Canvas game viewport

You didn't say whether you're using the 2d context or WebGL; I'll assume that you're using 2d context. You can use the 2d context object's transformation methods to set the translation. Normally thi …
MarkR's user avatar
  • 1,676
2 votes

HTML5 game obfuscation

Even if you don't obfuscate your code, HTML/ JS is already about the same level of difficulty to reverse engineer as SWF. SWF files contain the original Actionscript code, (IIRC), with comments etc, …
MarkR's user avatar
  • 1,676
1 vote

Making a startscreen for an HTML5 game?

Most compelling games seem to use their game engine in the start-screen. So it will be a specially set-up version of the rendering / gameplay engine playing a demo or autonomous activity (Examples: A …
MarkR's user avatar
  • 1,676
2 votes
Accepted

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

There are several issues here. Storing several instances of object(s) in memory This is generally done using an array or some more complex data structure. You can use a single array to hold everyt …
MarkR's user avatar
  • 1,676
5 votes
Accepted

What is better for the overall performance and feel of the game: one setInterval performing ...

A single task is definitely better. You don't want nondeterministic behaviour. While Javascript normally runs all your code in one thread and won't interrupt it (it will not preempt other JS code), …
MarkR's user avatar
  • 1,676
4 votes

How do I protect sending scores from HTML5 games to my server

Do not worry about it; protecting from all attacks is essentially impossible if you trust the client. If nobody uses Fiddler etc, to modify the AJAX request, they can simply fire up a JS debugger and …
MarkR's user avatar
  • 1,676
1 vote

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

You need to test it on your target platforms. Canvas implementations vary hugely in their performance, and a technique which is an optimisation on one may be a pessimisation on another. If the layers …
MarkR's user avatar
  • 1,676
3 votes

How to make an infinite map

The approach described by Phillipp is essentially what you'd do. I would build the world in "blocks". Suppose you have one block, say 50x50 tiles, then you can pseudorandomly generate it (using the o …
MarkR's user avatar
  • 1,676
2 votes

What's the current preferred method for serving/storing game data on html5 games

You've confused the assets with client-side data storage. You can load assets using normal HTTP requests that the browser makes. These are subject to normal HTTP rules about caching, expiring and con …
MarkR's user avatar
  • 1,676
11 votes

Best technique for drawing isometric tiles

Using transparency (alpha channel) is the way to go, I recommend. This means that when you want a vertical object on the tile like this: Then you can do it easily if your renderer draws the tiles …
MarkR's user avatar
  • 1,676
3 votes

Defining the track in a 2D racing game

I'd go for a much more simple approach: Predefine the tracks in some editing tools of your choice; export them using a graphics program, defining colours for different areas of the track. Using a bi …
MarkR's user avatar
  • 1,676
0 votes

Javascript Isometric draw optimization

You can have your for() loops cover a rectangular area of the map which is big enough to cover the whole screen. This is a lot more tiles than you need. Then you can further cull tiles which are off …
MarkR's user avatar
  • 1,676
1 vote

3d js map rendering

If you've got planets in space, in a realistic way, this probably means that: Planets are extremely large There is a lot of space in between them This means that orthographic projections (like you …
MarkR's user avatar
  • 1,676
3 votes

Issues with shooting in a HTML5 platformer game

Your problem with removing bullets from the list while iterating the list is a common one. It happens in many languages (not just Javascript). If you want to remove an object from the list while you' …
MarkR's user avatar
  • 1,676

15 30 50 per page