Questions tagged [2d]

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

Questions using this tag should be about 2D math, design or graphics problems.

3595 questions
93
votes
3 answers

How can I clean up excessive player-created rubble?

In my latest game I'm making, you can slice a 2D object arbitrarily, demonstrated in this gif: You can continuously cut it into hundreds or thousands of pieces. This doesn't create a lot of lag, because they're always in a sleeping physics state,…
Garflington
  • 137
  • 2
  • 10
  • 25
87
votes
3 answers

How do I create 2D water with dynamic waves?

New Super Mario Bros has really cool 2D water that I'd like to learn how to create. Here's a video showing it. An illustrative part: Things hitting the water create waves. There are also constant "background" waves. You can get a good look at the…
Berry
  • 1,279
  • 2
  • 11
  • 16
87
votes
8 answers

Why don't more games use vector art?

It would seem to me that vector art is more efficient in terms of resources/scalability; however, in most cases I have seen artists using bitmap/rasterized art. Is this a limitation put on the artists by the game programmers/designers? As a…
Parris
  • 995
  • 1
  • 6
  • 9
82
votes
9 answers

How does one prevent homing missiles from orbiting their targets?

I am developing a 2D space game with no friction, and I am finding it very easy to make a homing missile orbit its target. I am curious about anti-orbiting strategies. A simple example is a homing missile that simply accelerates directly toward its…
John McDonald
  • 6,756
  • 2
  • 34
  • 46
81
votes
5 answers

Implementing a 2D destructible landscape (like Worms)

What steps would be involved in constructing a destructible 2D landscape, like in Worms? Ideally, What are some ways that this process could be made efficient as possible?
William Casarin
  • 921
  • 1
  • 7
  • 6
76
votes
26 answers

Recommended 2D Game Engine for prototyping

What high-level game engine would you recommend to develop a 2D game prototype on windows? (or mac/linux if you wish) The kind of things I mean by "high-level" includes (but is definitely not limited to): not having to manage low-level stuff like…
Thomas Dufour
  • 453
  • 1
  • 5
  • 9
72
votes
7 answers

What to consider when deciding on 2D vs 3D for a game?

How much "harder" is 3D than 2D in terms of: Amount/complexity of the code Level of math skills required Time involved in making art assets Original title: How hard is 3D game development versus 2D?
Brian Ortiz
  • 1,655
  • 4
  • 20
  • 17
67
votes
9 answers

2D graphics - why use spritesheets?

I have seen many examples of how to render sprites from a spritesheet but I havent grasped why it is the most common way of dealing with sprites in 2d games. I have started out with 2d sprite rendering in the few demo applications I've made by…
Columbo
  • 773
  • 1
  • 6
  • 5
66
votes
15 answers

What tools do you use for 2D art/sprite creation?

What cheap/free tools do you use for 2D art and/or animation? I don't really like Gimp's interface, Paint.NET is limited and GraphicsGale is sort of archaic. Cosmigo ProMotion looks like it could be good, anyone use it? Seems a bit pricey at $78/92…
daemious
  • 143
  • 1
  • 3
  • 5
64
votes
6 answers

Are all games made by drawing each frame?

I am a beginner learning about computer animation(for games). So far, the only method that I have come across is drawing each frame, every frame update. So at the start of every frame, the entire frame is erased, and then the things for that are…
eeze
  • 711
  • 1
  • 5
  • 7
62
votes
10 answers

Moving ships between two planets along a bezier, missing some equations for acceleration

OK, I already posted this over at math.stackechange.com but didn't get any answers :( First of here's a picture of my problem, the description follows afterwards: So I got all the points and values set up. The ship starts out moving around the left…
Ivo Wetzel
  • 2,472
  • 3
  • 19
  • 18
59
votes
9 answers

New to creating AI - where to start?

I am new to game programming and am trying to make a basic 2d top-down space game with 2 space ships that fight each other. I am doing well with the user controlled space ship, but have no idea how to even start programming an AI. Are certain…
jle
  • 737
  • 1
  • 6
  • 5
58
votes
3 answers

Optimizing an XNA 2D game

Does it make sense to implement the logic to skip rendering objects outside the viewport or should I not care about it and let the Framework do it?
smnbss
  • 701
  • 1
  • 6
  • 7
58
votes
4 answers

How is 2D lighting implemented?

I am wondering what the best way to approach a "lighting" effect in 2D games is. For instance, if my main character is glowing, what techniques can I use to complete the visual effect of the character glowing when it is near other objects which…
Christopher Horenstein
  • 1,779
  • 2
  • 18
  • 25
57
votes
15 answers

Cross Platform 2D Graphics Engines

I'm looking for a 2D graphics engine that would allow me to release to Windows, Mac and the iPhone, much the way Unity does for 3D. Is there a good engine that does this and is specific to 2D?
Kevin Laity
  • 716
  • 1
  • 9
  • 10
1
2 3
…
99 100