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

learn more… | top users | synonyms

-2
votes
0answers
23 views

Rotate object to face player touch [duplicate]

I need to make my sprite to face where the player have touched. I tried like this: public static double FaceObject(RectF position, RectF target) { return ...
2
votes
4answers
334 views

Why wouldn't one use Canvas for HTML 5 game development?

I'm just getting into the HTML 5 game development. I've discovered that some games seem to be created using just JS/CSS/HTML instead of the canvas. Since canvas seems to enjoy good browser ...
-1
votes
1answer
67 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
1answer
86 views

JavaScript - 2D Top-down Tile Collision Detection

I am developing a small Top-down Game (Much like the old Zelda Games) and I'm having an issue in terms of Collision detection (The actual theory itself rather than assigning Tiles as solid, etc.) I ...
2
votes
1answer
58 views

Low FPS on Java drawing in BufferStrategy

I ran into a very strange problem while using BufferStrategy, I've tried searching for an answer but all I have found are non-relevant threads and discussions. So here is my query. for (int i = 0; i ...
0
votes
0answers
36 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: ...
-2
votes
0answers
73 views

What's involved in making a wordsearch game? [closed]

QUESTION What's involved in making a wordsearch game? I know that there is a lot involved in making a wordsearch game so the purpose of this question is to break it down into manageable, ...
0
votes
0answers
49 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 ...
6
votes
5answers
332 views

Good technological solutions to build an ascii map and moving characters in a browser (like dwarf fortress)?

I'd like to build a webapp for my game website that involves using text characters to represent animals and people, and have them move around on map squares with independent (server driven) AI. So ...
1
vote
1answer
85 views

Canvas isometric translations to integer coordinates

I'm creating a canvas based game with an isometric playing board. I use the following transformations to get my square tiles to render on the screen: 'applyViewportTransformation' : function() { ...
-1
votes
2answers
138 views

Moving a sprite towards an x and y coordinate

Given a sprite with an x and y coordinate, how would I move it toward another sprite with an x and y coordinate? I've already made it face towards the other sprite, and I've made it move towards the ...
0
votes
1answer
330 views

Simple javascript HTML5 canvas start menu

I'm currently looking for a simple and basic start screen for a game using javascript, so basically its the first function that is called and then press play which then goes into the game. Looked ...
0
votes
1answer
156 views

Implementing a camera on HTML5 canvas?

I am trying to work out the best way of implementing a camera in my simple 2d game. The way it is structured at the moment is my game objects all have draw functions, which are passed a canvas ...
2
votes
2answers
181 views

Receiving keyboard events on a canvas in Javascript

I need to receive keyboard events in a canvas element. Click events are received but key presses aren't. Here is my code which doesn't handle key events: var canvasElm = $('canvas'); ...
3
votes
2answers
180 views

Client Side Logic vs Server Side Logic for HTML5 Game

I'm writing an HTML5 game that takes place in a single screen and does not have any data that would need to be saved (except for a score). I am writing all of my canvas logic on the front end. because ...

1 2 3 4 5 10
15 30 50 per page