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.

learn more… | top users | synonyms

-2
votes
2answers
139 views

How do I add Destroy with radius on Java Slick2d? [closed]

For Example, There is a tree(image) and i want to destroy it. I want my character only destroy it (For example the character must be facing the tree to destroy it and there must be a range were you ...
4
votes
2answers
1k views

OpenGL Lighting [duplicate]

I have a simple day and night cycle by at day disabling OpenGL lighting and at night enabling openGL Lighting. When I enable everything appears darker. My question is How would I make it that at a ...
4
votes
1answer
330 views

Issue with distinguishing levels in isometric game [duplicate]

Possible Duplicate: How can I change this isometric engine to make it so that you could distinguish between blocks that are on different planes? I'm working on an isometric game however I ...
2
votes
1answer
659 views

OpenGL: Move camera regardless of rotation

For a 2D board game I'd like to move and rotate an orthogonal camera in coordinates given in a reference system (window space), but simply can't get it to work. The idea is that the user can drag the ...
0
votes
1answer
219 views

How to work with two layers or more in cocos2d?

I want to make a game in cocos2d. I don't know too much about it. My question is related to communication between two layers or more. For instance, let's say I want a layer with a scrolling road and ...
1
vote
3answers
1k views

Android, how important is deltaTime?

Im making a game that is getting pretty big and sometimes my thread has to skip a frame, so far I'm not using deltaTime for setting the speed of my different objects in the game because it's still not ...
2
votes
1answer
354 views

C# - separate sprite for 2d character and arms

I'm making a 2D action platformer in C# (not using XNA). So far I have the character drawn on the screen, animating and moving. The sprite sheets provided by the artist have the character and arms in ...
2
votes
2answers
2k views

How do I randomly generate a top-down 2D level with separate sections and is infinite?

I've read many other questions/answers about random level generation but most of them deal with either randomly/proceduraly generating 2D levels viewed from the side or 3D levels. What I'm trying to ...
1
vote
1answer
523 views

default xna 4.0 gametime don´t works well for 2D physics

I am developing a game using Visual Studio 2010 and XNA 4.0, after advancing to some extent with the project (a platform based 2d platformer msdn starter kit) I got to test it on different computers ...
1
vote
1answer
256 views

Viewport.Unproject - Checking if a model intersects a large sprite

Let's say I have a sprite, drawn like this: spriteBatch.Draw(levelCannons[i].texture, levelCannons[i].position, null, alpha, levelCannons[i].rotation, Vector2.Zero, scale, SpriteEffects.None, 0); ...
2
votes
2answers
312 views

Updating “Inactive” Chunks

In my game, the only chunks (4x4 areas of tiles) in memory are the ones that the player is in. However, chunks need to have updates applied to them over time. A (likely) well-known example would be ...
-8
votes
1answer
1k views

Is the game Wakfu really fully coded in JAVA? [closed]

If so, this shows that you can develop amazing logic/graphic wise games with JAVA. I think this should be used as an example when people ask about games developed in java instead of just mincraft and ...
1
vote
1answer
2k views

PokeMMO. How they do it? [closed]

Well PokeMMO is a JAVA game project which basically is the original FireRed title for the GBA made online. They know this type of projects don't last long because of the copyrighted material used, but ...
-2
votes
2answers
762 views

Coding games similar to Machinarium in Java? [closed]

I wan't to see how great of an idea is to start a game project like Machinarium coded in Java. I'm not really good at Java yet, but it's the programming language I decided to go with first. Not really ...
6
votes
2answers
908 views

android multitouch problem

Im aware that there a a couple of posts on this matter, but Ive tried all of them and none of them gets rid of my problem. Im starting to get close to the end of my game so I bought a cabel to try it ...
3
votes
2answers
176 views

Adding delay between damage

I have a bunch of enemies chasing my main-character, and if they intersect I want them to damage him and that's all good. The problem is that right now they damage him as long as they stand around ...
-1
votes
2answers
494 views

2D animations frames vs 3D animation for small indie project: timing considerations

pretty lame question but was wondering.. I am developing a 2D game using Cocos2D for iOS. The art work till now is all 2D (is a shooter game) but some of the characters would benefit of complex ...
4
votes
1answer
558 views

Collision Detection with SAT: False Collision for Diagonal Movement Towards Vertical Tile-Walls?

I'm developing my first tile-based 2D-game with Javascript. To learn the basics, I decided to write my own "game engine". I have successfully implemented collision detection using the separating axis ...
6
votes
4answers
5k views

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

I am developing a 2d android strategy game, it runs on SurfaceView, so I can't(or can I?) use LibGdx's particle system. And I would like to make a raining effect, I am aiming for something like this( ...
1
vote
1answer
509 views

Please help with bounding box/sprite collision in darkBASIC pro [closed]

So I just recently learned BASIC and figured I would try making a clone of pong on my own in darkBASIC pro, and I made everything else work just fine except for the part that makes the ball bounce off ...
0
votes
2answers
196 views

Looking for feedback on design pattern for simple 2D environment

I'm working in iOS. I am trying to make a very simple 2D environment where there are some basic shapes you can drag around with your finger. These shapes should interact in various ways when dropped ...
2
votes
1answer
2k views

Resolving bounding box collision detection

I'm working on a simple collision detection and resolution method for a 2d tile-based bounding box system. Collision appears to work correctly, but I'm having issues with resolving a collision after ...
0
votes
2answers
880 views

Order array of points in counter clockwise

I happened to see an answer to "Sort array of points in clockwise", could you please elaborate the 4th point of that answer: sort points relative to their a value, using qsort for instance. How do ...
1
vote
1answer
172 views

Can't work out how matrix is applied to 2D vertices

I have a texture, some 2D vertices, and a matrix. The matrix is used to calculate the texture coordinates for each vertex, but the problem is that the matrix comes with absolutely no documentation and ...
1
vote
3answers
789 views

What is a currently a good game stack for simple Javascript 2D multiplatform game?

I'm looking for advice from someone can help me avoid common pitfalls in developing light weight, quick-to-market games. Yeah, I've heard of Google ;-), but a trip down Google lane does not beat solid ...
0
votes
1answer
466 views

android basic Movement for array-objects

I was adviced to start a seperate question for this so here I go. Been stuck so long with this do if you can help, please do. Lets get to it! Im trying to set the speed for my bullets, but since Im ...
1
vote
2answers
2k views

Creating maps and tileset for a 2d java game

I'm not a completly beginner to java, so I decided to write a map loader and a tileset loader myself instead of using a tilemap editor like Tiled. I'm using Slick & LWJGL for my game. The plan ...
2
votes
1answer
161 views

Multiple images written and read from one meta-file?

Short version: I need a way to store multiple image files in one bigger file, to be used using C#, preferably easily compatible with XNA. The files will be read, written to, but also adaitional files ...
2
votes
1answer
427 views

android game-logic for shooter

Im creating a 2d game for android. I'll just get right to it. I have a sprite controlled by a joystick that needs to shoot, sofar Ive managed to get direction and movement on my bullet, but then I ...
1
vote
1answer
145 views

How to Use Images Instead Of Drawing Primitives [closed]

I want to build backgammon game. I have successfully built the board using primitives such as lines, triangles and circles. I'm curious whether it's possible to draw the board using images which will ...
0
votes
1answer
1k views

Calculate the angle between two 3d vectors: Function always returns 89.1-89.9

I have my own 2d game and I am attempting to calculate the angle between 2 GameObjects. My Problem: My function that is meant to calculate the angle(direction) between 2 Vector3's doesn't appear to ...
1
vote
3answers
1k views

How to efficiently manage animations and/or textures (resources) in a game?

I am using Java, particularly the Slick2D library. Seeing as this is my first game, I have no idea how I should manage the Animations and the textures in the game in a way to be both memory efficient ...
2
votes
1answer
1k views

How can I accomplish Pokemon-style movement over tiles in java?

I'm talking about where if you press a directional key once you walk over to the adjacent tile and can't do any other actions during the walk. I can get my character to move one tile width, but my ...
1
vote
2answers
148 views

Shape Centers as Vectors: Local space or World space?

Given a shape (any shape) in a 2D world where all positions, locations, and centers are two dimensional vectors, should the shape's center be described in local space or world space? EXAMPLE: World ...
2
votes
2answers
702 views

android 2d bullet-spawn (shooting)

This will be a quick question since Im pretty sure I'm overlooking something small that I for some reason cant see. My sprite is moved using a joystick, and I want my sprite to be able to shoot. I've ...
0
votes
2answers
560 views

When to Use Collision Detection Methods

I've done some research into different collision detection methods but I don't know when I should be using one over the others. Some I've seen are: Continuous Collision Detection (CCD) or Raycasting ...
1
vote
2answers
2k views

OpenGL ES high-quality 2D scaling

Let's say I'm making a 2D game and I want to implement a zoom in/out feature. Normally this is as simple as modifying the projection matrix to get more or less of the world to show. However, this ...
2
votes
1answer
936 views

Android 2D game, shooting and getting animation to stop

I'm developing a game as a learning-process, and since everything I do is new to me, I have alot of problems, usually I can fix it myself but right now I'm stuck and need help. Link to a recording of ...
2
votes
2answers
319 views

Should a 4x game use one class per planet type?

I'm try to make a small 4x game for my own educational purposes. Currently I have interfaces like IStarSystem which contains a list of IPlanets. My next step was to make classes implementing those ...
0
votes
1answer
718 views

Java2D Game Flickering

I'm in the process of trying to get familiar with making games in Java, using the Swing library. Coding my Snake game however, I've got to a point where the game is flickering/ghosting and I haven't ...
8
votes
1answer
1k views

What is the difference between an impulse and a force related to a physics engine?

What is the difference between an application of an impulse and an application of a force in relation to a physics engine?
3
votes
3answers
466 views

Tile based platformer, using larger tiles?

So for my tile based platformer, It has a grid of tiles Occupying 1x1 block for each one. However, What if I want larger tiles? Maybe doors, tables, etc. They wouldnt fit in a 1x1 tile, so what I ...
-6
votes
1answer
538 views

Choosing the right game engine [closed]

1 down vote favorite I'm trying to create a game in java inspired by a Gameboy Color Zelda game. I'm exprienced in java but not in game programming. I've been doing a lot of research on game engines, ...
6
votes
1answer
714 views

Creating custom collision map for 2D

I have a 2D level that I have built in my map editor, and I was wondering the best way to create a collision map for it. I have a collision map layer in my map editor, which saves each node (for ...
3
votes
5answers
3k views

How do i choose what technology to use for a 2D game like Pokemon? [closed]

I apologize in advance for the wall of text about to come. I've had an idea for a game for a while now, and am stuck at step 1 of game development: Choosing a language/engine. I've read a whole ...
2
votes
2answers
707 views

Do I have too many colliders on my screen?

I'm running into a situation where my frame rate drops from 70 FPS (on my desktop computer) down to 5 FPS (on my iphone) and I'm trying to understand why. At the moment, I'm only drawing simple ...
0
votes
1answer
205 views

Drawing at negative coordinates in XNA?

I am trying to make a 2D isometric RPG and I kind of hit a wall when it comes to lighting. I was thinking of using shaders, if I manage to understand them.The problem I am anticipating is the presence ...
1
vote
4answers
291 views

I'm making a board game: who should manage the player move if the board has specific locations for the players?

I know this is very specific question but imagine I have a board with spaces (like Monopoly) and a player that must go from one space to another after the dice are thrown. So my workflow: Player ...
2
votes
2answers
861 views

Changing sprite animation depending on direction

I'm working on an android game where my sprite is controlled by a joystick. I just added an animation to my sprite with 4 rows and 3 columns: Now I want to change the animation of my sprite ...
4
votes
1answer
2k views

The Physics behind 2D Platformer Games? [closed]

Is there any good book or tutorial that explains the physics behind creating a 2D Platformer game? Such as tile rendering, tile map reading, collision detection, camera movement etc.?