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
1answer
77 views
Find the footprint of an isometric entity
I'm working on making a 2D isometric engine in Java. I'm getting into collision detection and I've hit a bit of a problem.
Characters in-game are not restricted to movement from tile to tile - they ...
3
votes
2answers
370 views
Simulating “line of sight” with obstacles on 2d grid?
Ran into an interesting problem. I need to figure out how to simulate line of sight - simple enough, just on a 2d grid with obstacles. Either a grid cell is visible, or it's not.
I can get something ...
1
vote
1answer
101 views
SimpleOpenNI: Check if user hand is in specific area on image
Concerning our Microsoft Kinect project, we need some help.
We control a robot with our movements tracked by the Kinect sensor. We display the depth image of the Kinect sensor on our screen, so we ...
3
votes
1answer
59 views
Retrieve outer most points on a 2d graph
G'day everyone,
I have a 2d graph which has some points plotted on it.
What I need to do is get only the outer most points so that I can connect them up (isn't really relevant).
What I can't seem ...
1
vote
1answer
331 views
Tongue pull effect
I've been searching on the net for several days and can not find nothing about this effect. Even a name for this effect. I want to make a character that can use his tongue to pull objects objects it ...
0
votes
0answers
318 views
Dynamic 2D (1D) map generation in libgdx
I'm currently brainstorming a game idea and I have stuck in one place. I'd like to dynamically generate endless map which looks pretty much like the one in game Hill Climb Racing (Android) or like ...
0
votes
6answers
481 views
Can I develop a game on PC in Java and move it to Android?
I have fairly good experience with Java, but new to Android development. I would like to develop a 2D game which would have animations and online play.
Can I initially develop this game on my pc ...
0
votes
1answer
75 views
Computing orbit direction depending on angle of approach
I'm trying to develop a simple 2D space game with no friction using corona-sdk. In the game, I have several planets which all applies forces to the player according to Newton's law of universal ...
0
votes
0answers
152 views
Rotating towards thumbstick - XNA - Xbox360 controller
I'm doing a topdown shooter game where I controll my character with an Xbox controller. The problem I'm having right now is that when I'm rotating the character it feels like it sticks at 0, 90, 180 ...
-4
votes
2answers
165 views
Programming language choice [closed]
I'm interested in 2d tile game development. What's your experience with that? What programming language would be wise to choose? I am thinking of C# or Java... Either way, I have some experiences, but ...
0
votes
1answer
92 views
Separating Axis Theorem fails at certain angles
I'm currently attempting to add an overlap tester for an axis aligned and orientated bounding box but the solution only seems to work accurately when the OBB's angle is between -10 and +10. As the ...
4
votes
5answers
321 views
How to implement rotating Earth effect in 2D?
I've modeled a photorealistic scene of the Earth rotating in 3DS Max and would like to use it as a backdrop of a menu screen in a 2D game. What would be the appropriate way to implement this effect ...
1
vote
2answers
159 views
Basic plane kinematics
I never did physics in my life and this is really hard for me. I am currently trying to implement movement in the X and Y axis of a plane, in a video game I am making.
What I want to do is, given a ...
4
votes
1answer
157 views
What is the appropriate way to implement collision in 2D worlds?
If I want to create a 2D game map which features areas traversable by a player through standard up/down/left/right inputs, and then have areas that are NOT traversable... perhaps just a bush, or a ...
1
vote
0answers
84 views
2D Java Networked Game Coordinate Updating [closed]
I'm currently developing a networked 2D MMO-style game in which several thin clients (ran in an applet) are able to connect to a server and well, do MMO-style "things"!
Some more background on the ...
1
vote
1answer
245 views
Architecture of “doodle jump” type gameplay infinite looping background
I am planning make a doodle jump type game, character jumping on platforms. A scrolling or doodle jump like background which ll appear to move when character moves upward and appear moving (just like ...
-2
votes
1answer
191 views
What intuitively meaningful 2D transform can three-finger multitouch represent? [closed]
With two fingers on a touch sensing plane, we can "grab" (control) two points within a section of 2D plane.
It means it is possible, using two fingers, to translate, rotate, and scale a 2D object ...
3
votes
2answers
272 views
XNA Why is Texture.GetData one dimensional?
This is question has been really killing me. In XNA when you want to convert an image to color data using Texture.GetData, it only lets you make it a one dimensional array instead of a 2D one. This ...
10
votes
5answers
309 views
What is a suitable input method to use for a 2D platformer on a touch device?
I am creating a 2d platformer game like Super Meat Boy in which precision of movement of my lead character matters. I am using libgdx. The keyboard controls on the PC work precisely, but when it comes ...
-1
votes
1answer
154 views
Tilemap collision detection strangeness [closed]
I have used this code, or code very similar to it, to detect collisions between rectangle shaped entities and a tilemap for a long time. When I read the code it seems to me that it is impossible for ...
4
votes
3answers
166 views
Labeling Areas on a map
I've been wondering how you would go about labeling an area on a 2D tile map. What I'd like to do is associate tiles with an area i.e Forest Area, Desert Area, etc.
Keep in mind this is an idea, so ...
-3
votes
1answer
205 views
Implementation of planets in top-down space shooter [closed]
I am working on a top-down space shooter, and I have come to the point where I need some input on a mechanic. I have implemented enough that I can make this choice; either way will not change the code ...
9
votes
3answers
970 views
Fastest way to render lines with AA, varying thickness in DirectX
So I'm doing some DirectX development, using SharpDX under .NET to be exact (but DirectX/C++ API solutions are applicable). I'm looking for the fastest way to render lines in an orthogonal projection ...
0
votes
0answers
805 views
Issues playing audio with Slick 2D [closed]
Started trying to learn Slick 2D a few days ago and have enjoyed it so far. The only problem is I can't seem to be able to get audio to play. I have tried going through the documentation examples, ...
0
votes
0answers
33 views
High-level (artiste, story-teller friendly) methods of game development? [duplicate]
Possible Duplicate:
Simple game engines / development tools made with artists in mind?
Admittedly as an absolute newbie as far as game development is concerned, I wanted to see if there are ...
5
votes
1answer
227 views
How to draw a trapezoid in OpenGL?
The question seems easy, but you simply change vertex positions to match the corners of a trapezoid but it simply fails. I've tried scaling top and bottom edges like this :
but when I apply my ...
4
votes
3answers
454 views
Boundaries in game development: How do “professionals” do it?
How do professionals do boundaries in a 2D game? The way I do is say I don't want the sprite to move into a certain area:
//Example
if ((playerPosX >= 825) && (playerPosX <= ...
0
votes
1answer
170 views
Iterating 1D array and getting 2D tile position
I know I'm missing something very obvious here, but I have a 1D array that contains integers.I have a map that is 30 x 30 and the center coordinate is 0,0 (This is actually 3D, but I'm essentially ...
2
votes
4answers
572 views
Efficient path-finding on 2D tile-based multilevel map
It's a question I've been thinking about for some time... How do you effiently find a path on a 2D tile-based multilevel map? The map I use, for example, is 2048 on 2048 tiles wide. It has 14 levels ...
0
votes
4answers
459 views
Storing huge 2D tiled map in a txt file
I'm working on a global startegy game that uses a 2D tiled map. The map is to be 8000x8000 tiles large (this size is fixed, the map stays the way it is throughout the game), since I'm covering a large ...
0
votes
1answer
175 views
2D graphics scaling
I've been wondering how to archive kind of zooming behavior with 2D graphics. I'm pretty sure that this is not right term, but let me try to explain my thoughts.
Ok, let's start by defining that we ...
5
votes
1answer
529 views
Implementing a camera / viewport to a 2D game
What is the most practical way to implement camera/viewport to a 2D-game?
I've read, that I should store the object world position instead of position relative to the screen?
Current situation:
I ...
1
vote
2answers
107 views
Simple Bounding Sphere Calculations for 2d game
I'm writing a 2d game and have a question regarding the use of bounding spheres.
I'm kind of OK with the math, but I'm confused about one thing.
To work out the distance between the 2 centre points ...
9
votes
1answer
388 views
How to create 2D shadows
I'd like to create lights and shadows in a 2D environment, like in the image below:
I did several searches but got no results. Do you have any hint?
2
votes
2answers
207 views
What kind of projection is used here?
Tibia is a 2d game, but it's sprites are drawn using certain kind of orthographic projection that is not the same I'm used to:
I'm trying to figure out what projection is used here. I've guessed ...
5
votes
1answer
135 views
Physics/Logic behind self-bounce
I have a game that I am currently working on and I have a problem.
What would a ball look like when it makes itself bounce. Say, for example that the ball had its own "inner power", was made out of ...
4
votes
2answers
140 views
Why is my collision resolution failing on the corners?
I'm tearing my hair out trying to work out how to handle my collision resolution at the corners of the rectangles that I'm colliding with.
The code that I'm working with is:
class Player(object):
...
1
vote
3answers
590 views
Need Guidance Making HTML5 Canvas Game Engine
So I have some free time this winter break and want to build a simple 2d HTML5 canvas game engine. Mostly a physics engine that will dictate the way objects move and interact(collisions, etc). I made ...
3
votes
4answers
394 views
XNA 2D Spritesheet drawing rendering problem
I'm making a tile-based game, using one spritesheet containing all tile graphics.
Each tile has a size of 32x32 pixels.
The main problem is: when I draw the tile to the screen, if the tile position x ...
8
votes
1answer
264 views
Optimal sprite size for rotations
I am making a sprite based game, and I have a bunch of images that I get in a ridiculously large resolution and I scale them to the desired sprite size (for example 64x64 pixels) before converting ...
4
votes
2answers
140 views
Collisions on complex map 2D
I'm currently thinking about collision and map system that I want to use in my next game and I'm kind of puzzled. Maps are going to be somewhat complex with lots of irregularities and thus tiling is ...
0
votes
0answers
80 views
Managing shots of the player [closed]
I'm currently developing a 2D Jump'n'Run and the situation is the following: The player has different weapons he can collect and is then able to shoot the weapon's projectiles (laser, rockets, ...
8
votes
3answers
496 views
Isometric smooth fog
I'm working on a simple 2d game with direct3d 9. It's a isometric game with diamond tiles and a staggered map. This is what I have:
As you see I have some kind of fog which is acomplished by having ...
2
votes
3answers
319 views
2d shapes in XNA 4.0?
Having some experience of XNA but none of 3D programming. I have an idea i want to realize but i have not decided to do it in 3d or 2d. Im not sure which one will be best in XNA.
I want to have a ...
3
votes
4answers
203 views
Sprite and Physics components or sub-components?
I'm taking my first dive into creating a very simple entity framework. The key concepts (classes) are:
Entity (has 0+ components, can return components by type)
SpriteEntity (everything you need to ...
1
vote
0answers
117 views
How can I use iteration to lead targets?
In my 2D game, I have stationary AI turrets firing constant speed bullets at moving targets.
So far I have used a quadratic solver technique to calculate where the turret should aim in advance of the ...
1
vote
2answers
414 views
Making a 2D game with responsive resolution
I am making a 2D game, however I wish for it to be resolution agnostic.
My target resolution i.e. where things look as intended is 1600 x 900.
My ideas are:
Make the HUD stay fixed to the sides no ...
1
vote
2answers
136 views
How do I cap rendering of tiles in a 2D game with SDL?
I have some boilerplate code working, I basically have a tile based map composed of just 3 colors, and some walls and render with SDL. The tiles are in a bmp file, but each tile inside it corresponds ...
-1
votes
3answers
406 views
Scale a normalized 2D vector always to the same length
For any normalized 2D vector, except for ( 0, 0 ), how would I scale the vector to always be the same length?
For example:
int length = 10;
vector v = vector( 0.1, 0.5 );
vector v2 = vector( 0.3, ...
0
votes
0answers
113 views
GameSalad | Draw lines and arcs
I'm new to GameSalad.
Can lines and arcs be drawn in GameSalad, respond to touch at a point, and be shrunk along their path?


