Java is both a popular programming language and runtime environment which allows Java programs to run unchanged on most hardware and software platforms.
74
votes
11answers
4k views
Float or int for currency?
In a simple business simulation game (built in Java + Slick2D), which is more suitable to store the player's current amount of money: a float or an int? Some information:
Most of the transactions ...
40
votes
8answers
19k 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 ...
30
votes
6answers
3k views
What is a good file format for saving game data?
I need to save some custom game data. Map, player, etc.
All of them will have "sub objects". For example, a map and map will have an "array" of tiles. ie, hierarchical data. Hopefully nothing ...
21
votes
6answers
7k views
How can I improve rendering speeds of a Voxel/Minecraft type game?
I'm writing my own clone of Minecraft (also written in Java). It works great right now. With a viewing distance of 40 meters I can easily hit 60 FPS on my MacBook Pro 8,1. (Intel i5 + Intel HD ...
20
votes
4answers
789 views
How to implement a never-rebooting test world?
Am looking for ideas on how to do the following: I want to write a simple "world" in Java. One which I could start and then add new objects later at a later date to simulate/observe different ...
16
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 ...
16
votes
5answers
2k views
Can I develop games for mobile platforms in C++?
I have a good grasp in C++ and C and have also experience developing AAA game using C++.
Now, I'm shamelessly thinking to dive into mobile game development either in iOS or Android. Unfortunately, I ...
15
votes
3answers
3k views
Polling vs event driven input
I'm developing a game using polling for the input method. However, now that I'm delving deeper into the game menus and other UI components, I'm finding that I'd probably like to have event driven ...
15
votes
2answers
878 views
Graphics not being displayed on OUYA
I hope its not too early to be asking OUYA dev questions, but I just got my dev kit and I want to get my game running ASAP! I am using LibGDX as my framework for my game and launching the Android ...
14
votes
9answers
7k 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 ...
14
votes
2answers
303 views
Territory patrol planning
I am developing a game/simulation where agents are fighting for land. I have the situation shown in the picture below:
These creatures are walking around and occupying pieces of land they step on ...
13
votes
7answers
2k 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 ...
13
votes
4answers
1k 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?
12
votes
6answers
1k 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 ...
12
votes
2answers
2k 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 ...