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

0
votes
1answer
33 views

Splitting tileset into individual tiles

I managed to split tilesets into individual tiles, here is the tileset: http://opengameart.org/content/32x32-fantasy-tileset Here is an screen shot of my game window with my code to split the tileset ...
1
vote
2answers
49 views

How do I make an arrow line up with a bow when rotating them?

I am trying to create a bow and arrow animation in which the player can drag downwards to increase the bow strength (see the image) and release it to hit a target. I can't get the arrow to align ...
1
vote
0answers
13 views

How to attach one sprite to another in LibGDX?

I want to attach one sprite to another so that it is always located at the 'bottom' of the other sprite, regardless of how the main sprite is rotated.
0
votes
0answers
42 views

Spawning enemies outside of view

I'm trying to create a 2d shooter for Android. How do I spawn enemies "above" the screen, so that they "enter" the game screen instead of spawning at the top of it? I think I need to make a game ...
-2
votes
0answers
38 views

Selection of a 2d physics library [closed]

I am a decent programmer with not so great artistic skills. I am creating a game involving some basic shapes and rudimentary artwork. I wanted to select a decent 2d physics library with easy to use ...
2
votes
3answers
144 views

Tetris - Rotations using Linear Algebra (Rotation Matrices)

I'm making Tetris in Java and am at the point of rotations... Originally I was hardcoding each rotation: if (direction.equals("right")) { if (shape.equals("Bar")) { if ...
-3
votes
0answers
43 views

Suggests for a 2d networked game [duplicate]

i'm doing a bomberman game. I have already did a peer to peer version for 2 players. Now i want to do an up-to 2 players version using a client server architecture. What do you suggest me to use? TCP ...
0
votes
1answer
47 views

Are there shaders or at least shader like things in Swing?

Is there? Because I'm wondering if it supports GLSL, HLSL, or it's own shading language? I don't know much about Swing graphics. Does anyone know?
0
votes
1answer
53 views

Refering to an object from an array in Java

In my game, the whole thing is based off of grids. So the map is a dual dimensional array of 32 (32 x 32 grid map). Now what I want to be able to do is to grab a grid and be able to access it and ...
-2
votes
0answers
40 views

2d Rotating Turret misbehaving when I target left side of screen [closed]

I have been fighting this for a while now. At its core the game is much like Missle Command on steroids, or will be if coding does not drive me crazy. For right now I just need to get a turret on ...
19
votes
3answers
833 views

How does a 2D game like Zelda handle the character being behind buildings where only part of him is shown?

I'm trying to develop a simple Zelda-style game. I found this very useful topic How was collision detection handled in The Legend of Zelda: A Link to the Past? that I'm using as reference to develop ...
-1
votes
2answers
116 views

Developing a 2D Android game on Unity - Pros and Cons [closed]

Depending on your experiences, if you have created a 2D game on Android using Unity, was it painful? Have you ever said "I wish I have used X instead of Unity!"? Tell me the Pros, Cons and the name ...
0
votes
1answer
98 views

Pong horizontal movement algorithm

I was just wondering about the horizontal movement of a pong ball? What is the general algorithm used with this? The ball in my pong game just move vertically and I don't know about the algorithms ...
2
votes
1answer
73 views

Should my assets match my reference resolution?

I'm confused over supporting multiple resolutions in my 2D game. I'm currently working with a reference resolution of 1280x720. That means that all elements are positioned in a 1280x720 coordinate ...
-2
votes
0answers
53 views

Stationary turret that tracks the player when in sight [closed]

Hello i am doing a project for school i am new to c# and need some help with a turret i am creating a simple 2d game and i want my turret sprite to rotate and track my player when he is in view and ...

1 2 3 4 5 65
15 30 50 per page