All Questions
Tagged with architecture java
83 questions
2
votes
1
answer
223
views
Programming Singletons vs Static classes
I've been developping a 3D app for some time and I remember at some point I started to need to pass data arround in unrelated areas of the program, where it wouldn't make much sense to pass them ...
0
votes
0
answers
192
views
Good design for player input handling in 2d game
I am working on a java 2d game. Keeping things short, I'd like to improve my current input handling. Basically the player can move up/down/left/right with WASD, perform an attack with mouse left click ...
0
votes
1
answer
347
views
Structuring a game in Java
I am currently programming my first game in Java and I'm having trouble structuring it.
My biggest concern is regarding the game loop.
Currently I have implemented a class with only a main function ...
0
votes
0
answers
580
views
Game server multiplayer architecture
I'm planning to build a big browser multiplayer game with gameplay very similar to agar.io but rpg.
Game will be containing rooms as It's done in agar.io. 50-100 players max per room. Realtime. 10ms ...
1
vote
0
answers
113
views
Efficient way to store “item” objects in a simple game
I am developing a simple text-based game from scratch in Java. In this game, the user is able to collect items and store them in an inventory.
My question is: how should I organize the internal ...
0
votes
1
answer
676
views
Good data structure for storing graph-like map
I'm creating a strategy-based kingdom expansion game, where you start with one city and try to expand as far as possible from there. All the cities fit on a hexagon-grid and are connected by the edges ...
2
votes
2
answers
1k
views
Catan Optimal Placement
Is it possible to calculate the best possible placements for settlements in Catan without using an ML algorithm?
While it is trivial to simply add up the numbers surrounding the settlement (highest ...
0
votes
1
answer
130
views
Can Mobile Games use Fragments instead of SurfaceViews?
All the tutorials of mobile games for android (such as this one), use the to display game objects. Most other applications tend to use an ...
0
votes
2
answers
715
views
Project organization for a multiplayer client-server game
I'm programming a game 100% in Java but I'm having some issues concerning the final games architecture.
I plan on having two separate projects: one that will hold the client side of communication ...
1
vote
1
answer
105
views
Composing Game Metrics
So I'm running into a bit of a roadblock with the way I'm currently keeping track of game metrics. By "metrics", I mean little bits of information that I can compose together to get useful information ...
0
votes
2
answers
114
views
Replacing harcoded strings used internally to locate stuff
The fields: (example)
...
2
votes
2
answers
2k
views
How to avoid using static variables
When developing with libGDX, you can often read, that your should not use static variables if you plan to eventually release your game on android later.
But while trying to follow that rule, I often ...
1
vote
1
answer
348
views
Designing a fluent API for card effects
I'm currently trying a develop a small game similar to http://www.estiah.com/.
Basically, there are 2 teams of 1 or more actors each, everyone with their same deck. Turn order is fixed and each card ...
0
votes
1
answer
113
views
Designing an efficient neighbour-networking system
I'm developing a game, which involves the use of nodes (buildings), and I need to implement neighbour networks that nodes can use to either directly or indirectly access other nodes. Nodes can be ...
1
vote
1
answer
444
views
How to keep the state of all games in the server?
i have a problem implementing a turn-based game server in java.
What i want is a way or a technic that let the server keep all the games state that are created in order to the client recover at the ...