Tagged Questions
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.
3
votes
1answer
157 views
How to make a world-to-player inventory system?
I am running into an issue of trying to implement an inventory system within XNA (doesn't really matter, could be any platform) but so far. Here is the issue I am trying to wrap my head around:
How ...
2
votes
1answer
66 views
How do games using physic engines for 2d games handle platform corners?
I have seen games like latest "2'5D" sonics that handle collision detection at platform corners pretty well. The problem I'm having is that my game uses an ellipsoid as my player's body to let it ...
1
vote
1answer
58 views
2D platformer multiple rectangle collision cause jitter
I posted this question two weeks ago: 2D platformer corner collision and I implemented NoobsArePeople2's solution.
Problem is, when player intersects two rectangles that are inside each other, he ...
3
votes
2answers
40 views
How to efficiently handle registration/anchor points for graphics?
I am currently working on an iPhone project, but most of my work has been in Flash. Flash has a feature where you can place a bitmap into a MovieClip, set its registration point with the mouse and ...
1
vote
1answer
84 views
How do I make light objects in XNA?
Here's my dilemma : I want to have light sources placeable by the player, in terms of lanterns.
I know the best way to do this is to use pixel shaders, which I have done a lot of research and use ...
1
vote
1answer
64 views
Effective SpriteBatching in XNA?
What is an example of efficient sprite batching in XNA?
I don't know when (if ever) I would do something like this:
spriteBatch.Begin()
DrawSprite1();
spriteBatch.End();
spriteBatch.Begin();
...
0
votes
2answers
93 views
How to get mouse position relative to the map?
I'm creating a game in XNA similar to Minecraft - Minecraft 2D
It looks like this
Here's how it works:
All blocks are generated once with fixed x,y coordinates and just re-drawn.
//generate ...
0
votes
3answers
134 views
Public format for 2D animations
What public animation file formats are there available for 2D games? I'd like to know about both formats for procedural/skeletal animation, as well as traditional animation.
2
votes
1answer
84 views
I need help with 2D collision response (of stacking rotating polygons, with friction and gravity, for a game)
Hi I am looking for suggestions on how to write a collision response for game programming purpose (so not a scientific simulation). I am dealing with 2D polygons that are rotating, and I want them to ...
1
vote
2answers
127 views
Is there a library that handles hexagon tiled 2D maps?
It would represent a map that is semi-square of arbitrary size. It would have a simple system for representation of the map coordinates such as 0101 (first column, 1st hex). I'd want the map to be ...
0
votes
1answer
79 views
Allegro Game Won't Fire 2D Projectile
To begin with I am developing a PSP application so I have no clue how to debug a PSP application. That doesn't mean I do not know how debug period. Anyway, when I run the game everything runs fine but ...
1
vote
1answer
107 views
Android Game, Blurring effect while moving camera
I have posted this issue on stackoverflow, but unfortunately nobody couldn't find solution, maybe someone here know this.
I'm developing Side Scroll 2D Game, using AND ENGINE
...
-1
votes
1answer
138 views
How to create a map by coding in OpenGL
I have a very good knowledge about Java, C++, Qt, C# etc... and I wanted to start making a game... most the engine that the game per se since I don't like the "design" part of making a game..
I have ...
2
votes
1answer
121 views
How to create a 2D region where sprites are automatically wrapped?
Disclaimer
I'm looking for intelligent solutions that encapsulate this behavior in a way that is transparent to the user. Don't simply answer "draw the sprite four times". For instance, something ...
0
votes
1answer
186 views
Java 2D Tile Map and Moving Sprites with threads
I'm having difficulties understanding how to use threads and I'm not sure if my basic structure is right.
This is my Board Class:
package mortifera;
import java.awt.Color;
import java.awt.Graphics;
...