A new feature of HTML5, allowing Javascript apps to have a drawing surface in the browser.

learn more… | top users | synonyms

0
votes
1answer
418 views

Android: Improving surfaceView?

I'm using Surfaceview in my Android app. I have two threads, one for UI and another for rendering and updading the UI. I am limiting my frames per second to 30 fps and have employed frame-skipping ...
-1
votes
1answer
86 views

View port for my canvas game

I am developing a canvas game, and im struggling to get my head around how i can make a view port so when the character moves the world moves with it. Unlike traditional 2d maps built with arrays i ...
2
votes
0answers
459 views

HTML5/JS - Choppy Game Loop

I have been experimenting with HTML5/JS, trying to create a simple game when I hit a wall. My choice of game loop is too choppy to be actually of any use in a game. I'm trying for a fixed time step ...
1
vote
0answers
169 views

Drawing two orthogonal strings in 3d space in Android Canvas?

I want to draw two strings in canvas. The first string must be rotated around the Y axis, for example 45 degrees. The second string must start at the end of the first string and also it must be ...
1
vote
0answers
56 views

How to work with edge Texture

Im not sure if i use the right terms, but im not able to find something to start with. Im trying to develop a little HTML5 game. I have a ground with a texture and now I want to make a surrounding ...
0
votes
0answers
10 views

how to set resolution in cocos2d html5 game

how can i change or init game with specific resolution is there something like setResolution(width,height) available ? please hellp thanks in advance
0
votes
0answers
52 views

Listview on Canvas. Nullexception error

I'm developing a game app. I use a MVC that updates and renders animations/text in a canvas. I need to show/hide a listView like I've done with this appTest: ...
0
votes
0answers
62 views

Android - Rendering HUD View to SurfaceView

I have developed a relatively simple game in android, to get my head around it all, and on the back of it developed a crude game engine (in the loosest sense!). I use a SurfaceView and canvas (no ...
0
votes
0answers
242 views

Transformation Matrix in Android Canvas?

This question is following up my previous question that I asked it in stackoverflow: Hide a face of a 3D shape behind another,Android canvas? I have a canvas and I have to get the normal vector of a ...
0
votes
0answers
832 views

How To Scale Canvas In Android

I am writing a android game using Canvas as the way to draw everything, the problem is that when i run it on different android phones the canvas dosn't change size i tried using canvas.scale() but ...
0
votes
0answers
65 views

Faking Display tree (Sprite) parent child relationships with rasters (BitmapData) in ActionScript 3

I am working with Rasters (bitmapData) and blliting (copypixels) in a 2d-game in actionscript 3. I like how you can move a sprite and it moves all it's children, and you can simultaneously move the ...
0
votes
0answers
389 views

Android Canvas problems with drawing background

I'm trying to make an android and i have got to the stage where im adding in some simple graphics and it gets drawn to the screen fine but it is drawn over the top of everything else here is the code ...