Search Results
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 |
HTML 5 refers to new web technologies such as high performance JavaScript engines, canvas 2D and WebGL, video and audio tags.
0
votes
HTML5 Canvas Parsing image into tileset while preserving transparency
It's not completely clear what you're trying to do, but I assume you have a "sprite sheet" and you're trying to cut out the individual sprites into their own Image objects to later draw on a canvas us …
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 …
1
vote
Approaching syncing between client and server, in a Tower Defense game
My suggestions are:
You are using the web, so you have to use TCP (websockets, I assume?). Therefore you do not need to worry about retransmission, TCP does this for you (this will probably create a …
2
votes
Accepted
Receiving keyboard events on a canvas in Javascript
I suspect the canvas never has the keyboard focus. Keyboard events will be sent to the Window object.
Try adding the events to the Window object. (NB: It might be clearer what's happening if you don' …
6
votes
Accepted
PHP and Javascript/HTML5 Collaboration
Several points:
You should definitely enable error reporting and error logging into a file on the PHP side, otherwise you'll have no evidence of problems. AJAX errors usually cause little visible er …
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 …
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 …
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 …
2
votes
Need Guidance Making HTML5 Canvas Game Engine
The scripting language has to be Javascript or something which compiles into it. I recommend that you do use Javascript. There are a lot of problems with Javascript - such as its lack of a single stan …
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' …
0
votes
What would be a good way to implement/render a 2D tiled map for a browser game?
I would strongly recommend using canvas, not discrete html elements. In my experience, you'll find that discrete HTML elements works ok when they are small in number, but becomes bad at scale. You may …
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 …
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. …
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, …
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 …