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

-1
votes
0answers
13 views

Player movement shaking

Player movement is shaking a bit. I dont remember this happening when I first implemented the class. I removed the more memory comsuming bits of my game, and it still does it so I think it has ...
0
votes
1answer
49 views

Can i place a image as a map and then code a grid over the top of it?

what i'm trying to do is make a huge map, best way i found is just make a big map and save it as a image... can i code a grid over the top so i can implement tile based movement for my character? ...
1
vote
1answer
89 views

Making a 2d tile based world/map

I've been trying to develop a very basic 2d tile based game for self experience.. Googled and looked at hundreds upon hundreds of tutorials on 'tile based maps' Almost every tutorial i see is ...
0
votes
1answer
36 views

Projecting world coordinates to screen coordinates issue - points disappear when origin not in view

I am trying to implement a 2d line drawing effect on a 3d mesh using Ogre. In order to do so, I perform silhouette detection on the lines of the object (this works) and then project these lines from ...
2
votes
1answer
97 views

2D Terra(ria)in generation - Accidental noise

I'm currently trying to implement terrain generation as described on the following page: http://accidentalnoise.sourceforge.net/minecraftworlds.html. But I have issues understanding how to interpret ...
-2
votes
0answers
72 views

What knowledge do I need to make a soccer match simulation engine? [closed]

I want to simulate a soccer match, like the Football Manager game, it should be in 2d, showing players and the ball. The players should act for themselves, of course following soccer rules. The ...
0
votes
1answer
60 views

How to render polygons of arbitrary shape? [duplicate]

I am trying to render a plane with nodes. FYI : Nodes know what other nodes it is being attached to. I can think of a way to render them as long as they are aligned in a circular pattern; have a ...
1
vote
1answer
125 views

How to create a similar 2.5D art style character

EDIT: I am asking about the characters not the 2.5 scene I am the graphic designer of a game and I want to recreate the look and feel of these images: My questions are: Does this style have a ...
-2
votes
1answer
99 views

Collision detection-too fast [closed]

I've looked through a few other answers and it seems like I'm doing a dynamic timestep update and I'm checking about 10 pixels before the rectangle to see if it would intersect. However, the updating ...
2
votes
1answer
87 views

Dynamic graphical elements in a 2D game [closed]

I'm an mobile and web developer. I got interested in game development couple of weeks ago and I'm really looking forward to work on a mobile game. I will be doing everything including the game design ...
-1
votes
0answers
59 views

research/investigation problems in 2d games [closed]

To reach master of engineering level in my college you have to choose thread with research/investigation programming problem. I would like to connect it to write a 2d game engine (maybe android I am ...
0
votes
1answer
51 views

Formula throwing a ball to destination [duplicate]

I am throwing a ball using this: double v, vx, vy, alpha, t2 = 0; if (Keyboard.GetState().IsKeyDown(Keys.Up)) { alpha = MathHelper.ToRadians(60f); v = ...
0
votes
0answers
28 views

Android Dynamic 2D Map

My problem is, I want to create a 2D tiled map. Yes, I know it's been asked a lot. I've seen answers that propose the use of tiled however it only allows (or so it seems to me) to generate static maps ...
0
votes
1answer
61 views

How to handle zooming? (Collision detection and speed are off)

I'm working on a bird's eye view 2D game. I want to zoom in/out based on the entity's speed (similar to GTA 1/2), but I'm struggling with the zooming. To zoom, I simply scale all the entities by the ...
-2
votes
0answers
49 views

How to best implement scrolling in a 2D game? [duplicate]

I'm a bit confused as to how to best implement scrolling in a 2D game. I've implemented it before, but I was never quite happy with how I separated the concerns. My starting point this time is ...
3
votes
2answers
142 views

How to ray cast 2D light in a block-based game

I want to use 2D lighting that can be blocked by in-game objects. My game is block-based and has a view from the top of the flat world. Now lets say I have a 10x10 world and I place a light at 1x1 and ...
1
vote
0answers
57 views

2d terrain workflow

I am new to 2d art and I had a question about the ground part of a level. What does the workflow look like for a 2d game like Dust: An Elysian Tale or Shank 1-2? I want to do that kind of ground where ...
2
votes
1answer
64 views

How to handle scripted events in a 2d java game?

I'm in the planning phases of a 2D java game. The game is a tile-based platformer with some action-y parts to it, like a Metroidvania formula game. The static portion of each stage is expressed as an ...
1
vote
3answers
69 views

Move from point a, to point b, and determine the accuracy

Let's say I have a circle at point a (0,0), and I wish to move it to point b (23,58), whatever, how can I accurately do this with a speed variation if I wanted. (I'm doing this in javascript). Every ...
1
vote
1answer
81 views

Creating big scene and little size chasing camera

I would like to create a climb based game, so I need to have a big scene and a camera that cover only a little part of it and chase my player. This image explains easier what I want: How can I do ...
-3
votes
1answer
76 views

2D Game Engines [closed]

I'm a computer science student and I recent completed a module based on the development of 2D and 3D games. I want to develop a 2D game in java as a personal project, the library we worked with ...
0
votes
0answers
34 views

Good Book or Resource for 2D Game Art [closed]

I have a very clear idea for my first Game . I have immense Experience in Coding Games in LibGDX but i am very poor at game art . So far I've been hating all the characters I've drawn . Are there any ...
-1
votes
1answer
46 views

Need a Push in the right Direction [closed]

I know this been asked a millions of time. First off my Dabbled in a few languages,like Java,C#,Android,Python and unity even though that's not really a language.My Programming is Level as at far ...
0
votes
1answer
150 views

How to make a game tick method?

I've seen in some other simply 2D games that a tick method is used to sync game logic and graphics rendering. My main reason for using this is due to my collision detection malfunctioning, since the ...
-3
votes
0answers
51 views

Looking for feedback on code architecture [closed]

I am looking for some feedback on the code architecture / style of the 2D libgdx game some friends and I made over the weekend. The game is a mix between billiard and soccer (therefore the name ...
5
votes
1answer
160 views

Generating a physics body for 2D Worms-like Terrain

I wrote a processing sketch that generates hills for a scorched earth clone, like this: I'm trying to figure out how to make this a physics object in libgdx, but I'm having problems figuring out ...
-4
votes
1answer
106 views

Recommended graphic software for creating great graphics in game? [closed]

I came across a game called Trine2. It has a great graphics here is one image i captured here. Forgive me but I need 10 reputation to upload image so i use external sites. How did they create that ...
0
votes
3answers
175 views

how can we define dynamic Path of ViewObject(Bitmap) On Canvas

I am Currently working on One 2D Android Game, In this game One ViewObject(Bitmap) is moving Across Screen On Parabola Path Like in this Image, But this Path is Static, the Static path is getting ...
0
votes
0answers
40 views

Decaying velocity for simple ball physics [duplicate]

I am writing a little experimental 2D program in Java to understand the basics of physics in games. I read this article on game physics to get me started and want to implement the simple Euler method ...
1
vote
1answer
52 views

Colliding a player and a maze wall [closed]

I am making a game very similar to Tank Trouble. I cannot get t the tank to collide with the maze in the map. Let tx and ty = the tank x and y value. Let x and y = the walls x and y value. Let h and ...
1
vote
1answer
66 views

2D Platform character getting “unaligned” with the map

I'm trying to make a 2D Platform game and so far I can have my character moving around in a tiled map and collisions are working too. So far so good. The problem I'm having is that the character can ...
2
votes
1answer
135 views

Combining 2D and 3D in game engine

I've implemented basic 3D functionality and made little "2.5D" demo in orthographic projection using OpenGL ES 2 and Box2D. Now I want to make completely two-dimensional game (using sprites) and ...
1
vote
0answers
54 views

scale rotating boundingbox

I want to use basic rectangular collision detection. I have a rotating sprite and a method that calculates the bounding box every time in the Update() method. I simply check for intersection between ...
3
votes
0answers
54 views

2.5d with box2d - approaches from the top and bottom

So, I'm using box2d for my 2.5d game (think double dragon, tmnt arcade, castle crashers) where you can move around on the z-axis (faked as y-axis movement). Basically, I have box2d only doing ...
0
votes
1answer
48 views

What is the standard technique for shifting the frames of a sprite according to user input?

From my own experience, I developed two techniques for changing the sprites of a character that's reacting to user input -- this in the context of a classic 2D platformer. The first one is to store ...
0
votes
1answer
89 views

How can I implement infinite scrolling by scrolling the background's texture, not the quad? [duplicate]

I'm writing a 2D platformer game on Java with LWJGL. I'm doing this just for the sake of learning and not the result itself, so when I decided to implement scrolling I did it two ways I could invent ...
1
vote
4answers
129 views

How to smoothly rotate a vector in a direction?

I'm looking for an easy way to achieve the following: Object A, B { Vector2D position; Vector2D orientation; } update(elapsed) { //rotate A's orientation in B's direction by x * elapsed ...
0
votes
1answer
35 views

Dynamically editing a movieclip at runtime

I am trying to make a flash game(actionScript-3 if it matters) to test what I learned so far. And, in the game, I want to make the character(a robot?) customizable. The first solution I found was to ...
1
vote
2answers
106 views

Building a tessellated texture

In games like Minecraft the textures such as grass when lined up side-by-side it looks like one big perfect texture. When I make a texture it's never even and you can see the different blocks. How do ...
4
votes
1answer
113 views

2d coordinates vs x/y screen positioning

I have a 2d top-down view tile map game, that generates random color tiles (water colors) as you move the character. I've been positioning elements on screen using the x/y coords (finding a way to ...
3
votes
1answer
97 views

Player getting caught on floor

My player is getting caught on something on the floor. My whole environment is just blocks. I have looked through (and tried to change) just about everything I can think of in my player update method. ...
-1
votes
0answers
25 views

Modeling objects coming down from a networked pipe on the client?

I've got an entity base class that contains information about a particular object that both the server and client know about, they're in a shared DLL. It's just a basic outline of entity information ...
-1
votes
0answers
84 views

What's the idea on the base of rendering camera on 2D platformers games? [closed]

I'm programming a 2D platformer game, and I am wondering about how the right to left scrolling of the camera is done in a game like this. There is a background that need to be updated. There are also ...
1
vote
2answers
148 views

Converting hexagon grid coordinate system

As I have been building on a RTS game based on hexagon grid built in javascript. I stumbled across a problem regarding the coordinate system. Have been trying to implement a A-star system to find ...
-4
votes
2answers
95 views

2D Graphics in CMD in C#

So, almost every programmer used Doom as inspiration for new Projects, right? So Doom and other classic MS-DOS game were played on something like Command Prompt. How do you display images in Command ...
1
vote
2answers
123 views

OpenGL ES 2.0: 2D game rendering, no performance gain with glDraw call batching

I just did a small benchmark. To my surprise batching sprites into a single draw call doesn't give any significant performance boost. Following are my results: Hardware: iPod touch 4 Extra info: ...
-2
votes
0answers
71 views

How to Fix Choppy Movement [closed]

I've just started game programming yesterday, reading things here and there on the internet, and I've been testing the java 2D API. The code below does basically what I want it to (move the red ...
-1
votes
1answer
90 views

How would you program sprite movement in a 2-D ariel view rpg game? [duplicate]

I'm relatively new to programming and I have recently programmed an RPG game in java. Any tips on character movement with animations? I would like it to be similar to those of other rpg games such as ...
0
votes
1answer
48 views

How can I draw a small bitmap on a larger bitmap at a particular position? (Canvas / SurfaceView)

I'm building a game that requires additive blending of colours for certain bitmaps. Say I have 4 different types object, there are maybe ten of each type on the screen with each type having a ...
0
votes
1answer
31 views

SDL text or additional images not loading

I've got a basic side scroller that allows the user to run and jump around. I've used various tutorials to get this far, but I can't seem to get any text to render, no matter what method. I also can't ...

1 2 3 4 5 21