Java is both a popular programming language and runtime environment which allows Java programs to run unchanged on most hardware and software platforms.

learn more… | top users | synonyms

0
votes
1answer
25 views

How do I use ContactListener in JBOX2D?

I have a character, and I need to know when he's touching a wall/floor. I look for some information but no luck. How do I do that? I saw a few things about ContactListeners and getContactList(). But I ...
4
votes
1answer
102 views

How do I draw a full resolution texture to a window of the same resolution?

My image is 1280x800, and my screen size is 1280x800. It should draw perfectly. I'm creating a quad the size of the screen, and setting the texture to fit the quad. But right now it draws a square ...
2
votes
2answers
124 views

How to code a Game Grid in Java?

Suppose I wanted to code a game grid in java. Not an abstract text one but an actual grid with graphics and 'cells'. Would I have to draw line by line or is there a more efficient way? Also how would ...
6
votes
5answers
166 views

How do I get pixel to hex coordinates on an array based hex map?

I'm trying to make a pixel to coord function for a hex map but I'm not getting the math correctly, everything I try seems to be a little off, and examples I found were based on circled centered maps. ...
0
votes
1answer
101 views

Map handling - Indoors/Outdoors and loading large maps

I have two questions regarding the handling of maps. Question 1. My map will consist of outdoor enviroments as well as dungeons, houses etc. How would I go on about connecting the outdoors with the ...
-3
votes
0answers
69 views

how do we change the color of box depending in the score of player.? [on hold]

For example if the player completed any game the performance box will be color green. If the player doesn't completed the game the performance box will be color red. here is the image Do I still ...
0
votes
0answers
82 views

Recommended books for 2D game programming? [on hold]

I have been doing desktop apps for quite a while and want to start with game programming. I prefer by learning / reading from books then learning from online tutorials. If anyone knows good books ...
0
votes
1answer
43 views

Movement with box2d using libgdx

I am pretty new to using physics engine and would like to know what is best practice for movement of playercharacters. Currently I have a class called Hero that has a CircleShape and when the user ...
1
vote
1answer
25 views

LWJGL Wait for key press in a single method

Currently I am implementing the possibility in my game to change the keyboard configuration. Therefor, I have a menu in which is a button for each action the player can do. If the player clicks on one ...
0
votes
0answers
21 views

Trouble loading .png file using LibGDX [duplicate]

I'm trying to load a Texture to libGDX and I'm getting a file not found exception. Here's the code that's trying to load the .png file. ` //Textures private Texture tiles; private TextureRegion ...
-1
votes
0answers
73 views

Is it good to write the first bigger indie game in Java? [closed]

I know that the questions should be answered not discussed than preciser question is "Is there a very, very strong argument to not write the first indie game in Java"? For now I only know Java and I ...
1
vote
1answer
73 views

LibGDX Drawing sprites when moving orthographic camera

I've been having this problem for a long time and I just can't seem to find the exact problem. I have a game where the map is 480x1600 and my camera has a view of 480x800. I have a button that when ...
1
vote
1answer
95 views

Database vs classes in a rpg character sheet app for android

i'm trying to develop an android app to handle character sheets in roleplay games like D&D and Pathfinder. My target is to avoid calculations of bonuses by the player who only cares to set which ...
1
vote
1answer
29 views

How do I use warble to package libgdx and ruby?

My ruby code is as follows include Java Dir[File.expand_path "#{File.dirname(__FILE__)}/../libs/\*.jar"].each { |x| require x; puts "go"} module LibGDX include_package "com.badlogic.gdx" ...
1
vote
1answer
61 views

Libgdx , how to get mouse position relative to a Tiled Map

I'm porting a game that i did for Ludum Dare 26, this year, i made it using Contruct2, i decided to port it to Libgdx, for learning reasons, ...

1 2 3 4 5 73
15 30 50 per page