2
votes
1answer
72 views

Informing objects within a particular state of the world state

Following the State pattern, every state in my game is a derived object that reflects a particular segment of the game (MenuState, PlayingState, GameOverState, etc.) Each of those state objects holds ...
0
votes
1answer
100 views

How to prevent a circular dependency between an entity and its state? [closed]

I've read this question, and I think it has some good answers and discussion, but it appears to focus primarily on rendering. I have a different problem in the management of a game entity's state. ...
0
votes
0answers
33 views

What's the best way to handle a game loop in C++? [duplicate]

I want to know what the best way to handle a game loop is in C++ (or any OOP languages). For example, if my game has two rooms - one is the main menu and the other is level 1. I would normally have ...
0
votes
2answers
195 views

Is networking programming quite generic

I have only looked into the basics, at least I assume it gets more complex. So does network code really change from one game to the next or is it pretty much portable. For example I can create say a 2 ...
0
votes
1answer
70 views

How are vertices determined complex geometries in an ever changing game state

For example say you wanted to draw a 3D cube you can define an array of hard coded vertices using float3, here is an example. http://msdn.microsoft.com/en-us/library/windows/desktop/jj552949.aspx But ...
0
votes
0answers
560 views

How to implement a stack of game states in C++ [duplicate]

I'm new to C++ and as a college proyect I'm building a 2D platformer with some classmates, I recently read that it's a good idea to have a stack of gamestates instead of a single global variable with ...
0
votes
2answers
628 views

Game state management?

I'm running in circles here trying to figure out how to implement game states! Many of the articles I have read use an abstract class that game states inherit, and another "manager" class that ...
8
votes
5answers
611 views

How can I update Display settings from an Options screen without restarting?

I'm currently creating a 2D RPG in C++11 with Allegro 5 and boost. My goal is to somehow update my game settings when an option is changed in the Options Menu. I don't want to force the user to ...