Engine-design related questions. How code is structured.

learn more… | top users | synonyms (2)

0
votes
2answers
99 views

making different kind of bullets

I have an enemy which shoots 3 different kind of bullets. They are of different sizes, speed, and representation (rectangle, oval, and a more classic bullet). Should they be 3 separate classes or ...
-1
votes
0answers
77 views

Logic in an Object Oriented Architecture [closed]

Good evening. Recently I've been thinking of making a simple TBS game in Java for fun and I was wondering if my logic is correct. Basically, I have the following classes: public abstract class ...
4
votes
1answer
71 views

Game State and Configuration via Events

Often "singletons" are problematic for testing, so with my next game I'm trying my best to avoid them. But there is bunch of data (configuration or game state information) that different parts of my ...
2
votes
1answer
83 views

Manage VBO/VAO in a graphic engine

I'm trying to make a 2D Graphic engine for training me. I've actually made it with immediate draw and I've made the renderer outside (so I can switch between OpenGL and DirectX). How can I manage ...
0
votes
0answers
28 views

Refactoring Sprites to their own classes OpenGL es 2 [closed]

I was following along with http://www.raywenderlich.com/9776/how-to-create-a-simple-2d-iphone-game-with-opengl-es-2-0-and-glkit-part-2 and I've hit a wall. I can't for the life of me figure how to ...
1
vote
0answers
40 views

Cyclic dependencies between classes [migrated]

I am having troubles with dependencies between two classes. The problem is the following: I got two classes, Timestamp and Exception. Exception is abstract and all possible exceptions derive from ...
-3
votes
0answers
101 views

Game server architecture best practice [closed]

This is my MMO game server diagramm. MainServer: redirect player to GameServer Check for updates etc. WebServer - for website PatchServer - control the update downloads GameServer - ...
1
vote
0answers
40 views

Paylines and Pay dots in Slot Game

I'm working on a HTML5 slot game and completely stuck on the pay lines and the dots that produce the lines from 1 end to the other. Can someone tell me what's the logic behind generating random ...
11
votes
4answers
692 views

Game architecture / design question - building an efficient engine while avoiding global instances (C++ game)

I had a question about game architecture: What is the best way to have different components communicate with each other? I do really apologize if this question has already been asked a million times, ...
1
vote
1answer
42 views

Resynchronize game state on reconnect

Suppose in a multiplayer first person shooter game that a player loses their connection. On reconnect they need to synchronize with the current game state. But while they are getting a snapshot of the ...
4
votes
2answers
298 views

Component based game engine and dependencies - singletons [closed]

I am thinking about how to create component based game engine. I understand that all things should be very similar as in Data Oriented Design (each object is a collection of various structures as ...
2
votes
1answer
217 views

Making up everything from single pixels

I recently saw a game which looked a bit like minecraft, but it was a RPG. The enemies in this game consist completely of voxels and if they die, they collaps and every single voxels falls down, ...
0
votes
0answers
50 views

Syncing entities in a totally shared multiplayer environment

Typically, networked games designate a server (or host player) as being authoritative over all state shared between the players. Clients still simulate their own state, but also continuously ...
1
vote
1answer
118 views

General Sequence of Events for a 2D shooter

I'm having some trouble understanding ways to sequence events in my game. Assume the game is data driven, what is the best way to control the events? Do I have some sort of EventSequencer that loads ...
1
vote
1answer
212 views

CPU usage, game loop and sleep()

I've read about this topic on numerous discussion sites, but I can't seem to find a clear definitive (up-to-date) answer, and hopefully this will me some more insight: I've read the excellent game ...

1 2 3 4 5 35
15 30 50 per page