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.

learn more… | top users | synonyms

2
votes
2answers
179 views

How to do reflective collisions with particles hitting background tiles?

In my 2d pixel old-school platformer, I'm looking for methods for bouncing particles off of background tiles. Particles aren't affected by gravity and collisions are "reflective". By that I mean a ...
3
votes
2answers
724 views

2D wave-like sprite movement XNA

I'm trying to create a particle that will 'circle' my character. When the particle is created, it's given a random position in relation to my character, and a box to provide boundaries for how far ...
2
votes
2answers
2k views

How to move a line of sprites in a sine wave?

So, I'm spawning a horizontal line of enemies that I would like to have move in a nice wave. Currently I tried: Enemy.position.X += Enemy.velocity.X; Enemy.position.Y += ...
32
votes
4answers
6k views

How to render 2D particles as fluid?

Suppose you have a nice way to move your 2D particles in order to simulate a fluid (like water). Any ideas on how to render it? This is for a 2D game, where the perspective is from the side, like ...
12
votes
2answers
3k views

In a 2D platform game, how to ensure the player moves smoothly over sloping ground?

I'm developing a physics engine for a 2D platform game. I'm using the separating axis theorem for collision detection. The ground surface is constructed from oriented bounding boxes, with the player ...
4
votes
1answer
207 views

Clicking on clues and other objects in a 2D cluedo like game

I'm a java/android programmer, but I don't have any experience in game programming, I'm already reading proper books, like "Pro Android Games", but my concerns are more about the ideas behind game ...
3
votes
1answer
678 views

Where can I find a free SDK for C#? [closed]

I need a free and recent SDK for use with C#. I will work first in 2D games with visual effects. Thanks for now. Can anyone help me?
2
votes
2answers
438 views

What are my tool options to prototype a 2D online multiplayer game? [closed]

I'm looking for the best tool to allow me to quickly put together a 2D game that relies largely on networking. It's extremely likely that this game will require a server side program to constantly ...
3
votes
2answers
2k views

2D Collision masks for handling slopes

I've been looking at the example at: http://create.msdn.com/en-US/education/catalog/tutorial/collision_2d_perpixel and am trying to figure out how to adjust the sprite once a collision has been ...
2
votes
1answer
305 views

Draw Bug 2D player Camera

EDIT *Along with the Palindromes helpful response, I found that my bug was because I was calculating the camera coordinates in terms of tiles instead of pixels which caused the irregular motion.* I ...
3
votes
2answers
527 views

Passing an objects rotation down through its children

In my topdown 2d game you have a player with a sword, like an old Zelda game. The sword is a seperate entity, and its collision box "rotates" around the player like an orbit, but always follows the ...
2
votes
1answer
112 views

Velocity control of the player, why doesn't this work?

I have the following code inside a while True loop: if abs(playerx) < MAXSPEED: if moveLeft: playerx -= 1 if moveRight: playerx += 1 if abs(playery) < MAXSPEED: if ...
0
votes
1answer
1k views

What is a good game engine for .NET (or XNA) that does 2d, tile maps, and sprites? [closed]

I'm looking for a 2d game engine for .NET (it can be XNA based) that will do sprites, tile maps, handle input, and optionally handles cameras. It can also be 2.5d.
6
votes
1answer
280 views

How can I apply different actions to different parts of a 2D character?

I am developing a 2D platform game in Java. The player has a gun in his hand every time. He needs to walk and shoot with the gun(arrow keys for walk and X key to shoot). The walk cycle takes 6 frames ...
2
votes
0answers
176 views

What is causing this behavior with the movement of Pong Ball in 2D? [closed]

//edit after running it through the debugger it turned out i had the display function set to x,x...TIL how to use a debugger I've been trying to teach myself C++ SDL with the lazyfoo tutorial and ...
-5
votes
1answer
700 views

How to properly scroll a 2D tilemap?

Hello and I'm trying to make my own game engine in Java. I have completed all the necessary ones but I can't figure it out with the TileGame class. It just can't scroll. Also there are no exceptions. ...
4
votes
1answer
102 views

Best approach to get clicked objects from a display list (2D)

I'm implementing a display list to manage my visuals on screen. I want to know which object is clicked. My objects already have z-order variable. With my current knowledge (almost nothing) the only ...
6
votes
1answer
2k views

Sidescroller variable terrain heightmap for walking/collision

I've been fooling around with moving on sloped tiles in XNA and it is semi-working but not completely satisfactory. I also have been thinking that having sets of predetermined slopes might not give me ...
1
vote
2answers
333 views

improve Collision detection memory usage (blocks with bullets)

i am making a action platform 2D game, something like Megaman. I am using XNA to make it. already made player phisics,collisions, bullets, enemies and AIs, map editor, scorolling X Y camera (about 75% ...
9
votes
3answers
604 views

Is there any advantage in using DX10/11 for a 2D game?

I'm not entirely familiar with the feature set introduced by DX10/11 class hardware. I'm vaguely familiar with the new stages added to the programmable graphics pipeline, such as the geometry shader, ...
2
votes
2answers
1k views

2D side scroller - How to implement X/Y movement?

I'm currently writing a small 2D, side-scroller-ish kind of game. I have a simple camera that follows the player around and the physics are ready. I'm using 32x32 tiles that build out the world, ...
-4
votes
1answer
2k views

Help learning how to create tile based games in java and or C# [closed]

I want to get into 2d based gaming design and creation however, I really do not know where to start. I know java and c# but not how to use them in an efficient way. I'd like to create 2d tile based ...
1
vote
2answers
815 views

How to achieve this particular screen filter with GLSL?

I know this may be a "short" question, but still here it goes. I would like to know how to achieve a post rendering effect, that looks like the following image from walking dead series: I will ...
5
votes
2answers
2k views

How to create life-like sprites from photo or video capture like was done for games like Mortal Kombat 1?

I know they digitized actors but how can I get those same results? How to take a photo or video of someone and digitize it for a 2D game? Digitized sprites were used in several video games through the ...
2
votes
1answer
233 views

2D Object 'Targeting' / 'Selecting'

I'm currently working with C# with the XNA framework. I'm trying to create a list of objects that are individually target-able after they are created and set in a list and displayed on a tile map. ...
4
votes
2answers
4k views

Basics of drawing in 2d with OpenGL 3 shaders

I am new to OpenGL 3 and graphics programming, and want to create some basic 2d graphics. I have the following scenario of how I might go about drawing a basic (but general) 2d rectangle. I'm not ...
10
votes
1answer
1k views

Best Method to Simulate Height in a Tiled Top-Down Game

What is the best method to simulate height for a top-down tiled 2D game? One way I thought was to make tiles which are supposed to be higher brighter, but I was wondering if there was a standard or ...
3
votes
2answers
513 views

Trying to understand 2D vector -> projection space conversion

I'm trying to understand how I can transform 2D vectors (x, y) to projection space. Something hasn't quite clicked for me yet. As per my previous question, here's the effect I'm trying to achieve: ...
4
votes
2answers
3k views

How to calculate shot angle and velocity to hit a moving target?

I am developing a 2D Android game and I am making an aiming algorithm for AI projectiles to hit enemies either following a path, or free moving. At the moment it just calculates where the target will ...
2
votes
2answers
426 views

Collision Detection doesnt work because some things move more than 1px at a time

I'm writing a 2d scrolling game in javascript using canvas and since I'm limited to setInterval running at minimum once every ms, I need to have some objects moving at greater than 1 pixel a second. I ...
3
votes
1answer
559 views

Parallax Scrolling - Layers not preserving their relational positions

I've created a little 2D game engine with parallax scrolling and something has been bugging me for some time. Layers / objects set at a different depths / z orders don't preserve their position ...
0
votes
1answer
2k views

OpenGL es glDrawTexfOES() 2D texture is totaly black no color

First of all I know this is a duplicated question and I check out another questions but didn't helped! I'm trying to convert my android game from canvas system to the GL10. After lots of googling I ...
3
votes
3answers
391 views

The ship “shudders” in scrolling Asteroids

In my Asteroids game the user can scroll through space. When scrolling, the ship is drawn in the centre of the window. I use interpolation. I scroll the window uing glOrtho, centering it around the ...
6
votes
2answers
1k views

Matrix for 2D perspective

I'm trying to determine whether what I'm attempting to achieve is even possible mathematically. I'm obviously not a seasoned game developer so I'm having trouble even coming up with the terminology to ...
6
votes
2answers
512 views

How to manage merging/splitting viewports to create a dynamic splitscreen

I'm making a multiplayer 2D game where each player has an entity that they can move in any direction. This will be local only, so split screen. Typically the player controlled entities will be in ...
2
votes
2answers
3k views

Java game engine for android and desktop [closed]

I want implement 2d game as desktop application. And after development move it to android platform. Engine should be have input and network managers. Help me choose.
1
vote
1answer
388 views

help a 2D image onto a 3D cube

I am just diving into the Stage3D APIs for Flash Player 11. I am trying to figure out a simple way to display isometric 2D content that gets blitted from a sprite sheet onto a 3D cube. The idea ...
1
vote
1answer
351 views

Getting fastest path on a grid

How would I go about finding the fastest path to connect two points on a grid? I'm making a 2D game and the map is based around a grid. I need to be able to account for any blocked tiles that the ...
1
vote
0answers
115 views

Fixed time step with Akihabara

How could I implement fixed time step with Akihabara framework? I would like my avatar to move by fixed distances of one block as in Supaplex.
3
votes
0answers
1k views

OpenGL ES 2.0 Camera advices and general thoughts for a 2D engine [closed]

I'm working on my first 2D OpenGL engine for iOs 5+ using GLKit (that's to say: OpenGL ES 2.0). While I am on a good path and a lot of things are implemented and nicely working, I'd like to share with ...
2
votes
2answers
602 views

How do I handle walking up and down bridges at any angle?

I'm currently trying to create a 2D platformer puzzle game like Mario vs. Donkey Kong: Mini-land Mayhem! within Flash. My issues reside in the bridge collision with the walking AI. The game allows ...
13
votes
2answers
321 views

Ensure house map maze with lifts can be solved?

In my game we see the floors of a house from the side, and the hero can take lifts -- a lift either goes up (to the next lift upwards), or down (to the next lift downwards), depending on the arrow as ...
2
votes
2answers
411 views

How to make leg bones children of torso bone in Blender?

I'm a complete Blender novice and I'm trying to create a humanoid skeleton. I'm having problems figuring out how to make my leg bones children of the torso bone. Here's how my skeleton looks like: ...
2
votes
2answers
723 views

Making mouse pos realtive to a moving object

I'm coding my first actual game, trying without following tutorials, just trying to use my knowledge so far to make something playable. I'm creating (attempting) a simple side-scrolling shooter. I ...
2
votes
1answer
435 views

2d game with png sequences slowing on Unity3d

We are building a tower defence game,In which enemy movement is done through sprite sheets as well the tower rotation is also done through sprites...every tower and every enemy has its own script ...
4
votes
2answers
329 views

How to draw equal length line stripes on a parabola?

Simply put I'm making a basketball game. I'm using these equations to predict the ball position and it works fine: x = vx * t y = vy * t + 0.5 * gravity * t * t But I can't find a way to draw equal ...
1
vote
3answers
2k views

Can I use SpriteBatch when drawing sprites on a rotating 3D plane

I'd like to have my plane of sprites rotate similarly as in this game (YouTube Video). So basically, everything is drawn in 2D, but the 2D plane is then "rotated in 3D" (or camera is rotated). When ...
3
votes
3answers
994 views

OpenGL & SDL textures… game shuts down

I'm going to create a game in C++ with SDL & openGL but adding textures won't work. the code is in some different classes. here's the main file ...
2
votes
2answers
539 views

Tips on combining the right Art Assets with a 2D Skeleton and making it flexible

I am on my first attempt to build a skeletal animation system for 2D side-scrollers, so I don't really have experience of what may appear in later stages. So i ask advice from anyone that been there ...
2
votes
1answer
2k views

Why isn't my sprite being drawn in the correct position in XNA?

Sorry if this has been asked before, but I can't seem to find it here. I'm trying to make an asteroids clone in XNA. I took the Game State Management project and am making new classes for things like ...