Tagged Questions
5
votes
1answer
193 views
Implementing Vehicles in your game
In the game i am creating as an hobby (learning is the primal goal of it all) i plan to implement a space ship that the player can enter and use to explore it. I tried to search the internet for the ...
1
vote
2answers
151 views
Implementing Explosions
I want to add explosions to my 2D game, but im having a hard time with the architecture. Several game elements might be responsible for explosions, like, lets say, explosive barrels and bullets (and ...
0
votes
2answers
144 views
Game Architecture doubt on variable access
Im having a hard time figuring out a solution to a problem that seems it should be easy to answer but since i cant come up with a good solution I bid your knowledge:
In my game i have a state manager ...
1
vote
0answers
140 views
Weapon Class Organization
Im making a game and i want to organise my weapons, and im having a few doubts on not only the best architecture but also on how to use it properly:
The First approach is to make a single Weapon ...
8
votes
3answers
274 views
Object of arrays or array of objects?
I'm making a management sim game, something along the lines of Roller Coaster Tycoon. I want to know what the best way to structure my world objects is so to maximise performance.
Let's say I have ...
1
vote
2answers
356 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
223 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
343 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
180 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
246 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
123 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
165 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
171 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 ...
3
votes
2answers
515 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
94 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 ...