Questions tagged [2d]

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

Filter by
Sorted by
Tagged with
3 votes
2 answers
1k views

Which 2D rendering algorithm is the most suited for mobile devices?

Which 2d rendering algorithms are popular for mobile game engines (specifically Android) and why? Are the same ones for the desktop and/or console world as effective here?
user avatar
7 votes
1 answer
2k views

Creating a 2D skeleton animation system for use with Panda3D

Hey. I want to be able to create a system for 2D skeletal animation in my game. I'm using panda3d as my game engine. I'd like to be able to make simple bone structures and skin them with my sprites. I ...
user avatar
  • 351
12 votes
5 answers
4k views

2D Level design/editing/saving questions [closed]

I thought about making a simple 2D Sidescroller game like SuperMario. Then i wondered about how to save, load or create the levels for the game. The first thing i thought of was drawing a simple ...
user avatar
  • 337
10 votes
4 answers
1k views

What's the most efficient way to find the intersection point of a missile and a bitmap terrain?

Following up on my earlier question about finding the slope of a 2D bitmap terrain I now need to know the best way of finding the point on the 2D terrain that the missile hit. Obviously, I can see if ...
user avatar
  • 6,494
12 votes
5 answers
3k views

2D Game dev and Java. Other possibilities than OpenGL? [closed]

I recently started to program some basic OpenGL stuff in Java, but OpenGL and DirectX is too much to handle and to understand for me and I'm getting bored really fast. Now I am wondering if there are ...
6 votes
5 answers
4k views

How do I calculate the angle of the slope at a point on a 2D bitmap terrain?

I have an arbitrary destructible bitmap terrain like the one in "Worms". It's easy to work out if a character or missile intersects the terrain, but how do I work out the angle of the slope at the ...
user avatar
  • 6,494
3 votes
2 answers
2k views

Scrolling 2D sprites on a map with a camera

I'm working on a 2D sprite-based strategy-type game (ok, full disclosure: it's a tower defense game), and I'm having a problem getting the actors to behave correctly when I move the camera. I've got ...
user avatar
  • 517
4 votes
2 answers
2k views

Simple scene graph in 2D, without matrices?

First of all, I think I roughly know how a scene graph works. Please correct me if I'm wrong. It is a tree based structure, with each branch/leaf being a node. It means you can better organise ...
user avatar
15 votes
4 answers
4k views

How do I calculate rotation caused by bounce friction?

Following on from my previous question: I have the ball quite realistically bouncing from surfaces it hits. Now I'd like to make it spin from the friction of the hit. Showing this is simple enough: I ...
user avatar
16 votes
1 answer
4k views

Procedural Generation of Infinite Level

What are some good approaches to procedurally generating an infinite 2d level? The level could be constrained in either dimension but not necessarily. The approach that makes most sense to me so far ...
user avatar
24 votes
4 answers
10k views

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

Most 2D screen/bitmap coordinate systems have the positive Y axis pointing down (with the the origin in the upper left corner). This is counter to how most people think geometrically with the positive ...
user avatar
  • 4,403
3 votes
1 answer
1k views

Where can I find articles/books on 2D graphics (how it works etc.)? [closed]

After I have been through more intensive C++ studies, I am thinking of giving it a start in my practices of computer game programming. Therefore, I think 2D knowledge (processing images, animating ...
user avatar
  • 940
6 votes
2 answers
3k views

How to calculate the exit speed of ball bouncing off a solid surface

Hey all, I am working on a simple game to include some rigid body dynamics, involving placing (moving & rotating) some springs to bounce a falling ball into a target area. My problem is correctly ...
user avatar
36 votes
1 answer
9k views

Rendering SVG art directly in XNA

Suppose I have a bunch of 2D art in some vectorized format such as SVG. Is there an easy-ish way to render that directly without having to implement a full SVG renderer myself? Of course I could ...
user avatar
  • 1,789
58 votes
9 answers
48k views

New to creating AI - where to start? [closed]

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 ...
user avatar
  • 727
41 votes
6 answers
13k views

How would you handle different aspect ratios in a 2d platformer?

A long time ago, 4:3 was pretty much the only apect ratio you would find on a PC. Today the most common one is 16:10, but most new monitors (especially laptops) are 16:9 I'm writing a 2D platformer, ...
user avatar
  • 737
7 votes
2 answers
3k views

How to implement click-to-move in a 2D game?

Currently I am learning how to use XNA by making a 2D Game. So far I am doing okay, but I want to implement a click-to-move instead of using the keys to walk around but I haven't found any samples ...
user avatar
  • 743
8 votes
5 answers
3k views

Is there a way to blur objects in a 2d game with OpenGL without using shaders?

Is there a nice way in OpenGL to blur objects without using shaders? Currently, I'm accomplishing blur by rendering the object slightly up, down, left, right, and the four diagonals from its original ...
user avatar
  • 1,037
14 votes
4 answers
12k views

Vehicle physics with skid

How would I go about creating vehicle physics for a car that can loose traction? I want it to seem like the driver has a flat foot, so when you press the gas, they cars driving (rear) wheels loose ...
user avatar
  • 2,434
9 votes
4 answers
2k views

Finding unoccluded tiles in tile-based game

I am working on a 2D tile-based game, and right now I'm trying to get a 2d equivalent of shadow volumes to work. I'm having trouble finding the surfaces that should cast shadows. From any point in the ...
user avatar
  • 789
11 votes
2 answers
10k views

Using The Box2D Polygon "Set()" function?

I'm using the Box2D physics engine. And there's a type of shape for box2D called b2PolygonShape. In this class, you can create polygons. There is also a Set() function that takes an array of points ...
user avatar
  • 215
10 votes
4 answers
9k views

Box2D Check If Point Intersects a Body

Is there a way to check if a point is intersecting a body? For example, lets say there's a body in the world at a position of (100,100). Is there a way to check if a point at (100,100) intersects ...
user avatar
  • 215
7 votes
3 answers
3k views

How difficult is it to implement 3D models in a 2D game?

Creating a full blown 3D game requires a lot more math for physics, but what if I just want to mix 3D models in a 2D game, such as in the New Super Mario Brothers? Would I be able to get the looks of ...
user avatar
  • 855
2 votes
2 answers
3k views

Could SDL be used to target Xbox 360?

We're looking at developing a 2D game that could target Xbox 360. Ideally, we'd also like to submit the game via the XNA program so that gamers could try out the game over Xbox Live. We really love ...
user avatar
  • 243
6 votes
8 answers
1k views

Tilemap-based level editor wishlist

I'll be likely writing one this year. It will end up having unique design so things turn out on its own anyway. Though, what an experienced level designer would want from a level editor? Requirements?...
14 votes
5 answers
8k views

Which is the best approach to make a 2D character to be able to use tons of different equipments when in action?

I want to create a 2D game but I'd like to have the character to wear tons of different equipments on different combinations, like a RPG or something. So let's say the user changes his/her shoulders ...
user avatar
4 votes
1 answer
567 views

Mixing 3D and 2D content on the iPhone?

I am at the design phase of a board game on the iPhone and am considering a couple of options for rendering the view: Quartz to render top down views of the board with core animation to do the ...
user avatar
66 votes
15 answers
159k views

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

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 ...
70 votes
7 answers
42k views

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

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?
user avatar
  • 1,625
20 votes
7 answers
5k views

For 2D games, is there any reason NOT to use a 3D API like Direct3D or OpenGL?

I've been out of hobby Game Development for quite a while now. Back when I did it, most people used Direct Draw to create 2D games. By the time I stopped people were saying OpenGL or Direct3D with ...
user avatar
76 votes
26 answers
64k views

Recommended 2D Game Engine for prototyping [closed]

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 ...
2 votes
2 answers
2k views

anyone knows any open skeletal/bones 2d animations framework for java? [closed]

Some examples could be the animations framework used in Aquaria, or in Crimson Legend.
user avatar
  • 355
21 votes
5 answers
10k views

How do I implement parallax scrolling in 2D?

Suppose I have three layers: a foreground, an intermediate-ground and a background. What is involved in using these three layers to create parallax scrolling?
user avatar
  • 5,083
22 votes
4 answers
11k views

What is some good examples about creating 2D fluids? [closed]

Anyone have any good examples, tutorials, or snippets to share that preferably in C# or C/C++?
user avatar
  • 393
15 votes
5 answers
7k views

Where do I start if I want to independently learn game graphic design? [closed]

I want to learn how to create custom graphics, not use freely available resources. But I have been looking around for articles or tutorials on how to start with 2D game design in general, and I can't ...
user avatar
32 votes
3 answers
11k views

How do you approach resolution independence in raster based graphics content?

Those games that are not fortunate enough to run on a locked platform spec, like handhelds, need to run across various resolution formats and aspect ratios. In a 3D game you might have a HUD or menu ...
user avatar
  • 2,321
57 votes
15 answers
35k views

Cross Platform 2D Graphics Engines [closed]

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?

1
63 64 65 66
67