Tagged Questions
12
votes
2answers
797 views
How do you handle uneven tiles while rendering a tile map?
Here is what I want to do with my tile map that I am unsure of. As you can see the top walls are way larger then the bottom and side ones (this is also an issue with my corners which are odd shapes ...
10
votes
5answers
1k views
2D Game dev and Java. Other possibilities than OpenGL?
I recently startet to programm some basic OpenGL stuff in Java, but OpenGL and DirectX is to much to handle and to understand for me and i'm getting bored really fast.
Now i am wondering if there are ...
7
votes
3answers
4k views
How much is java used in 2d/3d indie games? (before/after Minecraft) [closed]
I wonder for my own use and curiosity, how popular is Java in indie game development ,
in 2d and 3d? Are there any good open/closed source games done in java?
7
votes
3answers
2k views
Rendering only what is on the screen
I am fairly new to this world, so bear with me.
I have a grid of blocks in a top-down, 2d game written using Slick. The best way to think of it is the Pokemon world.
Right now, I am rendering all ...
7
votes
3answers
2k views
Should I move the world or move the player?
I'm about to start developing a sidescrolling game where the players goal is to travel as far as he can in the horizontal axis before touching down. Note that I do not need to ever travel back on the ...
7
votes
2answers
917 views
Java 2D game programming: Different approaches to make a game loop
I am new to Java game programming, but the more I read the more I'm confused, because I've seen several different approaches to make a game loop:
1. The standard approach, that uses the Timer class ...
6
votes
1answer
497 views
Appropriate level representation / data stucture for a 2D platfrom game?
I'm about to program a copy of Mario in Java. I'm thinking on 2 representations/data structures for the levels but I'm not sure which one should I choose:
A 2D integer array.
A quadtree to divide ...
6
votes
1answer
618 views
Is Java AWT suitable for 2d game rendering?
[Reposting this question from stackoverflow, as it was pointed out that it fits better here.]
I'm currently porting my 2D game engine to Java. I looked at some of the game libraries pointed at here ...
6
votes
1answer
674 views
For 2D tiled maps is all object and NPC data loaded into memory when the map is loaded?
I'm creating a text RPG in Java, but I think this applies for a GUI as well with regard to the data structure. Each Level is a tiled map. Each Tile object has an (X,Y) coordinate, and references to ...
5
votes
2answers
2k views
How to store 2D tile-map
I want to create a 2D map composed of small tiles, that should look like voxels (eg. this just from side).
I think I can make a structure like Voxel2D, that have int X, Y and some Color, and every ...
4
votes
4answers
5k views
2D Platformer Collisions
I've basically asked this question before, and I know it's been asked probably a billion times, but I still can't seem to do it. All I want to know is how I should go about doing basic 4-way, ...
4
votes
2answers
1k views
2D game - Missile shooting problem on Android
I have to make a tank that sits still but moves his turret and shoots missiles.
As this is my first Android application ever and I haven't done any game development either, I've come across a few ...
4
votes
2answers
107 views
How to handle game elements with two depth values?
Please see the following image:
I want to be able to do what you see in the image but in a single wall, that is, the same wall is below the hero when I go down from it, and its above the hero if I ...
4
votes
2answers
3k views
Starting Java 2D Platformer using LWJGL
Getting started on a 2d platforming project in java. I've decided on using LWJGL and OpenGL, but I don't quite know where to start. What is typically the first thing one would work on with a ...
4
votes
1answer
199 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 ...