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
0answers
27 views

how to write logic for simulation a cricket match

I want to develop cricket game which will simulate a match ball by ball depending on player stats (bowler's skill/experience, batsman's skill/exp, fielding/wicketkeeping stats, so on...) and other ...
0
votes
3answers
110 views

Valid gameloops

I've got a thread (gameloop) in my game that is super complicated, and is built with the help of tutorials when I was still a beginner. But now that I understand a bit more, I find myself wondering ...
0
votes
1answer
62 views

Efficient collision detection using quadtrees

I recently started to learn Java and OpenGL with the LWJGL and I'm making some simple games to get started. At first, when I was going to implement collision detection I immediately thought there had ...
2
votes
1answer
149 views

2D Software Lighting Issues in Java

I'm creating a 2D top-down tiled game in pure Java and by now I'm trying to implement a way to do lighting. First, some details on how I render: there is a screen class which handles all the ...
0
votes
2answers
61 views

Is this Rotation Matrix correct?

I'm having heavly troubles with setting up a View Matrix and a Projection Matrix. It simply doesnt work. So I think my problem is related to my rotationMatrix function. I'm using this tutorial to ...
0
votes
2answers
104 views

Player can move off screen?

So this is something that I've struggled with for a while. I have this code to check if the player is off the screen (Which at the moment is the map) if (newX < 0) { newX = 0; } if (newY ...
-6
votes
0answers
65 views

Reading “0 1 2 3 0” map files? [closed]

I just exported a simply map I made with some map editor I found online (2D single layer maps). This is the output: 6 3 3 3 3 3 3 3 3 7 2 1 1 1 1 1 1 1 1 2 2 1 1 1 1 1 1 1 1 2 2 1 1 1 1 1 1 1 1 2 2 ...
1
vote
0answers
50 views

Aiming with a crosshair with a lot of polygons/triangles

I'm working on a 3d kindof game where I'll eventually be able to modify the shapes present in the environment by pulling their faces with a crosshair. The thing is that I don't know how to achieve ...
7
votes
2answers
487 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 ...
-1
votes
0answers
26 views

Steering library for andengine? [closed]

Does anyone know of any good steering libraries that can be used with AndEngine? At the moment I'm looking to implement a basic homing missile but something with some other steering functions would ...
0
votes
1answer
68 views

Java Game Interface [closed]

I started making a game (mostly the interface, buttons, panels, components.. etc) and I have been using Swing to make the different components. But I have read that Swing is not good for creating game ...
-2
votes
1answer
98 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 ...
-4
votes
1answer
35 views

Add scores & display it at top left corner of the screen? [closed]

public class Drop implements ApplicationListener { Texture dropImage; Texture bucketImage; Sound dropSound; Music rainMusic; SpriteBatch batch; OrthographicCamera camera; Rectangle bucket; ...
0
votes
1answer
278 views

LibGDX Perspective Camera for 2D

I'm very new to LibGDX and I'm trying to use DecalBatch with PerspectiveCamera, simply to have z-coordinate for my sprites, as SpriteBatch does not offer that. However, I don't know how to calculate ...
1
vote
2answers
65 views

How do I derive the angular movement for a craft

I have the regular (linear) motion implemented like this: class Craft{ ... Vector location, velocity, acceleration, angularVelocity, angularAcceleration; ... //the move class responsible for linear ...
36
votes
8answers
14k views

Is Java viable for serious game development?

Ever since I was a little kid, my dream has been to develop games. Well, now that I am older, more mature, and have some programming experience, I would like to start. However, I would like to turn ...
0
votes
0answers
16 views

How to find the location of JOGL openGL object , after rotation?

I have a rotating object - a cube , here : @Override public void display(GLAutoDrawable gLDrawable) { moveFirstPerson(); checkCameraCollisionWithObject(); final GL gl = ...
11
votes
7answers
1k views

Imperfect pong AI

So I'm starting to learn Java and some OpenGL while using the LWJGL. To start off easy, I'm writing a clone of the Atari Pong. I got set up correctly the game screen, collision detection, and all the ...
2
votes
0answers
41 views

Use “Google Play Game Services” (Multiplayer feature) with LibGDX

i'm developing a simple game (for Android, using LibGDX Framework) and i would like to implement multiplayer feature to it. So, since the main project with the logic of the game in LibGDX is separated ...
4
votes
3answers
291 views

Java Anti-Cheat Framework?

Are there any anti-cheating frameworks for Java games in order to make it a bit harder to cheat? (eg. something that protects from things like Cheat-Engine) Obviously if the cheater were to develop ...
2
votes
2answers
307 views

How do I get the touch event on a body in Box2d(Java)

I have various bodies rotated at some angle with the help of Box2d in libGDX. What I want is to destroy the body when I click on it, but the problem is that I am not able to get the area definition of ...
-3
votes
0answers
44 views

How to make my jme3 character walk over slopes and stairs instead of sliding? [closed]

In jme3 there was a class called CharacterControl which could be used to set the max slope with the method setMaxSlope for setting so that the character could walk stairs and uneven surfaces without ...
-3
votes
2answers
117 views

How is good is Java as a language for browser based mmo games? [closed]

Somewhat related to Is Java viable for serious game development? I have decided to make a browser based mmo game. But the only programming language I know is Java. So I would like to know how good ...
0
votes
1answer
403 views

How handle nifty initialization in a Slick2D state based game?

I'm using Slick2D and Nifty GUI. I decided to use a state based approach for my game and since i want to use Nifty GUI, i use the classes NiftyStateBasedGame for the main and ...
0
votes
0answers
45 views

What is the definition of game state [duplicate]

I want to know what the definition of game state is and I want a simple kid friendly definition with words that I know thanks
2
votes
2answers
310 views

Detecting collision between ball (circle) and brick(rectangle)?

Ok so this is for a small uni project. My lecturer provided me with a framework for a simple brickbreaker game. I am currently trying to overcome to problem of detecting a collision between the two ...
-2
votes
0answers
33 views

Want to develop a game/web app like fifa manager/sports team management [closed]

I want to develop a web based game like fifa manager (not that level of detail but of same genre). Fifa manager is a sports team management game for those who are not aware. I am a java web developer ...
0
votes
2answers
45 views

Java game: jumping glitch on multiple collisions

I need help with checking for intersections in a game I'm creating. When a character collides with a single obstacle on the screen everything works as intended, but when multiple obstacles are added ...
6
votes
2answers
347 views

MMORPG server-side java architecture

I am currently making a MMORPG game, which is turn-based. The client is supposed to run on Android. Now, my friend is doing the graphics, and I have been doing the game classes (player, weaponry, ...
0
votes
2answers
472 views

Rendering another screen on top of main game screen in fullscreen mode

my game runs in fullscreen mode and uses active rendering. The graphics are drawn on the fullscreen window in each game loop: public void render() { Window w = ...
-1
votes
0answers
45 views

Mobile vs. PC for newbie game dev [closed]

First a little background info: I have made small games such as a Tetris clone and minesweeper in java but I want to learn c++. Now I am looking to make an rpg game. My goal is to eventually make ...
2
votes
1answer
64 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 ...
0
votes
1answer
43 views

Endless terrain in jMonkey using TerrainGrid fails to render

I have started to learn game development using jMonkey engine. I am able to create single tile of terrain using TerrainQuad but as the next step I'm stuck at making it infinite. I have gone through ...
-2
votes
2answers
106 views

What parts of my RPG should I develop first? [closed]

I'm developing an RPG, using java + libgdx, and I've got box2d, basic scene2d, tiled maps, and tablelayout/menu set up. However, I'm not sure what to develop in what order, I always just developed ...
0
votes
1answer
288 views

Player position triggering teleports

I'm developing a Minecraft plugin (bukkit) in which a server admin can create 'portals' - a small region that will teleport any players who enter it. I have the teleportation sorted and I know how I ...
0
votes
1answer
148 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 ...
0
votes
1answer
130 views

Pick and Drop the Ball Testing Without Replicating the Physics Frame

I am making a program that pick, drag, and drop the ball. In real life, once you pick the ball and drop it, whenever the available object is (what you see is what you get) will only be picked and ...
-3
votes
1answer
75 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 ...
3
votes
2answers
114 views

How to zoom randomly generated maps?

I made a Java program which generates a random map based on Perlin Noise + Poisson Algorithm + Voronoi Diagram. Here you can see a generated map. White are caves, black is empty. The problem is ...
2
votes
0answers
61 views

Images out of “sync”

I've been creating a game in Java as a bit of a fun side project over the last few months and I've come across a really peculiar problem, take a look at this image: The game is made up of various ...
1
vote
1answer
223 views

How do I export my Blender model to OGRE XML format for jMonkeyEngine 3?

I'm an amateur software engineer with several simple 2D-game projects under my belt. I'v recently turned my attention towards creating a basic 3D game, nothing too fancy, just to get a grip on things. ...
-3
votes
0answers
51 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 ...
-6
votes
3answers
235 views

Why does Mojang write Minecraft in Java [closed]

Is there any specific reason why Java was the right choice for Minecraft?
-2
votes
0answers
138 views

AI movement crashes program? [closed]

I'm working on some simple AI in a 2D platformer in libgdx. I'm trying to make it so the AI will patrol between two predetermined points. I've created a basic move and patrol methods here public ...
0
votes
2answers
125 views

sprite animation system height recalculating has some issues

Basically, the way it works is that it update the frame to show every let's say 24 ticks and every time the frame update, it recalculates the height and width of the new sprite to render so that my ...
0
votes
1answer
28 views

Moving a Box2D object in the direction it is facing using applyForce [duplicate]

I'm trying to apply force to a polygon physics object to move it. Whilst I can get it to move upwards easily enough, I'm trying to get it to move in the direction in which it is pointing. Here's my ...
0
votes
0answers
33 views

Box2D physics object rotating for no reason? [closed]

I have a physics object in LibGdx (Using Box2D). I'm applying an impulse of (new Vector2(0, 18f * MetersToPixels) (MetersToPixels is = 15f). The gravity in the world is equal to (0, -9.8f). My ...
0
votes
1answer
120 views

Top down 2.5D game with fake 3D strategies [closed]

I'm looking for an idea for a 2D game I'm trying to develop. I was thinking about a beautiful game design when I ran into this game: Don't Starve. Now I'm trying to figure out what kind of techniques ...
2
votes
1answer
37 views

Making a Video Splash Screen for an Android Based Game

I'm planning to make a video-based splash screen for the simple game app for Android under client's cigarette brand project. I was thinking if can this video file type, AVI, run on Android or not? ...
0
votes
1answer
74 views

Dealing with “jumping” sprites: badly centered?

Thing is, I've used darkFunction Editor as a way to get all the spriteCoordinates off a spriteSheet for each individual sprite, and parse the .xml it generates inside my game. It all works fine, ...

1 2 3 4 5 22