Skip to main content

Questions tagged [architecture]

How code is structured. For questions on the internal design of a game engine.

0 votes
0 answers
64 views

How do modloaders get created?

This is a fairly general question but I was wondering how modders are able to create software that essentially make a game execute code that it shouldn't know anything about. Some games are offering ...
ASecondRandomPerson's user avatar
0 votes
0 answers
69 views

For an isometric adventure game, what is a good way to store the objects in 3D?

I'm creating a game in C++ and raylib. This is a real-time isometric game, so it is technically 2D graphics, but the rooms have a 3D structure because there will be many blocks and other objects that ...
DrZ214's user avatar
  • 348
2 votes
1 answer
84 views

How to Handle Complex Side Effects and Event Sequencing in a Turn-Based Game Like XCOM?

I'm trying to make a turn-based game like XCOM, and I've run into an architectural problem that I haven't been able to solve for quite a long time. In my game, logic is completely separated from ...
Владимир Лопаткин's user avatar
0 votes
0 answers
31 views

multiplayer game using express(for login, registration etc..) and socket.io(for game-actions) what is architecture and how to scale it horizontally?

Hey please sorry if I sound dumb and correct me! So, I am building multiplayer game using react.js,express.js and socket.io and now really want to deploy after building so and also i want to make my ...
Vivek Shah's user avatar
0 votes
0 answers
63 views

How to load shaders in a game engine asset loading system?

I am making an asset loading system for my game engine, which is written in C++, and the idea I had in mind is that for each asset there is a corresponding loader class. Although not entirely the same ...
steamdog's user avatar
1 vote
1 answer
110 views

Communicating between Components and systems: ScriptableObject vs MonoBehavior vs Events

could you please guide me or help with sane architecture basics in Unity? I'm making a tower defense game and I'd like to have modular approach without using frameworks, so no ECS/DOTS/SOAP I want to ...
Fen1kz's user avatar
  • 195
0 votes
3 answers
244 views

Switching between turn-based and real-time with stateless state machine

I am working on a real-time rpg with a turn-based combat. Currently I have standard state machines for a game state (real-time/combat) and for characters. However I can't seem to find a decent way to ...
Jamek's user avatar
  • 21
1 vote
0 answers
69 views

Restructure OOP Architecture for two classes that are currently circular dependent

I'm working on a simple 2D game using C++ and SFML. In this game, I have a class WorkbenchBlock which inherits from class Block. ...
CyberMonkey0925's user avatar
0 votes
1 answer
132 views

Need help on structuring my window class and game class

I'm trying to create a simple-ish game/engine/framework thing in C++, and I'm trying to come up with my own code instead of following a tutorial so I can learn to do it in a freer and more hands-on ...
whitecloth's user avatar
0 votes
0 answers
33 views

Problems with compiling with llvm and gcc, while trying to link external libraries to EngineCore.lib and finally linking core to EngineEditor.exe

Help me I Cherno's followed game engine series and branched to add 3D capabilities. I am having issues while linking libraries, at first I just wanted to share Game Engine code with friends, but not ...
Vxxssv's user avatar
  • 1
0 votes
0 answers
39 views

How to Prevent Subsystems from Responding to Events from Other Game States

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
0 votes
0 answers
65 views

Command Pattern or/and Event Handling porgramming paradigm?

I have created a dynamic library that contains all the tools I want my game executable to have. Additionally, I want to create a world editor/tools for my engine to be more user-friendly. I'm ...
Benzait Sofiane's user avatar
0 votes
0 answers
76 views

SDL2 Events how to avoid monolithic control statement?

I'm using SDL2 in my game engine and I'm trying to figure out how I can prevent having a monolithic control statement like this: ...
Konjointed's user avatar
0 votes
1 answer
130 views

Singletons as presented in Game Engine Architecture by Jason Gregory

I am reading the amazing Game Engine Architecture 3rd edition by Jason Gregory, but I have trouble understanding the singleton part, more particularly the part dealing with subsystem start/shutdown... ...
Benzait Sofiane's user avatar
0 votes
2 answers
636 views

What’s the benefit of breaking code down into other classes? [closed]

Sorry if this isn’t the proper spot to ask, but something I struggle to wrap my head around is the benefit of breaking down code into smaller pieces on the surface it seems to make sense I think you ...
Konjointed's user avatar

15 30 50 per page
1
2 3 4 5
95