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.

Filter by
Sorted by
Tagged with
0
votes
1answer
39 views

How to deal with data that needs to be accessed by all objects?

I have a World class that currently only has one instance. It has data and methods that need to be accessed by all other game objects. Right now I'm hardcoding a ...
4
votes
3answers
1k views

Is an ECS viable in garbage collected languages?

I've done some research on Entity Component System architectures. Right now I have a convoluted OOP implementation which I'm planning on rewriting, so I was considering switching to a different ...
0
votes
1answer
73 views

Refactoring fighting game Movement class responsibilities

I'm a web developer, new to C# and trying to learn Unity. I've learned the C# syntax, I understand how to write working code, although I'm having a hard time understanding when and to what classes ...
0
votes
2answers
106 views

How to replace if/else/switch with polymorphisim

For a long time Robert Martin has been advising against if/else/switch branching logic and instead rely on the polymorphic behavior of different types. ...
0
votes
0answers
31 views

How to design a character damage system with ECS architecture?

I am developing an game with ECS architecture and trying to design a character damage system. Does the following design fits into ECS conception and will it be extendable in future? I have an ...
0
votes
1answer
36 views

The Architecture of a Scrollable Retro Menu Navigation System

I've been trying to research on this topic for quite a while and found barely any useful information. What I want to achieve: Replicating a scrollable menu navigation in Unity, like shown here. It ...
0
votes
1answer
42 views

It is possible to process data on relay servers?

I have a small game engine done in Java, and re-creating it on C++. While re-creating it i've decided on adding basic p2p online multiplayer. However, after reading more about networking, there are ...
6
votes
2answers
936 views

When or why would someone use a programming language (Swift, Java, C++, Rust etc…) over an engine like Unity?

Everytime I've read about people asking whether they should write their game in C++ or Unity, Unity is usually the default answer, unless they want to go through the hassle of creating an engine by ...
0
votes
2answers
44 views

OBJ file has more vertices than normals

Here is a Pastebin of my OBJ file created using Solidworks 3D https://pastebin.com/6MgQBF8J I don't understand how the number of vertices (645) can be larger than the number of normals (306) I ...
0
votes
0answers
94 views

Supporting multiple graphics apis

I would like to provide support for switching between both OpenGL and Vulkan in my game (and potentially DX12 later). Currently I only know OpenGL so I am working on that. I have read a lot of posts ...
1
vote
1answer
38 views

Translating conditions (“If A has B, then true”) into objects that satisfy them (“A has B”)

I have a system where I'm sifting through a large number and variety of objects in my game, looking for objects that match an arbitrary search criteria that can be simple or complex. For example, ...
0
votes
1answer
70 views

Should a server run all maps in one loop, or a thread/game loop per map?

I'm working on a real time multiplayer browser-based game. The game is top down on variable size tile based maps. There is no central map where all players come together, the entire game plays out in ...
1
vote
1answer
58 views

How to manage in-game factions, alliances, federations, etc

So this question is code or engine agnostic but, I’m looking for ideas on how a game can keep track of a pre-determined number of factions or alliances. For example, say I made a space game that has 2 ...
0
votes
2answers
29 views

Best practice where to store Projectile Damage amounts?

I have a projectile and an enemy, both with colliders. On the projectile script, I'm destroying the projectile OnTriggerEnter: ...
0
votes
1answer
105 views

How can I avoid coupling between units and their environment?

Currently in the process of making a game like Dwarf Fortress, so without graphics. I'm mostly thinking about how I want to implement everything. While writing code I keep stumbling on general game ...
0
votes
3answers
69 views

How do I show only the level in monogame? [closed]

How do I remove the blue background shown here So that only the level is visible without making the sprites/map larger or the window smaller?
0
votes
1answer
22 views

Is it okay to update the graphical handlers in the same function where you render them?

I have a class called 'GraphicalHandler' that all my graphical handlers inherit from the main game loop. The class manages a static vector of pointers to all instances of itself. I can then call the ...
0
votes
1answer
79 views

Animating from json file in pygame?

I have got a json file and I am trying to load the single sprites from that file but I gives this error after a few loops and also the animation is not smooth(gets stuck) error: ...
0
votes
0answers
76 views

is there any different solution for different buildings different behaviours

I'm trying to make different behaviours for workers of different buildings, let's say an agricultural worker would need to sow wheat seed and collect the wheat grain when it's grown. let's call that <...
0
votes
1answer
54 views

Building a unified interface for a swap chain in both DirectX 12 and Vulkan

Most objects in DirectX 12 have natural analogues in Vulkan, e.g. VkInstance = IDXGIFactory ...
1
vote
1answer
116 views

Instantiating GameObjects in Custom Game Engine

So,i'm having a bit of an issue with instantiating my gameobjects into to universe(My Scene object). I can create an empty object from scratch and populate it from there with ease,my problem starts ...
3
votes
2answers
272 views

Game Architecture: Class leaking into almost all files

We currently have the problem that our main class GameController is being pulled into every backend file in our game. We're wondering what are common solutions to this problem. Here's a bit more about ...
2
votes
1answer
131 views

Handling complex selection mechanics in RTS-style game

When we look at complex RTSs where a simple left button mouse click can mean twenty or more different things, depending on the game and UI state, the code handling this interaction and assigning the ...
0
votes
1answer
74 views

What does it mean to develop a VR game from the ground up?

Some virtual reality games are advertised as being created from the ground up for virtual reality. What does this mean exactly? What are some of the differences between developing a 3d pc game and a ...
0
votes
0answers
20 views

Formula to calculate Level and Current Experience from Total Xp [duplicate]

So I'm building a mobile game where I have simple XP progression system that goes like this: Level1: 0-399 Total XP Level2: 400-1199 Total XP Level3: 1200-2399 Total XP So basically for the first ...
0
votes
0answers
94 views

How to load a PNG in pure C

PNG loading: I've been creating a game engine for almost a year, and since the start of the development, I have been using stb_image for loading images. It ...
-1
votes
2answers
115 views

Why do we have to use a fractional numbers in the graphic engines (2D/3D)? Why integers are not enough?

Maybe it'll be a super beginner question but can someone explain me why do we have to use a fractional numbers (floats, doubles) ...
0
votes
1answer
156 views

How do I connect Unity to a server backend developed in .net core?

I'm currently running to a wall in my game development and I need now some discussion to clear my mind... In my mind I have a plan for some little online game (focused around clicking and idling), ...
0
votes
0answers
38 views

Dynamic spawn system

What are good approaches or patterns to structure a dynamic spawn system ? It should be able to "create" entities by their type-ID based on a set of rules which are able to change dynamic during ...
1
vote
1answer
55 views

How to choose what to use in Java: Enums or Objects?

I'm in a dilemma over using Enum Types or using class objects in that particular part of my java project. Let's suppose I have an array where I constantly add and remove things from it, but I also ...
-2
votes
1answer
60 views

Security in Unity

I have a public int variable in my game for number of coins. It's public because it must be accessed in other scripts and scenes (for when you want to buy levels, character,etc). I want to use anti-...
0
votes
0answers
93 views

Design decisions in building a 3D Rendering Engine using Vulkan in C++

I'm starting to learn the core concepts and features of the Vulkan API. I'm following the tutorials that can be found here: vulkan-tutorial. I'm at the point of getting ready to implement the code to ...
0
votes
1answer
110 views

Managing large amounts of data and processes for an economy management game

I'm making a management game in the vein of Anno or Stellaris, but I'm unsure how to manage all my data efficiently. Short example: the player controls multiple islands. Each island has factories on ...
4
votes
2answers
1k views

Which parts of Doom (1993) are open source and which are not?

As the original publication of the source code states, you still need an original copy of the game: https://www.doomworld.com/idgames/idstuff/source/doomsrc What exactly do you need from those ...
0
votes
1answer
47 views

How to communicate to an inventory item which character it's being used on?

Currently, I have an Inventory that is a ScriptableObject, which means it's not tied to any specific game object or player ...
1
vote
0answers
101 views

Avoiding Global Variables in Event Driven Programming

First off is "procedural event driven programming" a thing? My question is about global variables in the context of an event driven program that doesn't use OOP... I have written a simple Snake game ...
4
votes
3answers
566 views

Is ECS an object-oriented design in disguise? (rather philosophical/technical) [closed]

Correct me if I'm wrong, but having read a lot about the ECS-Pattern in general and in the context of current game engines I am beginning to wonder if the ECS-Pattern in it's core is hardly more than ...
0
votes
1answer
294 views

Multiplayer Game Server Input vs Tick

I'm building a game server for a turn-based RPG game, where the players control their characters through a web interface ( think kind of like a Jackbox Party Pack game, where there's a screen that ...
11
votes
2answers
5k views

Is it a good option to simultaneously work on a game and a game engine? [closed]

I'm considering this, now I work on 3d game but I want also to make in slow tempo, iteratively a game engine is it a good choice? The game what I working on is with non custom engine (Unity, Unreal ...
1
vote
1answer
68 views

Even if one client port will be simple to write without it, should I still use an engine?

So the idea is to create a TRUE REAL TIME strategy game that is working as android and IOS app, and also as web browser game. Players should be able to play on all their devices. There will not be ...
0
votes
1answer
34 views

Ways to track login/loading progress dynamic?

Lets say we want to add a dynamic "loading bar" to our server-client game... the player presses on "login", a bar appears and shows the percentage of loaded assets and configurations from the server. ...
2
votes
1answer
51 views

How to replace texture maps on models in a packaged game?

I'm trying to do an experiment. I'd like to do some object masking to the assets inside of a game, so during run time, when you are playing, they're texture maps are replaced by the masks. The masks ...
0
votes
0answers
21 views

most flexible way to implement a buff /debuff system for a RPG game [duplicate]

I'm making an RGP board game where I have different heros, each one of them belongs to some types for example ("Aatrox" is a Dragon and a Ninja hence he belong to these two types),and each player has ...
2
votes
1answer
354 views

'Destroyed Actors' and 'Save Games'

Background Our team is creating an adventure platformer, and I have been tasked with creating a Save Game system. Our game features the usual progression systems, and is relatively linear. Approach ...
1
vote
1answer
145 views

Why aren't game mods allowed to talk to the outside?

Sorry if the title is a bit obscure, I didn't know what to call this. I recently got into mod making and thought of a mod which is able to control Spotify through in-game commands, using Spotify's API ...
0
votes
0answers
62 views

“Systems” needed for a box-pushing game

I already have an idea for a game. I also have a few years of experience with casual programming and game dev, and I know the messy while loop I had until now will not be enough for my next project. ...
2
votes
0answers
170 views

Structure for a strategy game

I am making a strategy game like Age of Empires. It's a pretty big project and I need a clear game structure. I have defined a Game_Object class with variables ...
0
votes
1answer
267 views

Engine for a Football Manager Type game (data driven, menu clicking) [closed]

A friend and I had started developing a football manager two years ago, but ultimately squashed the whole thing because we found ourselves in a mess with developing UI and saving/loading. The basic ...
0
votes
1answer
26 views

Terms of integrating 3rd party sdk and libraries in your engine

I am developing my own engine and integrating Bullet Physics. Now Bullet Physics is open source under Zlib license. My concern is, can original owner change the license later on to paid and how it ...
3
votes
1answer
164 views

Mob generation design - is creating a class for each mob efficient?

I'm working on an RPG game for my coursework project. Everything is going fine but I've reached a stage where I do think that my project's code is not the most efficient. Here I have a constructor of ...

1
2 3 4 5
12