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 answers only not deleted user 20

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

2 votes

How to randomly place rectangle inside a larger bounding rectangle without intersecting othe...

If don't run that algorithm too often (eg. just at startup-time) and there aren't thousands of rectangles, I'd probably just stick with the brute-force approach. You could already eliminate a lot of …
bummzack's user avatar
  • 22.6k
10 votes

How to learn 2d animation?

Classical 2D animations are created frame by frame. … Another, not so obvious option for 2D animation is using a 3D Program. Did you know that later episodes of Southpark were animated using Maya? …
bummzack's user avatar
  • 22.6k
1 vote
Accepted

Testing for 2D collision outcome

Checking collision on circles should be easy and has been described very well by Valkea. If your entity amount doesn't go into the thousands, checking all collisions shouldn't be a performance problem …
bummzack's user avatar
  • 22.6k
4 votes

What's the best program to learn/create 2d vector sprites?

Adobe Illustrator is a professional vector drawing tool. An open-source alternative would be Inkscape. If you'd like to animate the sprites too, there's some basic animation-support in Illustrator. A …
bummzack's user avatar
  • 22.6k
1 vote
Accepted

[2D] Finding largest possible straight lines around body

If you're dealing with discrete positions (eg. a tile-map or pixel based map), then an easy way to find the contours would be the Marching Squares algorithm (Wikipedia).
bummzack's user avatar
  • 22.6k
49 votes
Accepted

Implementing a 2D destructible landscape (like Worms)

I don't know how the landscape in worms was implemented exactly, but I'm pretty sure they used a bitmap for the landscape (at least in the older games of the series). A very basic approach would be a …
bummzack's user avatar
  • 22.6k
1 vote

2D Ragdoll - should it collide with itself?

I'm not an expert when it comes to ragdolls but when I think "2D fighting game" I imagine seeing the fighters from the side. …
bummzack's user avatar
  • 22.6k
9 votes
Accepted

2.5D game development

To achieve such an effect, you can use a 3D Projection without perspective (called parallel projection). That will render all your objects at the same size and from the same angle, no matter where the …
bummzack's user avatar
  • 22.6k
3 votes
Accepted

What are some good resources on creating and reading 2D game levels in Java?

Have a look at Tiled or OGMO Editor. These editors allow you to create your levels and can also write the level-data to XML. Parsing the XML data in Java should be rather simple. Alternatively you cou …
bummzack's user avatar
  • 22.6k
8 votes
Accepted

Triangle - Rectangle Intersection in 2D

The Sutherland-Hodgman polygon clipping algorithm should work just fine for triangle vs. rectangle clipping. You'll find some more information about clipping algorithms here. Or just search for "Suthe …
bummzack's user avatar
  • 22.6k
2 votes
Accepted

XNA - Moving Background Calculations

The solution to your problem is actually quite simple. Instead of calculating the ratio, you calculate the possible movement-distances for camera and background and interpolate them. For the backgrou …
bummzack's user avatar
  • 22.6k
3 votes
Accepted

How can I make a car follow the terrain in a 2D (side-view) game?

The game you linked to in your comment most likely uses a physics-engine like Box2D (flash port) for the car physics. So the basic steps are: Create a car body with connected wheels (use joints) and u …
bummzack's user avatar
  • 22.6k
0 votes

How to efficiently handle registration/anchor points for graphics?

While you could create some meta-data file that contains the anchor points for all your sprites, you should generally avoid having different anchor points for different sprites. There are some reason …
bummzack's user avatar
  • 22.6k
3 votes
Accepted

Creating pixel art / animation with flash

Pixel-art and bitmap-graphics isn't exactly the same. A bitmap (or raster-graphic) doesn't imply anything about the "style" of the image. It's just a bunch of pixels... Exporting from flash (or any ve …
bummzack's user avatar
  • 22.6k
3 votes

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

Just parent them to the "Torso" (using Ctrl P and keep the offset). It doesn't look like a very flexible skeleton, especially the rotation on the leg bones is bad (they are twisted) .. that's someth …
bummzack's user avatar
  • 22.6k

15 30 50 per page