Initial help New to Java - need help to get your first Java program running? See the Oracle Java Tutorials section on Getting Started. Before asking a question, use the search box in the upper right corner to see if it has been asked before by others (we have many duplicates), and please read ...
0
votes
2answers
46 views
3D: First Person Movement
I've searched and searched for a solution today but haven't found one.
I have a Camera with Vector3 and also the camera has an angle.
If I use this:
hero.position.x += speedX;
hero.position.z += ...
0
votes
1answer
11 views
JBox2D - how to get vertex positions?
I've created a triangle for jbox2d...
public void createTri(){
PolygonDef shape = new PolygonDef();
shape.density = 2.0f;
shape.friction = 0.8f;
shape.restitution = 0.3f;
...
1
vote
0answers
39 views
Why does creating dynamic bodies in JBox2D freeze my app?
My game hangs/freezes when I create dynamic bullet objects with Box2D and I don't know why. I am making a game where the main character can shoot bullets by the user tapping on the screen. Each touch ...
0
votes
0answers
39 views
Resources for game networking in Java
I am currently working on a Java multiplayer game. The game itself (single player) already works perfectly fine and so does the chat. The only thing that is really missing is the multiplayer part. ...
0
votes
1answer
58 views
What is the best way to make UI for an Isometric game in java
What do you think is the best way to make UI for an isometric game.. I dont have much experience in UI so im not sure where to start.
I need something the mouse can interact with and that works good ...
0
votes
1answer
65 views
jMonkey Quest Database
I am building a game in jMonkey (Java) and I have so far only used default quest text. But now I need to start populating a lot of quests with text. My design requires A LOT of quests texts.
What is ...
2
votes
0answers
22 views
Changing DisplayMode seems not to update Input&Graphic Dimension
I'm writing a small game using Slick and Nifty-GUI.
At the program startup I set the DisplayMode using the following lines:
AppGameContainer app = new ...
app.setDisplayMode( 800, 600, false );
...
0
votes
1answer
61 views
Minimap Around Perimeter of Screen, Code Provided
What I'm essentially trying to do is what a lot of FPS's nowadays do in regards to their HUD. When an objective is off-screen, a small icon / symbol is shown on the perimeter of the screen, basically ...
1
vote
1answer
46 views
How do I load tmx files with Slick2d?
I just started using Slick2D and learned how simple it is to load in a tilemap and display it. I tried atleast a dozen different tmx files from numerous examples to see if it was the actual file that ...
3
votes
1answer
63 views
Stuck trying to decompress sections in Minecraft Anvil files (.mca)
I've been trying to write some Java code to read .mca files, based on the information at http://wiki.vg/Map_Format and http://wiki.vg/User:Sprenger120 . I am at the point where I can read in the ...
2
votes
1answer
117 views
2D RPG - Character sprite size bigger than tile size
Ok so I'm trying to make a nice little RPG game in Java & Slick2D engine, the tiles are 16x16, so the collision array is also 16x16, how ever my character sprite is 16x20
What would be the best ...
2
votes
2answers
127 views
How do I find the angle between two vectors?
I have 3 points on my screen:
a = a point which is (c.x, 0) makes a line pointing straight up
b = a user input touch, can be anywhere on the screen
c = a moving object
a
_______.________
| ...
5
votes
2answers
134 views
An odd performance problem rendering a simple scene (less than 14k vertices) in OpenGL using two vbos with LWJGL
Problem
I have been having a strange degrading performance issue rendering a simple scene containing two "chunks" of 4x4x4 cubes each.
Video of problem
This is a screen capture showing my console ...
0
votes
1answer
63 views
How should I detect whether or not to enable Anti-Aliasing?
How can I detect the speed of the user's graphics card so that I can decide whether or not to enable advanced graphics features that would slow down the app on a slow card, such as anti-aliasing? I am ...
2
votes
2answers
107 views
Would it be too much overhead to keep a HashMap of variables on a server per object for the purpose of syncing object changes with the client?
I am currently writing a server for a multiplayer game. I am trying to find a good solution for synchronizing GameObjects across the server. The server sends each client a snapshot of every object in ...