Tagged Questions
2
votes
1answer
49 views
Javascript/html5 2d Canvas Context - Getting X, Y relative to canvas (opposed to transformed object)
I have scenario where there are several items on a the context stack and I need to get an x, y coordinate relative to the canvas itself.
The situation is I am writing a 2D game in HTML5 and I want ...
1
vote
1answer
75 views
What client front-end options can I use to make a Facebook game?
I have been requested to make a port of an iOS game for Facebook.
The game itself is fairly simple, it is a puzzle game using a 2d array for a grid with XML passed from a server for loading objects ...
6
votes
2answers
160 views
How to scroll hex tiles?
I don't seem to be able to find an answer to this one. I have a map of hex tiles. I wish to implement scrolling.
Code at present:
drawTilemap = function() {
actualX = Math.floor(viewportX / ...
5
votes
5answers
374 views
HTML5 mobile game development vs. native game apps
What is the current state of game engines, frameworks, libraries and conversions related to the HTML5 set of technologies (including CSS3 and JavaScript libraries such as RaphaelJS, Impact, ...
0
votes
1answer
234 views
HTML Javascript Hidden Object or Photo Hunt Game
Is anyone aware of any example photo hunt/hidden object games either in HTML and Javascript or flash if necessary? I am having trouble finding one, I may be using the wrong words to search.
Photo ...
2
votes
5answers
514 views
Which free HTML5-based game engine meets these requirements?
I am experienced with traditional JS and HTML but new to HTML5. I want to develop games in HTML5 so that it can work on all devices and browsers, including IE. Additionally, I require the following ...
1
vote
2answers
162 views
How to draw objects that have a smaller Y axis first?
In my game there is a large 2D map of various objects. Example. As you see, upon creation objects of the same type (trees for example) are placed correctly, but objects of another type (enemies) are ...
3
votes
1answer
236 views
How do I implement side scrolling in a javascript platformer?
I'm building a side scrolling platformer with Javascript and the canvas element for a school project. I have the character all sorted out. He runs left and right, and has a different sprite set for ...
1
vote
1answer
87 views
How can I center a circle around a point on an HTML canvas?
I've got a job to make an engine and light game for canvas in HTML5. I like the things I make to be centered on the x,y positions I give it, I don't know why, it just helps me think about them ...
0
votes
1answer
395 views
Has anyone used PhoneGap to make 2D games for the iPhone? [closed]
I love simple casual games. I've been riding the bus a lot recently and so simple, no-brainer games are great fun and well worth the small price I pay on the App Store.
It got me thinking... I know ...
1
vote
1answer
173 views
Tile Map Coordinates
I am have now this code: http://jsfiddle.net/DK67k/2/ In here is 2D tile map and when you click on tile you get coordinates on alert. But for get precises coordinate you need click on top left ...
-2
votes
1answer
172 views
Dungeon map generator not working in javascript
I am trying to convert this dungeon algorithm from java into javascript, however, my script works 70% of the time. When it works, the rooms are missing a wall on one side, and when it does not work, ...
1
vote
2answers
267 views
HTML5 collision with images
Can anyone please help me out with a small test game I'm creating. I'm basically creating this game to learn a few things about HTML5 and so far it's all been good. I've been able to create a canvas ...
4
votes
6answers
649 views
What are some good jquery/javascript game engines?
So I have decided to try a bit of javascript/html5 game development (worked with XNA/Unity so far). Wondering if anyone had any suggestions. I am currently looking at impact, gameQuery and Jaws.
...
3
votes
2answers
460 views
HTML5 canvas screen to isometric coordinate conversion
I am trying to create an isometric game using HTML5 canvas, but don't know how to convert HTML5 canvas screen coordinates to isometric coordinates.
My code now is:
var mouseX = 0;
var mouseY = 0;
...
1
vote
1answer
185 views
Converting Doom maps to JSON
This is a really cool demo of a Canvas Doom Engine made back in 2006:
http://canvex.lazyilluminati.com/84/play.xhtml
Here is the e1m1 map in JSON format:
http://canvex.lazyilluminati.com/84/map1.js
...
2
votes
1answer
650 views
True Isometric Projection with HTML5 Canvas
I am a newbie with HTML5 Canvas and JavaScript, but is there a simple way to have Isometric projection in HTML5 Canvas element?
I am mean the true isometric projection - ...
2
votes
2answers
140 views
For timed levels, how do you determine time steps that are less than 1/(frames per second)?
I have made a simple HTML5 racing game. The laps are timed. I am running the game are 40 frames per second, each frame represents 40 milliseconds. There for my timer will increase in 0.025 ...
3
votes
2answers
454 views
Where is the Aves game engine?
The Aves game engine made a splash last spring/summer, with very impressive demo videos. I went back to check on them, and it looks like their site has long since died. Google also doesn't seem to ...
3
votes
3answers
878 views
Chrome Angry Birds engine?
Was Chrome AngryBirds game made using html5 canvas? And if yes: what kind of engine did they use?
4
votes
2answers
525 views
Web workers for HTML5 game physics simulation?
A bit related to this question.
The idea is to guarantee the same physics behavior as much as possible. Would it be possible to run fixed time step physics on a web worker? The UI would update ...
1
vote
1answer
595 views
Smooth animation on a persistently refreshing canvas
Yo everyone!
I have been working on an Isometric Tile Game Engine in HTML5/Canvas for a little while now and I have a complete working game. Earlier today I looked back over my code and thought: ...
4
votes
2answers
353 views
Capitalizing on JavaScript's prototypal inheritance
JavaScript has a class-free object system in which objects inherit properties directly from other objects. This is really powerful, but it is unfamiliar to classically trained programmers. If you ...
8
votes
8answers
1k views
How should I sort images in an isometric game so that they appear in the correct order?
This seems like a rather simple problem but I am having a lot of difficulty with it.
What should I do to properly sort images in an isometric game?
In a normal 2d top-down game one could use the ...
1
vote
4answers
279 views
Javascript Audio solution
still has issues. Flash works but... requires flash (an issue for iOS). What do you use in Javascript for audio?
10
votes
4answers
1k views
Are there any alternative JS ports of Box2D?
I have been thinking about creating a top down 2D car game for HTML5. For my first game I wrote the physics and collisions my self but for this one I would like to use some ready made library.
I ...
3
votes
1answer
681 views
HTML5 - check if font has loaded
At present I load my font for my game in with @font-face
For instance:
@font-face {
font-family: 'Orbitron';
src: url('res/orbitron-medium.ttf');
}
and then reference it throughout my JS ...
2
votes
2answers
565 views
How do I employ an arcball to allow the user to look around the screen?
How do I apply an arcball (using quaternions) along with mouse events, to allow the user to look around the screen using the o3d WebGL framework?
This sample uses the arcball for rotating the ...
1
vote
3answers
403 views
Where to start, to develop an online Backgammon game?
I would like to develop a backgammon game to play against other players online, as a way of learning more Javascript/jQuery and a little game development. I'm a web developer and most of my experience ...
13
votes
5answers
3k views
HTML5 Game (Canvas) - UI Techniques?
I'm in the process of building a JavaScript / HTML5 game (using Canvas) for mobile (Android / iPhone/ WebOS) with PhoneGap. I'm currently trying to design out how the UI and playing board should be ...