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.
2
votes
2answers
300 views
Making an interactive 2D map
So recently I have been working on a Legend of Zelda: A Link to the Past clone, and I am wondering how I could handle certain map interactions (like cutting grass, lifting rocks, etc).
The way I am ...
1
vote
3answers
170 views
Need game development sandbox like Etoys to do 2D games prototyping [duplicate]
Possible Duplicate:
Recommended 2D Game Engine for prototyping
I am new to game development, and currently working on development a mobile 2D game (for android).
As the part of the ...
9
votes
2answers
368 views
Boat passing under a bridge in a 2D tile based RTS
I'm writing a 2D tile based RTS. And I want to add a 'pseudo 3D' feature to it - bridges over the rivers.
I havent't start any coding yet, just trying to think how it fits the collision detection ...
7
votes
2answers
381 views
How do display a “mucus spreading” effect in a 2D environment?
Here is an example of such a mucus spreading. The substance is spread around the source (in this example, the source would be the main alien building).
The game is starcraft, the purple substance ...
3
votes
5answers
515 views
2D Collision detection for Pinball Game
So far in previous games I have used simple 2D collision with boxes then checking at pixel level for a collision.
If making a pinball game in nearly a lot of frames the ball will be in contact with a ...
1
vote
1answer
155 views
Absorbtion 2d image effect
I want to create a specyfic 2d image effect. It consists in modifying a sprite so it looks like it is being zoomed to a point or "absorbed" by that point. I'm not really sure what is the technical ...
2
votes
2answers
709 views
Dynamic Terrain Texture
I've been looking at a 2D physics game called 'Hill Climb Racing' (Android and iOS) and was wondering how they went about texturing the terrain?
I've had a think about it and I've come up with ...
1
vote
1answer
345 views
Infinite detail inside Perlin noise procedural mapping
I am very new to game development but I was able to scour the internet to figure out Perlin noise enough to implement a very simple 2D tile infinite procedural world.
Here's the question and it's ...
4
votes
1answer
603 views
2D Tile Game - Smooth Biome Terrain Transitions
While working on my 2D tile based game, I encountered a problem. I use Perlin Noise to generate the terrain. Some biomes (Desert, Forest, etc) have different flatness values depending on terrain, ...
3
votes
1answer
380 views
Engine for 2D Top-Down Physics-Based Skeletal Animation
I just watched at the Sui Generis video, and was completely amazed. Specifically, the part where the big troll thing is beating up the player with his flail.
This got me really excited, and I would ...
1
vote
0answers
46 views
Audio Panning using RtAudio
I use Rtaudio library.
I would like to implement an audio program where I can control the panning (e.g. shifting the sound from the left channel to the right channel).
In my specific case, I use a ...
8
votes
1answer
331 views
How can I cleanly and elegantly handle data and dependancies between classes
I'm working on 2d topdown game in SFML 2, and need to find an elegant way in which everything will work and fit together.
Allow me to explain. I have a number of classes that inherit from an abstract ...
1
vote
3answers
268 views
Question about creating a sprite based 2-D Side Scroller with scaling/zooming [closed]
I'm just wondering if anyone can offer any advice on how best to go about creating a 2-D game with zooming/scaling features akin to the early Samurai Showdown games. In this case it would be a side ...
3
votes
1answer
180 views
How can I plot a radius of all reachable points with pathfinding for a Mob?
I am designing a tactical turn based game. The maps are 2d, but do have varying level-layers and blocking objects/terrain. I'm looking for an algorithm for pathfinding which will allow me to show an ...
2
votes
4answers
204 views
Moving camera, or camera with discrete “screens”?
I'm making a game with a friend, but having trouble deciding on a camera style.
The basic idea for the game, is having a randomly generated 2-dimensional world, with settlements in it. These ...
1
vote
1answer
545 views
Problem animating in Unity/Orthello 2D. Can't move gameObject
I have a enemy npc that moves left and right in a corridor.
It's animated with 2 sprites using Orthello 2D Framework.
If I untick the animation's play on start and looping, the npc moves correctly.
...
-2
votes
2answers
240 views
Whats the right program for me? [closed]
I would like to learn C++ so I can get a job in the game industry, but there are so many options it a little confusing. I know most of you will say I should read up on C++ before attempting to program ...
1
vote
2answers
434 views
Rotating 2D Object
Well I am trying to learn openGL and want to make a triangle move one unit (0.1) everytime I press one of the keyboard arrows. However i want the triangle to turn first pointing the direction where i ...
-1
votes
1answer
575 views
2D Game Dev Resources/Tutorials for Windows (Phone) 8 Development? [closed]
I am really exited about the launch of windows 8, windows phone 8 so I decided to start learning how to develop games for them. I was even more exited when I found out that html, css, javascript can ...
0
votes
2answers
198 views
3d vertex translated onto 2d viewport
I have a spherical world defined by simple trigonometric functions to create triangles that are relatively similar in size and shape throughout.
What I want to be able to do is use mouse input to ...
9
votes
2answers
954 views
Faster 2D Collision detection
Recently I've been working on a fast-paced 2d shooter and I came across a mighty problem. Collision detection. Sure, it is working, but it is very slow.
My goal is: Have lots of enemies on screen and ...
-3
votes
2answers
289 views
Realistic Jumping [duplicate]
Possible Duplicate:
How can I implement gravity?
I want to make the jumping that my character does more realistic. This is what I've tried so far but it doesn't seem very realistic when the ...
-2
votes
1answer
271 views
C# XNA 2D Multiple boxes collision detection and movement
Hi,
I've been making simple game where you shoot boxes that are coming towards you.
All game objects are simple rectangles.
Now I have problem with collision detection; how to check where the ...
2
votes
4answers
355 views
Detecting long held keys on keyboard
I just want to ask if can I check for "KEY"(keyboard) that is HOLD/PRESSED for a long time, because I am to create a clone of breakout with air hockey for 2 different human players.
Here's the ...
1
vote
0answers
123 views
Beginner C# image loading woes - NullReferenceException [closed]
I keep getting a "NullReferenceExeption was unhandled" with "Object reference not set to an instance of an object." written under it. I have all of the images (png) correct with names and added to ...
2
votes
1answer
222 views
Rendering multiple squares fast?
so I'm doing my first steps with openGL development on android and I'm kinda stuck at some serious performance issues...
What I'm trying to do is render a whole grid of single colored squares on to ...
1
vote
2answers
317 views
Rotating multiple points at once in 2D
I currently have an editor that creates shapes out of (X, Y) coordinates and then triangulate that to make up a shape of those points.
What will I have to do to rotate all of those points ...
-1
votes
2answers
306 views
Best approach to 2D racing game AI? [closed]
I have no experience in AI at all, but I would like to know how I could do this?
Even if the AI just followed a path how could I do this?
-1
votes
1answer
249 views
What is the cost of custom made 2D game sprites? [duplicate]
Possible Duplicate:
How much to pay for artwork in an indie game?
I am looking for sprites similar in style to those of Final fantasy Tactics, but with a much higher resolution that will ...
3
votes
2answers
409 views
2D lighting theory: day-and-night cycle, spot lights at night
I am writing a rogue-like 'zombie' management game. The game map will be similar to Prison Architect. A top-down 50 X 50 grid.
I want to implemented a day night cycle and during the night I would ...
3
votes
1answer
169 views
Is there any heuristic to polygonize a closed 2D raster shape with n triangles?
Let's say we have a 2D image black on white that shows a closed geometric shape.
Is there any (not naive brute force) algorithm that approximates that shape as closely as possible with n triangles? ...
0
votes
0answers
85 views
Determine how to display a tile based on surrounding tiles [duplicate]
Possible Duplicate:
Choose tile based on adjacent tiles
I have a game engine which generates maps randomly, set on a 2d grid which is composed of 34px square graphical tiles.
These tiles ...
5
votes
3answers
728 views
What's a good entity hierarchy for a 2D game?
I'm in the process of building a new 2D game out of some code I wrote a while ago.
The object hierarchy for entities is like this:
Scene (e.g. MainMenu): Contains multiple entities and delegates ...
1
vote
1answer
291 views
Sony PSM SDK's 2D game engine
I have started with the Sony PSM SDK this week, I'm interested in creating a little 2D game and have been reading through the web about a so called "2D game engine" integrated into the SDK.
Some ...
0
votes
2answers
409 views
Collision detection on a 2D hexagonal grid
I'm making a casual grid-based 2D iPhone game using Cocos2D. The grid is a "staggered" hex-like grid consisting of uniformly sized and spaced discs. It looks something like this.
I've stored the grid ...
0
votes
1answer
318 views
2d Game using monotouch?
I'd like to make a 2d game and I like SDL but I don't think there is an SDL for monotouch. Whats the closest solution?
4
votes
1answer
1k views
How do I rotate a sprite so that it is 'pointing' in the direction it is moving
I have a sprite, e.g a missile, heading in a certain direction (using a velocity vector).
How do I figure out its how much to rotate it so that it gets drawn 'pointing' in the direction it is ...
2
votes
2answers
532 views
Create Adventure Game Scene/Room/Backdrop from Real Photo
Is there a suitable software or a good tutorial for creating 2D rooms/scenery for adventure games from real photos?
Is it possible to achieve good results by using photos, or the hand-drawn style ...
5
votes
3answers
308 views
'Spring' physics
I'm trying to put together a struct or a method of some sort that will allow me to check the relative position between two objects, and if they're too far apart, apply a force that will draw them ...
5
votes
1answer
1k views
Fast, accurate 2d collision
I'm working on a 2d topdown shooter, and now need to go beyond my basic rectangle bounding box collision system.
I have large levels with many different sprites, all of which are different shapes and ...
6
votes
2answers
515 views
Hills in a topdown game
I'm making a top down rpg game and was wondering if it was possible to show hills on a map instead of having everything completely flat. I've thought about changing to an isometric view, but if it can ...
5
votes
2answers
324 views
How can I generate a navigation mesh for a tile grid?
I haven't actually started programming for this one yet, but I wanted to see how I would go about doing this anyway.
Say I have a grid of tiles, all of the same size, some traversable and some not. ...
3
votes
3answers
343 views
How to design 2D collision callback methods?
In a 2D game where you have a lot of possible combination of collision between objects, such as:
object A vs object B => object B vs A;
object A vs object C => object C vs A;
object A vs object D ...
2
votes
1answer
266 views
How do I make a rope from point A to B in Box2D?
I need to make a rope (preferably not elastic) from one point to the next in Box2D. If it helps, I'm trying to develop one of those 2D Spiderman games, like this: ...
3
votes
3answers
357 views
Moving a body in a specific direction using XNA with Farseer Physics
I have a custom polygon attached to a body, which looks like this:
What I am trying to accomplish is getting the body to move according to wherever the tip of the body is. So far this is what I've ...
0
votes
3answers
338 views
Can these game be fully coded in html5/javascript?
I mean the mechanics of the game. Would it be possible?
-Pokemon GBA series, rendering the world would be easy, but what about battle mechanics?
-MapleStory, after seen dragonbound.net which is an ...
4
votes
1answer
226 views
How do I calculate the boundary of the game window after transforming the view?
My Camera class handles zoom, rotation, and of course panning. It's invoked through SpriteBatch.Begin, like so many other XNA 2D camera classes. It calculates the view Matrix like so:
public Matrix ...
5
votes
3answers
760 views
Is it possible to map mouse coordinates to isometric tiles with this coordinate system?
I'm trying to implement mouse interaction in a 2D isometric game, but I'm not sure if it's possible given the coordinate system used for tile maps in the game.
I've read some helpful things like ...
2
votes
1answer
403 views
Trouble with AABB collision response and physics
I have been racking my brain trying to figure out a problem I am having with physics and basic AABB collision response. I am fairly close as the physics are mostly right. Gravity feels good and ...
1
vote
1answer
535 views
Java 2D Tile Collision
I have been working on a way to do collision detection forever, and just can't figure it out. Here's my simple 2D array:
for (int x = 0; x < 16; x++) {
for (int y = 0; y < 16; y++) {
...
