Skip to main content

Questions tagged [game-state]

0 votes
0 answers
52 views

I'm writing a game from scratch in C++, using the book Game Coding Complete as a guide. The engine in the book has an event manager which is used to communicate between the game's systems, such as ...
Vitamin C Plus Plus's user avatar
1 vote
1 answer
1k views

I've been trying to understand how best to approach carrying state over between scenes, and how to save/load game state. I've built an isolated project to focus on building out this approach. You can ...
Samuel Slade's user avatar
1 vote
0 answers
83 views

I'm trying to make an "Aim Mode" in Stride for a 3rd person, 2D platformer. The idea is that player presses (and releases) a button that activates Aim Mode, and Aim Mode stays on until ...
DusaWitch's user avatar
0 votes
0 answers
88 views

In a multiplayer chess game based on web where the server must validate the plays, store the current game state and provide the gameboard info to be rendered on client side, among other things related ...
Yago Biermann's user avatar
0 votes
1 answer
95 views

I've been looking into making a small game where you would walk around and do puzzles (perhaps do some combat if I can get the basic framework going). So far, Googling for general game patterns used ...
Oleg Pittman's user avatar
1 vote
2 answers
2k views

I need some sort of an if statement, which allows me to disable any input and increment score while I'm in the pause menu. The problem is that I don't really understand this kind of pausing code, I'm &...
imbruceter's user avatar
0 votes
1 answer
604 views

I'm trying to make a multiplayer platformer game. I can almost get client side prediction and server reconsiliation to work, but there is one issue that I just can't wrap my head around. Lets say that ...
Per Henrik Jakobsson's user avatar
1 vote
1 answer
221 views

I'm creating an online arena game server (moba) that players can play together. 2v2 or 3v3. The game is similar to Battlerite. I chose client/server architecture with deterministic server that tells ...
Mamad R's user avatar
  • 113
0 votes
0 answers
74 views

I'm having struggle with GameState. My custom GameState is child of Game State Base. GameMode (child of Game Mode Base) is updating some variables in my GameState. But my clients have two separate ...
hagier's user avatar
  • 101
0 votes
0 answers
234 views

I have a turn based card game node app, and in development env I store all game states in memory (1 object per "game" in a big parent object) since these objects are constantly changing and ...
Roy's user avatar
  • 1
0 votes
1 answer
639 views

Lately I've been using game state stack implementation from a book SFML Game Development and I've stumbled upon a problem with passing data between states. In this implementation State constructors ...
wixy0's user avatar
  • 77
0 votes
1 answer
880 views

Problem i want to implement a pause state and with a simple conditional inside the update of PlayState is very very simple. However i think that the pause has to be another state in the StateMachine ...
WhySoBizarreCode's user avatar
0 votes
1 answer
451 views

I am new to game networking. In various articles on the internet, I found that there are usually two loops on the server: one for physics updates and the other for sending snapshots to the client (...
Igor Sushencev's user avatar
0 votes
1 answer
107 views

How can I disable pause() in game_loop() once game_over() function is called? game loop ...
Gayatri Rout's user avatar
1 vote
0 answers
168 views

I have this (typical) base class: ...
Battyhal's user avatar

15 30 50 per page
1
2 3 4 5