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

learn more… | top users | synonyms

4
votes
1answer
2k 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 ...
9
votes
3answers
7k views

Mods for Minecraft Server - how does it work?

Minecraft server comes as a single jar. How are mods developed? How do they interact with the original jar? What is there under the hood? What technologies are involved there? I'm mostly a C++/Python ...
8
votes
3answers
1k views

Android threads trouble wrapping my head around design

I am having trouble wrapping my head around game design. On the android platform, I have an activity and set its content view with a custom surface view. The custom surface view acts as my panel and I ...
1
vote
2answers
764 views

[JOGL] My program is too slow, how can I profile with Eclipse?

My simple opengl program is really toooo slow and not fluid. I'm rendering 30 sphere with simple illumination and simple materials. The only complex computing stuff I do is a collision detection ...
10
votes
2answers
3k views

How do I tackle top down RPG movement?

I have a game that I am writing in Java. It is a top down RPG and I am trying to handle movement in the world. The world is largely procedural and I am having a difficult time tackling how to handle ...
3
votes
1answer
529 views

Online architecture guide

I am a newbie in gamedev, and I don't know about programmer's problems that can appear during development. So can you advice me some best practice for starting build new online multi-player game ...
5
votes
2answers
481 views

Physics in my game confused after restructuring the Game loop

I'm on my way with making a game in Java. Now I have some trouble with an interpolation based game loop in my calculations. Before I used that system the calculation of a falling object was like ...
1
vote
2answers
1k views

Slick 2D first trial error

I followed some advices to learn Slick2D and when I started doing the "SimpleGame" I got my first error. Does anyone have any idea of what is it and how to fix? Sun Dec 26 23:09:12 GMT-03:00 2010 ...
-2
votes
8answers
867 views

Where is a good place to learn how to develop games? [closed]

I'm brazilian and I want to learn how to develop a game in some college or something like that, but I don't know any place here to learn it. Here is not that good either to develop games, as we don't ...
3
votes
2answers
1k views

Managing animations

I'm developing a 2d game that requires sprite based animations. I was thinking about which is the most convenient way to manage many of these sprites all together with timings. I already know how ...
3
votes
1answer
848 views

Is there any way to get the HWND from a window in LWJGL?

I've started some experimentation in Java and LWJGL (via Slick), and it seems very solid. However, I have some legacy code that requires a HWND integer as a parameter. I'm not sure how I'd be able to ...
2
votes
2answers
4k views

how disable texture after drawing an object?

i try to make a textured object then draw other without (only colored). i had tried to play with glEnable/Disable(GL10.GL_TEXTURE_2D) , ...
4
votes
3answers
4k views

How to give delay in java

I wan tto give delay in java without using thread. I need to load images one by one with approx half second delay. Is there any way to do this other than thread because if I am using thread my whole ...
6
votes
2answers
878 views

Are there any game engines in C# or Java that are cross-platform and support multitouch input? [closed]

I'm looking for game engines (particularly 2D) that can run/create games for Windows, Mac, and Linux, and support multitouch inputs and gestures. I'm able to find many that meet the first two ...
2
votes
1answer
1k views

Why is this animation jerky?

I am trying to create a simple game on android but I am unsure the best way to do the game loop. Looking at the LunarLander sample the game loop just loops like a variable time step loop (elapsed = ...
3
votes
6answers
1k views

Should I go with Windows Phone 7 or Try Android? [closed]

I already know C# and am familiar with XNA. So it would make sense to develop for the Windows Phone 7, but would it be worth while to learn Java, get familiar with Android, and instead develop for ...
8
votes
4answers
4k views

Looking for JMonkeyEngine tutorials and documentation

I'm looking for tutorials and documentation for JMonkeyEngine, beside the material on the official website. Any clue?
2
votes
2answers
4k views

Arc'd jumping method?

Okay, so I'm making a platformer, and I wanna know how I can make a arc'd jump easily. Like what Mario does in super Mario Bros 1. Any ideas on a simple way to accomplish this?
4
votes
3answers
2k views

Java and Eclipse setup properly, how do I install JOGL or LWJGL? [closed]

I have my Java environment installed alongside Eclipse, and I was successfully able to create and run a new project (simple System.out.println("Yay I work!"); I have the OpenGL SuperBible, and I ...
13
votes
6answers
2k views

Am I hurting myself by not knowing C++ for game design?

Right now, I feel I am strong in both Java a C#. (Not much of a leap from one to the other really). While I don't expect a game designer/programmer is an attainable goal early on in my career, This ...
3
votes
4answers
1k views

How to properly multi thread an RPG

I am working on an RPG type game in Java and I would like to know a few things relating to threading, What is the best way to implement a "wait for this then do this" without hanging the whole ...
4
votes
1answer
380 views

Spriting engine on mobile platforms, OpenGLES

I'm writing a basic spriting engine for a blackberry app, and I want to know the best way to draw tons of sprites using the glDrawArrays() command. We have several sprites that move around the ...
6
votes
5answers
4k views

Killer Game Programming [Java 3D] outdated?

I'm thinking of picking up the book Killer Game Programming by Andrew Davidson, but its pretty old now. I know Java, and I've been messing with jMonkeyEngine for a few days now, but I'm curious to see ...
14
votes
8answers
4k views

How do I create tileable solid noise for map generation?

Hey guys, I'm trying to figure out how to generate tileable fractals in code (for game maps, but that's irrelevant) I've been trying to modify the Solid Noise plug-in shipped with GIMP (with my ...
3
votes
2answers
800 views

Mouse-driven Movement

I'm trying to write a game where player picks where they are going by just mouse-clicking on that position and it goes there (just like RuneScape's point-and-click mouse interface). I'm trying to get ...
17
votes
14answers
1k views

Advice for a first year CS major

I'm coming to the end of my first year of CS which has been primarily a Java based course. I'd like to get my feet wet with some game development but I'm not sure where to start. Some people have ...
3
votes
1answer
1k views

State of art shadowing technique for OpenGL on isometric terrain?

What's the most efficient way of creating shadows for object on a isometric terrain with OpenGL and JOGL? Note that this terrain is not flat and is not heightmap generated. Think it as another model. ...
18
votes
2answers
4k views

What are different ways to define items in an RPG like game?

I am casually working on an RPG type game in java but I am having trouble figuring out how I can have items that can do many different things without creating a different class for every item. As an ...
1
vote
3answers
916 views

What's the best open source physics engine to use with JOGL? [closed]

I have a past with jbullet but the existing jogl compatible sources and demos seems uncompleted. I have managed to implement it to an extent but still looking for a better documented engine with more ...
11
votes
2answers
12k views

How different is Java for JRE vs Java for Android?

I'm new to all this game developing, and I'm starting to learn java because I was told it was a great way to start. I want to later on create games for the android market, and want to get a good view ...
4
votes
1answer
121 views

Where can I obtain the latest stable aggregated builds of JOGL?

I have checked many different sites including jogamp but couldn't manage to find any zipped,rared or jared collection of builds and javadocs.
3
votes
1answer
2k views

Handling game states for Android

Currently developing a game for Android. I went through a tutorial to get sprites, loop, etc. up and running, and it all works fine. The way it is currently set up is that Main creates a canvas, the ...
4
votes
1answer
1k views

Best way to store a word list in Java/Android

I'm building a game where I form words (think Scrabble) and I need to have them validated in real-time, meaning that I need to have some sort of word list loaded where I can check if the word made ...
2
votes
3answers
261 views

What technology(s)would be suitable for the front end part of a Java web game?

As asked in a previous question, I'm looking to create a small MMO that will be deployed onto GAE. I'm confused about what technologies I could use for the user interface, I've considered the ...
6
votes
2answers
1k views

How to loop over a part of an ogg vorbis stream?

I'm successfully streaming ogg vorbis data to openAL with the Java library JOrbis, but now I want to loop over a part of this stream, e.g from 30" to 1'30". I thought that at the end of the loop, I ...
3
votes
1answer
118 views

Need some advice on a java api to use for a 'presentation display board' - based on game 2d/3d tech

As part of the project i am working on I am looking to produce some software that works on a LCD display (think call center info boards) and displays various graphs (the bars grow etc in realtime, so ...
11
votes
5answers
8k views

Is there an XNA-like library for Java?

I'm curious to know if there is an XNA-like library for Java; that is, a library that Handles the game loop - i.e. you just implement an existing method, and it will get called every frame. Handles ...
4
votes
1answer
2k views

New Vector Calculation for Elastic Collision of Circle and Fixed Rectangle

I am writing a fairly simple breakout-style game for Android phones. I have successfully detected the collisions between the ball(s) and bricks. The problem that I am having is in calculating the new ...
2
votes
2answers
310 views

What's the preferred way to put music in a java applet?

Is there an easy way to put music in a java applet? Preferably streaming so that it doesn't need to be preloaded.
10
votes
5answers
2k 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 ...
8
votes
3answers
4k views

Android differences (Dalvik+Java vs Old School C++)

Developing in Android is going to be different for me, having spent the last 10 years coding games in C++. What's the main differences / pitfalls / bottlenecks to developing for the Android? My big ...
8
votes
6answers
3k views

Which server platform to choose [closed]

I'm going to write a server for an online multiplayer with these requirements: Pretty simple turn based game (think a card game) that is played entirely on the server (security reasons) Must be able ...
8
votes
3answers
2k views

PacMan character AI suggestions for optimal next direction

Firstly, this is AI for PacMan and not the ghosts. I am writing an Android live wallpaper which plays PacMan around your icons. While it supports user suggestions via screen touches, the majority of ...
6
votes
4answers
769 views

Profiling server side game loop in java

I am looking for tips to profile the server side game loop of a Java program for CPU usage. I tried to use the TPTP plugin for Eclipse so far. The problem I am having is that it is really slow. For ...
13
votes
9answers
9k views

C# (Mono)/Java 3D Game Engine recommendation [closed]

Can you recommend a good C# game engine for cross platform (Win/Mac/Linux, I don't care about consoles) development? I've got some experience with raw OpenGL and I played around with Java bindings ...
2
votes
2answers
2k views

anyone knows any open skeletal/bones 2d animations framework for java?

Some examples could be the animations framework used in Aquaria, or in Crimson Legend.
13
votes
4answers
2k views

How can I implement a global high score ladder?

Are there any existing frameworks I can build on? Should I build my own? How can I prevent fake scores from being posted to it?