Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 229

2D refers to two dimensional space where coordinates are represented with X and Y values.

5 votes

What is some good examples about creating 2D fluids?

Practical Fluid Mechanics Very detailed explanation with C++ code and pre-compiled binary. You can interact with the demo, like creating new smoke and stirring the smoke with your mouse. The imag …
Leftium's user avatar
  • 4,423
8 votes

How can I factor momentum into my space sim?

velocity p += v // velocity is the rate of change in position where: a = acceleration, v = velocity, p = position F = force, m = mass (Note m is the only scalar value; F, a, v, and p are all 2D … I answered a related question on StackOverflow: 2D Spaceship movement math. There is some sample code in that answer. …
Leftium's user avatar
  • 4,423
25 votes
4 answers
11k views

How to deal with differences between 2D screen coordinates and Cartesian coordinates

How do most games manage the two different 2D coordinate systems? There are two main types of coordinates (screen vs. … Background: I originally made the world coordinates in my game match the 2D screen coordinate convention. …
Leftium's user avatar
  • 4,423
11 votes

How to create a Raining Effect(Particles) on Android?

Conserve your precious CPU/GPU cycles! You can inexpensively approximate rain (and rain splats) without using particles. The rain drops and splats don't even have to move or be aligned! Basically, ran …
Leftium's user avatar
  • 4,423
9 votes
Accepted

2D Platformer AABB collision problems

OK, I figured out why the XNA AppHub platformer demo doesn't have the "jumping" bug: the demo tests the collision tiles from top to bottom. When up against a "wall" the player may be overlapping multi …
Leftium's user avatar
  • 4,423
1 vote

Rotating sprite around another sprite

You are manipulating the sprite, but not the underlying body. The sprite affects the visual appearance while the body affects the physics behavior. There are a number of ways you can fix this: Qui …
Leftium's user avatar
  • 4,423
5 votes

2D Level design/editing/saving questions

The levels themselves have a collision layer covered up with graphical tiles: And I personally don't recommend it, but a 2D demo program for Allegro used some type of 3D modeling format and converted … (It was a 2D physics-based skate boarding game.) To edit the level data of the Allegro demo game, we use the free and open source tool Blender. …
Leftium's user avatar
  • 4,423