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.
0
votes
0answers
24 views
Mapping a 2d side-scroller onto a top-down overworld map without any transitions
Greetings fine people,
I'm currently thinking of a way to map multiple 'areas' of a 2dSS on a top-down overworld map in a way that you wouldn't need to transition onto an overworld and then walk to a ...
-2
votes
1answer
63 views
Undefined fireball movement behavior
Demonstration video
I try to do after the player shoot 10 times of fireball, then delete all the fireball objects and recreate a 10 new set of fireball objects. I did it but there is a weird bug ...
-3
votes
0answers
26 views
Do I need to leave the sexyapp framework? [on hold]
Sexyapp framework has limited tutorials for game development, most specially for begginers.
I need your suggestions..
Do I need to shift to other opensource game engines.
what game engines used for ...
1
vote
1answer
89 views
How to set orthgraphic matrix for a 2d camera with zooming?
I'm using ID3DXSprite to draw my sprites and haven't set any kind of camera projection matrix. How to setup an orthographic projection matrix for camera in DirectX which it would be able to support ...
-1
votes
0answers
42 views
Java 2D Rectangle Collision? [on hold]
I am just wanting to know of another (longer OR shorter) way of getting 100% effective collisions on a 2D plat-former. The current collision system that is in place works from coords on the level and ...
0
votes
1answer
74 views
Collision detection with entities/AI
I'm making my first game in Java, a top down 2D RPG.
I've handled basic collision detection, rendering and have added an NPC, but I'm stuck on how to handle interaction between the player and the NPC. ...
0
votes
1answer
40 views
tool for visualizing simple 2d shapes
I'm drawing simple 2D line shapes using coordinate sets (for example, moveTo(x,y) drawTo(x,y)). I would like a tool that is like a sheet of graph paper. When I click on intersection points it records ...
1
vote
1answer
145 views
How do I create curved ground in a 2D runner game?
If I use tiled based map I can have only rectangular objects.
What is a strategy for creating slanted or curved ground in that case? Should I use a tile-based map, or should I define corner points ...
0
votes
1answer
66 views
Rotate 2d sprite towards pointer
I'm using Crafty.js and am trying to point a sprite towards the mouse pointer.
I have a function for getting the degree between two points and I'm pretty sure it works mathematically (I have it under ...
2
votes
1answer
98 views
Pathfinding results in false path costs that are too high
I'm trying to implement pathfinding in a game I'm programming using this method. I'm implementing it with recursion but some of the values after the immediate circle of tiles around the player are ...
0
votes
1answer
141 views
Level Representation in a 2D Game
I would like to create a 2D game, where a character should move on a stage/level. My stage would be static, constructed some little cubes, similar to the well-known Mario game: some of the elements ...
0
votes
0answers
107 views
Character movement on a 2D tile map
I'm working at making a HTML5 game. Top down, closest thing I can equate it to is the gameboy zeldas, but open world and no rooms.
What I have so far is a procedurally generated map in a multi ...
3
votes
1answer
176 views
The most efficent ways for drawing lines all day long with OpenGL
I'd like to put a computer screen that is running an OpenGL programs in a room. It has to run all day long (not in the night).
I'd like to draw lines that are slowly fading in the background. The ...
4
votes
2answers
144 views
What would be the most simple following target and neighbors avoidance algorithm in 2D space on plane?
I have ~20 or more enemies and they need to follow a target and avoid to go on top of themselves. I mean follow a target and avoid to collide with each other. Area, on which they are walking, is just ...
4
votes
3answers
219 views
How do you find games with a similar idea?
I'm thinking about making an indie game and want to know if there's maybe one with similar idea.
I'm not asking about my idea specifically, I just want to know how to find out if a game has the same ...
-1
votes
0answers
40 views
Sprite rotation with 2d camera
I am very new to game programming and have encountered a problem when creating a top down game. In the game the sprite is facing the mouse.
I have also integrated a camera class to allow 2d ...
-1
votes
0answers
70 views
Programming pokémon-like gameplay [closed]
For training purposes, I want to program a pokémon-like prototype. That means mainly these features :
Open world, with all that implies
Battle system with hundreds of monsters possible (which will ...
-1
votes
1answer
114 views
How to speed up AStar? [closed]
I have this AStar class, and at the movement it is INCREDIBLY slow. It takes waaay longer than I expected it too, and I'm not quite sure why. I added the generation part at the very beginning to ...
-2
votes
1answer
109 views
Why does my sprite shake while moving?
Player movement causes its sprite to shake a bit. I don't what is causing it or how to fix it.
I recorded a video of the problem. In the recording, it looks like the world is shuddering, but only ...
0
votes
1answer
65 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
140 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
54 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
139 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
91 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
61 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
152 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
107 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
94 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
60 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
57 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
31 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
65 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
57 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
170 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
63 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
69 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
72 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
87 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
86 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
40 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
174 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
57 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
183 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
114 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
185 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
41 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
55 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
68 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
142 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 ...