Questions tagged [software-engineering]
Software engineering is the design and development of software as it applies to the game development field. Questions using this tag should be about theoretical concepts and practices as relates to the task of creating or designing software. This tag should not be used simply because a question involves programming or contains code.
639
questions
1
vote
1
answer
47
views
How to structure a complex inventory system in Unity?
My inventory needs to deal with different Item types. Item is my base class, which is extended by Armor, Weapon, Spell, Scroll and I might add more in the future.
All items have an interaction on ...
1
vote
1
answer
55
views
Correct way to manage managers and controllers in Unity
I am having a bit of a headache right now about my controllers:
Ive got a bunch of managers in my game, for example
A MasterController to manage most serious stuff like pausing or turning off input
...
1
vote
1
answer
65
views
What is the simplest way to enforce/remind people to set a variable in a subclass when the code is dynamic?
I have a base class for Abilities. This is a point and click game, therefore I have Click, Hold and Drag subclasses.
What I need to do is remind myself to set the player's AI state to Ability when it ...
3
votes
2
answers
1k
views
Decouple game entity from its owner when logic depends on it
In my real-time multiplayer game, there are multiple entities that are very interrelated and whose logic is very related to the player who owns them. I don't think I can decouple the classes from each ...
0
votes
0
answers
38
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 ...
0
votes
0
answers
33
views
How to implement graphics API functions like setUniform on a cross-platform shader in VLang?
I've been working on a C++ game engine for a while, but I decided to scrap the project because doing it in C++, despite my best efforts, I could feel the technical dept building. As such, I switched ...
0
votes
1
answer
92
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...
...
1
vote
1
answer
241
views
How do programmers distribute their games from custom game engines?
I am currently reading tons of books about game engine, real time rendering, animation, physics... but I could not find any description of how game developers who built their game with their own game ...
1
vote
2
answers
163
views
How to implement C# methods that automatically get called in the game loop, like Unity's Update() etc.?
I've been working on my own game engine for some time, I ideally need a way to create global function implementations to make it easy to do things within the game loop.
Heres an example:
...
1
vote
1
answer
87
views
When should I call the physics simulation within the game loop?
I am thinking about where to call the physics simulation. The current situation is that I first update the entities and then the physics immediately before rendering. As you can see in the following ...
2
votes
1
answer
362
views
What design pattern should I use for adding functionality
I am making a tile based roguelike game with different objects in the world, like Doors, Security Cameras, Storage Shelves.
With that, there are objects that have an inventory, can detect the player, ...
2
votes
1
answer
158
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 ...
1
vote
0
answers
24
views
LibGdx switching between multiple UI panels
Let's say I have a game screen with a game world stage and UI stage. UI has a build button in the corner which should open a full screen build menu window/panel while hiding game world and the ...
1
vote
0
answers
69
views
When to use the same class for both client and server versions of an object, vs. when they should differ
I am learning about networking for game development and need some insight.
My knowledge of Unreal Engine is that it uses RPCs and replicated variables for actors. I also know that Unity has Networked ...
0
votes
1
answer
53
views
How to handle different components of the same entity having different indices?
I'm currently working on a little ECS project and a couple doubts came to my head when dealing with systems.
Let's say I have a model component, a position component and a scale component. Each ...