Tagged Questions
1
vote
2answers
252 views
How to make a “GUI In Game”?
My game is very GUI based, the way how it works is that I have a GUI class, which contains the basic GUI elements, a parent GUI object, and a copy of the main game's class object. The game starts out ...
3
votes
1answer
210 views
Where should I put my mob rendering code?
I'm making a simple LWJGL game. However, I'm a bit confused about rendering. So I have a Mob class and a TriangleMob is a basic enemy.
package daniel.entity.Mob;
public class TriangleMob {
...
0
votes
2answers
319 views
adventure game architecture
I would like to make an adventure type game functioning similarly to machinarium or broken sword. The only way I can think of doing this is to draw an image as a background on a canvas and use some ...
1
vote
1answer
152 views
Alternative to JSF for browser-based 4X game [closed]
I intend to make browser based MMO game. Something from Master of Orion genre but with more accent on command ship operations.
I've done some tests and research and turns out that indeed, for ...
2
votes
1answer
166 views
Abstract skill/talent system implementation
I've been making small 2D games for about 3 years now (XNA and more recently LWJGL/Slick2D). My latest idea would involve some form of "talent tree" system in a real time game.
I've been wracking my ...
2
votes
1answer
120 views
How to manage my model
I have in my model, a list of Classes : Player, NonPlayerCharacter, Monster, Item, NonMovableItem etc
With AndEngine I've a list of sprite for each piece of my model,
How can I manage the ...
0
votes
2answers
133 views
Java applet game design no keyboard focus
THIS IS PROBABLY THE WRONG PLACE. POSTED ITHERE (STACKOVERFLOW)
I'm making an applet game and it is rendering, the game loop is running, the animations are updating, but the keyboard input is not ...
1
vote
1answer
155 views
Game Engine Collision Handler
I'm making a collision handler for a Java game engine. I made an interface called Collidable. I have a method called onCollision which takes the parameter of my Engine Game Object.
public void ...
0
votes
0answers
467 views
Best practices in Game architechture design [closed]
I have to create a game using Java. It is a simple game with a mix of rules from Texas Hold'em and Scrabble. The purpose of this project is to cover all software engineering practices. I have some ...
3
votes
2answers
468 views
Design pattern for creating multiple enemies
I'm currently attempting to implement a factory method pattern for creating multiple different enemies after loading data from a file. But I'm having second thoughts on what would be the best design ...
1
vote
2answers
91 views
Refresh a single view
The game I'm working on is based on different levels. I can use different activities or only one activity with different layouts ( or maybe only one layout, you have to apologize me but I'm studying ...
2
votes
2answers
273 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 ...
-1
votes
1answer
247 views
When should one use the Abstract, Implements, or extends keywords? [closed]
I'm just now moving from a beginner to intermediate level android programmer in the java language. i can successfully write a game framework of classes that work together to accomplish a task beyond ...
4
votes
3answers
1k views
GameState management hierarchical FSM vs stack based FSM
I'm reading a bit on Finite State Machines to handle game states (or screens). I would like to build a rather decent FSM that can handle multiple screens.
e.g. while the game is running I want to be ...
2
votes
1answer
1k views
In a component/entity system, what's the correct way to implement entity-specific components?
I'm trying to create a basic C/E game engine for Android, and I'm trying to re-create pong as a basic warm-up. I currently have a EntityManager class that contains a list of all the UUIDs for its ...
2
votes
1answer
240 views
Implementing Object Composition
I'm trying to structure my game object classes similar to how it is done in this article. One way to implement this strategy is discussed in this StackOverflow question.
Following the strategy ...
10
votes
2answers
3k views
how should i develop my android game efficiently?
I have attached a image of a flow chart that i made in paint.
The image shows how i want to develop my game. I want a game that runs great with smart coding that is easy to update and ad features ...
2
votes
5answers
833 views
How should I implement side-scrolling level design?
I'm working on a college project using the educational Java framework Greenfoot, and as stated above we're making an r-type clone.
I've been looking at using an array of strings to populate the ...
1
vote
1answer
138 views
3D Location Handling
I am thinking about making a simulator type game that will involve having lots of small objects in a 3D space. What is the typical solution for handling these objects? The first thing that comes to ...
1
vote
2answers
465 views
Enemy class architecture
I'm developing a game for Android in Java. I would like to know how a good Enemy class architecture could be implemented.
I've created an abstract class called Enemy. It stores common properties like ...
2
votes
3answers
510 views
Design pattern on class level, how to do separation of concerns through mvc or alike?
Say i had a Monster class
public class Monster {
}
Now this class has a set of properties like
int health
int speed
int weaponDamage
which details the core information about the monster.
in ...
0
votes
2answers
258 views
Question on methods in Object Oriented Programming [closed]
I’m learning Java at the minute (first language), and as a project I’m looking at developing a simple puzzle game.
My question relates to the methods within a class. I have my Block type class; it ...
2
votes
3answers
709 views
Pub/Sub or message passing in multiplayer server backend?
For my masters thesis I'm going to develop a scalable multiplayer server for locationbased games. It's going to be a "service oriented architecture" e.g. one dedicated service for positions, one for ...
2
votes
3answers
562 views
Game World structure in classes
I am developing 2D game in java, and I want some basic in-game scripting (spawn enemy, spawn item, change enemies properties).
What I don't know is, how to divide the game world, to easily work with ...
8
votes
5answers
988 views
What is Java missing that might make it difficult to develop fully-featured 2D games?
Without using any external libraries, does Java, including all officially supported APIs give you enough to develop fully-featured 2D games? The reason I ask is that I hear a lot of "bad-mouthing" ...
19
votes
4answers
740 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 ...
4
votes
3answers
5k views
Server-side Architecture for Online Game
basically I have a game client that has communicate with a server for almost every action it takes, the game is in Java (using LWJGL) and right now I will start making the server.
The base of the ...
6
votes
6answers
1k views
Best resources to learn Game Development from a Java background?
I'm an enterprise Java programmer, however something I've been interested in and what got me into the whole programming thing was the idea of being able to create a game.
Just wondering if anybody ...
5
votes
2answers
842 views
Java game design question (graphical objects)
I'm beginner in game development, in Java and here on this site too and I have a game design question. Please comment my idea:
I have a main loop which call update and draw method. I want to use an ...
3
votes
0answers
274 views
Android threads trouble wrapping my head around design [duplicate]
Possible Duplicate:
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 ...
7
votes
3answers
905 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 ...
3
votes
1answer
455 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 ...
