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.
10
votes
Accepted
HTML5 without a framework
I think you're making a mistake thinking of a framework as a crutch. Surely when you want to build your own computer, you don't make all your own circuit boards? Mine and smelt the copper yourself?
…
4
votes
Accepted
Shoot a bullet towards cursor - top down 2d
The bullet's position changes based on it's trajectory. The trajectory you have is likely in a 2D vector? The simple update is:
UpdateBullet(Bullet bullet, float deltaTime) {
bullet.x = bullet.x …
7
votes
Cross platform development tool/platform for the modern indie game developer?
Unity seems to be a popular choice lately. It will allow you to run on iOS, Android, Web, PC, Mac.
Although, you're question needs to have more specifics like what kind of games you want to make, wha …
12
votes
Accepted
Dirty 2D map rendering
This means that when the background is drawn, not all of it is redrawn every frame. When something on the map moves, the area it used to occupy gets marked as dirty. Then when drawing, you know you on …
4
votes
Accepted
Easy way to do gravity in a simple game?
So, implementing gravity has some prerequisites. A big one is a time keeping system. One good read for time systems is Fix Your Timestep! by gafferongames.com. The time system ties in tightly to the u …
18
votes
How do I protect sending scores from HTML5 games to my server
Don't just send an integer score to the server. Send a collection of game stats that can be used to verify the score was realistic. Or you can implement some pre-shared key for calculating the score. …
1
vote
Remove enemy when bullet hits enemy
You really need to learn to use a debugger. Being able to set a break point and pause execution of the code when it triggers is invaluable. You can see the state of the variables when execution is sto …
6
votes
Accepted
Creating a frozen bubble clone
Model the playing field as a hexagon grid. Each bubble is actually a hexagon shape for its connections:
Each flat side is where a bubble can connect. When a bubble touches another bubble, snap the …
9
votes
Accepted
Should I refer to browser-based games as HTML5 games or Javascript games?
As you mention in your question "...using the new HTML5 technology." … HTML5 fulfills those desires.
I would use HTML5 or simply "web games" "browser games". …
1
vote
Including sprite file for mobile games
The user will have to download the sprite at some point in order to see it on their device. Whether it's at the initial download or later is a design consideration.
I recommend you use a combination …
3
votes
How do I set an event off when player is on certain tile?
I would check if the player moved, and call an event to handle all the checks for new tiles. Something like:
...
if(playerX != oldPlayerX || playerY != oldPlayerY) {
onTileChange(player);
}
... …
1
vote
Accepted
WebGL immediate mode
It's unclear what your rationale is for doing this. You might want to ask a new question about the problems you're running into that would inspire you to look for such a utility.
There is a library c …
4
votes
Accepted
Do you need to make a tileset for a platformer?
No, platformers do not have to be tile based. You can do "free placement" of sprites as well. See these related questions to learn more:
Recommended method towards making custom maps for a 2d game?
…
4
votes
how to devise a scoring algorithm based on elapsed time and number of moves
Smaller numbers of either is better right? So how do we make sure that larger numbers make the score smaller? We divide 1 by that number. The larger the number, the smaller the parts 1 is broken into. …