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.

36 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
2answers
2k views

NegaScout with Zobrist Transposition Tables in Chess

I'm trying to put Transposition tables into my alpha beta scout. I do see an incremental speed boost I think toward mid or late game, however, even with a table size of 1-2GB, its may or may not be ...
3
votes
1answer
53 views

Storing stateful function-based actions in a JSON

System: My game uses an "ECS + event queue" architecture where every tick, various events change the state of JSON-able data. Plain JS objects. Problem: I want to be able to save the game-...
3
votes
0answers
121 views

How does an interruptive combat animation system like Metroid 2 work?

See here for reference. For the most part this game is a 2D side scroller with the expected platformer architecture: move left, right, jump, shoot, etc. Enemies move and you jump out of the way or ...
3
votes
0answers
66 views

Representing a high-resolution deformable solid in 3D

I am currently working on a design that will incorporate an object that can change size and shape. For an example, I'll use a brick of clay. It starts out with normal dimensions of 1"x3"x6", but that ...
2
votes
0answers
186 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 ...
2
votes
0answers
157 views

Selecting Dictionary item based on custom classes instead of keys

I am attempting to write my own path finding code for a game I'm working on that will implement a form of the A* algorithm. I store my nodes of the path finding system as a class called nodes and add ...
2
votes
0answers
822 views

Per fragment lighting with OpenGL 4.x tessellated model

I'm experienced with OpenGL 3+. I'm dabbling with tessellation shaders and have now got to a point where I have a nicely tessellated teapot/plane demo (quick look here) As can be seen from the ...
2
votes
1answer
557 views

Getting player cube to move left or right in relation to camera based on camera's rotation

Right now I'm trying to make the player cube move left, right, up and down in relation to the camera's rotation and position. I figured what I could do is create an empty game object, make the main ...
1
vote
0answers
49 views

How can I efficiently and safely represent and query game state in the logic programming paradigm?

After learning Dialog, I've discovered representing game logic using the logic programming paradigm is a lot of fun; the composability and non-locality makes it feel like some kind of superior ECS. ...
1
vote
0answers
50 views

How to reduce code duplication in a cross-platform renderer without tying the interface to one specific API?

I'm working on a game engine as a fun project over the spring+summer. I've decided that to allow myself to explore rendering APIs I'm unfamiliar with, and force myself to write reusable code, I'd ...
1
vote
0answers
150 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 ...
1
vote
0answers
632 views

Game Engine Class and Subsystem Architecture

I have a quick question for those who have experience coding their game engine and such. I was wondering what a better approach would be when designing my own game engine. Right now I plan on having ...
1
vote
1answer
2k views

How to design prefabs in Entity Component Systems

In Unity (and I presume other game engines) you can create "prefabs" which are blueprints for game objects. They contain a list of components, and default values for those components. Prefabs can be ...
1
vote
0answers
71 views

Trying to create a UE4 blueprint or script to recognize set shapes

I'm currently developing an indie game using Unreal Engine 4 and I've stopped developing it within the last week because I have hit a massive roadblock.. I am trying to figure out how to create a ...
1
vote
0answers
893 views

Game logic implemented using TPL / async / await, and performance of it

I'm working on a game, and as a typical game (here using Monogame) it uses frame based approach, where all logic happens in Update() method called every frame. As a consequence, any sequential logic ...
1
vote
0answers
272 views

Using GLFX.js on a full HTML page

I have a friend who is developing a game for HTML, and wants me to implement GLFX into the site page. The problem is GLFX was designed specifically for use with the HTML5 Canvas, which he isn't using, ...
1
vote
0answers
81 views

Game is responding very slowly?

I have a very simple app which removes buttons and re-adds buttons to certain layouts when a button is clicked. The problem is, this process is taking a very long time. My question is: How can I make ...
1
vote
0answers
515 views

Bold black bar on right side of game in Unity (Android)

I am trying to create an endless runner. I have already created a system to generate infinite backgrounds from an array of some. However, on running the game, I get huge black bar on the right side of ...
1
vote
0answers
24 views

Subscriber with many publishers: unsubscribing

I hope this isn't too general, so I apologize in advance if so. I am creating a console text adventure game. I essentially have many monsters, one per room at the moment. I also have a God object/...
1
vote
0answers
201 views

Security-minded design patterns / paradigm for client/server application

I am working on a client/server application and am starting to take it from proof-of-concept to actual implementation. The client is an Android application and the server is in PHP. In similar ...
1
vote
0answers
410 views

How do I combine multiple squares into one Tetris block?

I am learning Phaser by making a simple game—Tetris. I'm having difficulties: Can I use simple rectangles as tetrominoes or they should be sprites? I don't know how make the figure's block from ...
1
vote
1answer
47 views

Creating VR Headset Video

So I have a video stream of known resolution and I have a VR headset via HDMI at a known resolution. Is there an existing library to create the slight fisheye and side-by-side layout for these ...
0
votes
0answers
36 views

How do you model status effects in a turn based combat system without coupling them with the units' code?

I'm trying to write a program to model turn based combat à la Slay the Spire, Darkest Dungeon in C#. I'm struggling with implementing status effects, because different status effects trigger certain ...
0
votes
0answers
52 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
42 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
2answers
90 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
201 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 ...
0
votes
0answers
78 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
0answers
215 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 ...
0
votes
1answer
126 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 ...
0
votes
0answers
63 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. ...
0
votes
0answers
107 views

Where to create the vertex buffers?

Please note that this is purely an architectural/design question. And sorry for the long post, there are a lot of "thinking out loud" here. I'm working on a simple graphics engine (as a universtiy ...
0
votes
0answers
250 views

abstracting window and move semantics

I am using GLFW to manage OpenGL context and as such, delegate this task to a GLFW window. For managing the pointer to a window instance, I am thinking a class like this: ...
0
votes
1answer
202 views

Slick2D Simple StateBasedGame not working

I recently started trying to work with outside Java libraries like Slick2D. This is my first time doing so, so I basically have no clue what I am doing. I tried making a simple StateBasedGame that ...
-1
votes
2answers
288 views

What data structure do I use to store Archetypes in ECS?

I am implementing an ECS with "archetypes" similar to how they are defined in Unity: A unique combination of component types is called an Archetype. For example, a 3D object might have a ...
-2
votes
1answer
87 views

How do I find and change a value of ALL the instance around another instance GAME MAKER

I basically need that, changing a variable of all the instance (all of the same object) around another instance (another, or the same object). I have tried with collision_rectangle but it doesn't ...