2D games are drawn in a two-dimensional space using two-dimensional objects. To represent its position, each game object will have an `x` and a `y` coordinate.
0
votes
0answers
5 views
monotouch 2d pixel with correct resolution
I am writing up a game that is size sensitive. It needs to be pixel perfect. I believe the resolution is 480x320 pixels with the iphone being twice the width and height. My code is grid based with ...
3
votes
1answer
98 views
How do I rotate a sprite so that it is 'pointing' in the direction it is moving
I have a sprite, e.g a missile, heading in a certain direction (using a velocity vector).
How do I figure out its how much to rotate it so that it gets drawn 'pointing' in the direction it is ...
2
votes
2answers
109 views
Create Adventure Game Scene/Room/Backdrop from Real Photo
Is there a suitable software or a good tutorial for creating 2D rooms/scenery for adventure games from real photos?
Is it possible to achieve good results by using photos, or the hand-drawn style ...
4
votes
3answers
158 views
'Spring' physics
I'm trying to put together a struct or a method of some sort that will allow me to check the relative position between two objects, and if they're too far apart, apply a force that will draw them ...
2
votes
1answer
146 views
Fast, accurate 2d collision
I'm working on a 2d topdown shooter, and now need to go beyond my basic rectangle bounding box collision system.
I have large levels with many different sprites, all of which are different shapes and ...
6
votes
2answers
203 views
Hills in a topdown game
I'm making a top down rpg game and was wondering if it was possible to show hills on a map instead of having everything completely flat. I've thought about changing to an isometric view, but if it can ...
2
votes
1answer
49 views
How can I generate a navigation mesh for a tile grid?
I haven't actually started programming for this one yet, but I wanted to see how I would go about doing this anyway.
Say I have a grid of tiles, all of the same size, some traversable and some not. ...
2
votes
3answers
114 views
How to design 2D collision callback methods?
In a 2D game where you have a lot of possible combination of collision between objects, such as:
object A vs object B => object B vs A;
object A vs object C => object C vs A;
object A vs object D ...
1
vote
1answer
45 views
How do I make a rope from point A to B in Box2D?
I need to make a rope (preferably not elastic) from one point to the next in Box2D. If it helps, I'm trying to develop one of those 2D Spiderman games, like this: ...
3
votes
3answers
83 views
Moving a body in a specific direction using XNA with Farseer Physics
I have a custom polygon attached to a body, which looks like this:
What I am trying to accomplish is getting the body to move according to wherever the tip of the body is. So far this is what I've ...
0
votes
0answers
53 views
Beginning Game Development on iPhone/iPad [closed]
I'm willing to begin learning iPhone Game development. The problem is that I've found many resources for older models of iPad and iPhone. As you know now both have retina displays and amazingly fast ...
0
votes
3answers
159 views
Can these game be fully coded in html5/javascript?
I mean the mechanics of the game. Would it be possible?
-Pokemon GBA series, rendering the world would be easy, but what about battle mechanics?
-MapleStory, after seen dragonbound.net which is an ...
3
votes
0answers
69 views
How do I calculate the boundary of the game window after transforming the view?
My Camera class handles zoom, rotation, and of course panning. It's invoked through SpriteBatch.Begin, like so many other XNA 2D camera classes. It calculates the view Matrix like so:
public Matrix ...
4
votes
2answers
121 views
Is it possible to map mouse coordinates to isometric tiles with this coordinate system?
I'm trying to implement mouse interaction in a 2D isometric game, but I'm not sure if it's possible given the coordinate system used for tile maps in the game.
I've read some helpful things like ...
2
votes
1answer
103 views
Trouble with AABB collision response and physics
I have been racking my brain trying to figure out a problem I am having with physics and basic AABB collision response. I am fairly close as the physics are mostly right. Gravity feels good and ...