Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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 ...

1
vote
1answer
86 views

The number of shaders a large game or game engine has

Wondering the scale basically. The number of shaders a large game or game engine has. I've seen some metal repos but they typically just have 1 or 2 shaders for small demos. I think I've seen a few ...
3
votes
2answers
59 views

Solutions for maintaining importers and exporters when chaning file formats

After having a very short discussion with Delix on youtube (see link below) on custom data storage formats, I started thinking. What are some useful ways of maintaining importers / exporters when you ...
-1
votes
0answers
38 views

Game tick system for web based 2d multiplayer sandbox game. Good approach?

For educational purposes, I'm trying to develop a game ticking system for a web based 2d multiplayer sand box game. I've never done something similar, but I'm experienced in developing enterprise ...
0
votes
1answer
70 views

C++ - How to create an engine editor without frameworks like qt and wxWidgets?

Basically sometimes I like to try to venture into the world of graphics computing, sometimes I have a project or another that uses opengl plus all the "blind" with opengl, I wanted to be able to ...
2
votes
2answers
55 views

Passing data to objects and sub-systems

I am currently creating a game in C++ using SDL. Many game objects and sub-systems require the use of variables such as an SDL_Renderer for drawing to the screen ...
2
votes
1answer
99 views

What is the average cost of hiring a programmer mid development to implement online features?

I guess my real question is more specific than that. I'm working on a game by myself and it has 2 player local multiplayer implemented already (it's a pretty simple 2D arcade-platformer type game). I'...
0
votes
0answers
53 views

How can i convert a Android Unity game to PC?

I've seen that everyone asks how to convert PC games made in unity to android. Is there a way to do the opposite, convert Android games to PC? I've found this game called "Granny" on google play store ...
0
votes
2answers
46 views

How to: Duplicating and updating component data in systems

I am new to game development. Coming across the ECS (entity-component system) pattern I generally quite liked the idea. I have implemented the current version of my engine using the OOP style approach....
0
votes
0answers
17 views

Unable to link to glfw properly

I'm trying to create a glfw application on windows 10 using VC++ 2017 compiler. I built the glfw library using this compiler but when trying to run it with my batch file I keep getting 'unresolved ...
0
votes
0answers
30 views

Is there a way to make a movement pattern using AnimationCurves?

I'm making a 2D space-shooter game, and I want the enemies to have specific movement patterns, ranging from simplistic like a linear left-right loop, to more complex like a parabola left-right motion (...
0
votes
1answer
155 views

Make the components of an ECS polymorphic

I have implemented an entity component sytsem (ECS) in my game engine (SFML and C++ 17). An entity has an array of components. You can get a components by its type e.g.: ...
0
votes
1answer
87 views

What do we call a feature that allows many kinds of game object to be “plugged in” modularly?

I'm currently at a very abstract level of designing a certain game (if interested, see this meta post), so my question is a bit abstract, too. But I'll provide a reasonable example, so please bear ...
7
votes
2answers
287 views

Should items in an RPG be hardcoded or loaded in some other way?

Should static weapons (ie.. Iron Sword, Mythril Axe) be their own (static) classes that derive from something like ItemWeapon, which itself is derived from a ...
0
votes
2answers
93 views

How to handle component-based objects in a game loop?

I've been writing my own game engine and I was wondering the correct way to handle my game objects. Each game object is different. The only thing they have in common is a set of operations to handle ...
1
vote
1answer
93 views

strategies for detecting regressions [closed]

I know writing tests would be a good way to catch regressions. But what are some other strategies? TDD and game dev don't suit, but catching regressions is obviously something desirable. I would love ...
2
votes
1answer
130 views

One Giant Shader VS Many Small Shaders

I am building forward rendering engine combined with atlas shadow map technique. My goal is to build an engine that is capable of rendering similar scenes from games such as.. Doom Overwatch So I ...
0
votes
0answers
60 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
2answers
117 views

Procedural sidescroller world gen algorithm by seed

I'm trying to recreate a procedural side-scroller world gen algorithm by using a seed and I find my self stuck trying to solve a particular problem. Seed generation applies very well with voxel-like ...
4
votes
2answers
470 views

Performance problems with quadtree for dynamic objects

I´ve implemented a quadtree spatial partitioning to my game engine as I wanted to try it and see how it affects the performance checks. The results were great (instead of hundreds collision checks ...
0
votes
1answer
124 views

How can I improve on this engine design?

I am trying to come up with a terrain visualization system and I am writing a simple graphics engine for this. For some reason, I wanted to try a new idea. Rather than using dynamic polymorphism and ...
45
votes
6answers
8k views

When is the best time to consider performance?

I am coming from software development background. During the software development cycle, we only focus on functionalities and the working product. At the end of development we start optimizing the ...
5
votes
1answer
297 views

Game Engine “Control Flow” Design Options?

I'm dabbling in writing my own somewhat basic game engine from scratch, and I wanted to ask about some common design configurations for connecting the various parts. I'm particularly interested in the ...
1
vote
1answer
152 views

How to keep the state of all games in the server?

i have a problem implementing a turn-based game server in java. What i want is a way or a technic that let the server keep all the games state that are created in order to the client recover at the ...
0
votes
1answer
75 views

Any reason 3D character models aren't split into multiple models / files?

I'm just curious if there as any reason why artists are so resistant to split their 3D models into multiple fbx files. I just find the code design much cleaner if 3D models are split up into multiple ...
1
vote
1answer
33 views

How should I implement an Observer patter in the following example

I am wondering how I implement an observer pattern in the following example. I am mostly wondering what should be in charge of subscribing. The Example A factory produces cars (Observable), they ...
0
votes
0answers
58 views

Weird Issues with LibGDX stage rendering

I am making a game in Java with LibGDX and I have just started to add a HUD to the game, whenever I try the 'yellowBlock' texture at 0, 0. I white box covers a quarter of the screen and the '...
0
votes
0answers
115 views

UDP Client-Server with Playback Buffer Design Pattern

A while ago I did TCP/UDP client/server examples with Java. But I want to make a simple UDP client/server model with a playback buffer of sorts for my game in Unity using C#. At this point I am very ...
-1
votes
1answer
104 views

How do I create Individual Health for each spawned object?

This question is probably asked many times, but how do I make sure that each time an object is spawned, that said object gains a value representing that objects health. Basically I have an enemy ...
1
vote
2answers
389 views

Do game engines compile games or just interpret them

I know that many game engines like Unity3d use scripting languages like c# or java script but does that mean that a game engine is just an interpreter? If so, does that mean that if I move the ...
2
votes
1answer
484 views

Game engine design choice, favour data oriented design over oop?

I have a scene, in the scene there are multiple systems. Transformsystem, collidableSystem etc ... Currently, these do nothing except returning a bool if the parameter component matches the system: <...
2
votes
0answers
105 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 ...
98
votes
4answers
19k views

Why are games built on cross-platform engines sometimes exclusive to Windows?

If an engine supports Windows, OS X, and Linux, why do we sometimes see games using these engines, like Space Hulk: Deathwing, restricted to Windows only?
5
votes
1answer
119 views

When should I acquire game objects with dependency injection, find-with-tag, or singletons?

This is sort of a best practice/efficiency kind of question, and I haven't really seen any other question talking about these three things together. Essentially, Dependency Injection, Find with Tag (...
1
vote
2answers
125 views

I have a game based on combining 2 ingredients to create a product. What is the best way to code this? (Unity)

So to go a bit more in depth, in my game, you can combine a variety of ingredients to make a product. For example, you could combine water and dirt to make mud. What I am currently doing to achieve ...
1
vote
2answers
1k views

2D racetrack collision bounce using angle of reflection (bounce angle)

I am currently working on a race game where I want to define the collision of my vehicle with the outer and inner borders of the track. If that happens to be the case I want to vehicle to bounce of ...
1
vote
1answer
126 views

Calculate speed vehicle physics 2d racegame

I am currently working on a 2d racegame where I am using physics to move a vehicle. On my form I would like to add a label containing the speed on the vehicle. My physics knowledge is a little rusty, ...
0
votes
0answers
142 views

AddForceAtPosition() not working as desired

I'm trying to lift the left-front and left-rear wheel of my car, and I got it, applying this: ...
1
vote
1answer
74 views

Networking in a strategy, city management game

I'm developing a city management mobile game with its' share of multiplayer elements (leaderboards, achievements, social interactions). It's built using Unity and GameSparks as a backend. I'm a little ...
0
votes
1answer
78 views

Map Positions in LibGDX

I am developing an RPG game where there is a main world map, locations such as towns or ruins on that map and buildings in those locations where players can interact to go into. For example, I have a ...
-1
votes
1answer
144 views

How can i make monsters drop items when they are being killed [closed]

I am making HTML 5 game with Javascript i am really new to programming,want to know how to make the enemies drop items after they are killed when the enemy dies i want the rectangle to represent an ...
1
vote
0answers
55 views

How to implement mutable functionality at runtime? [duplicate]

I am making a game in which the player character can gain traits that change how their character behaves in my world model or add functionality to it. For example, the character might gain the "...
1
vote
1answer
400 views

Snake game made in processing

I have been working on this snake game for a few days, and I have the basics down, but I was wondering if anyone could help me figure out the tail. I need it to follow the body, as it does in the ...
0
votes
1answer
768 views

Turn a single player game into multiplayer game

hobbyist / indie dev here and I was wondering about network programming and making a game capable of multiplayer. So basically I just haven't touched on network programming yet and really don't know ...
3
votes
1answer
169 views

How can I move and rotate an object in an “infinity” or “figure 8” trajectory?

I know that the easiest way to move an object with the figure 8 trajectory is: x = cos(t); y = sin(2*t) / 2; but I just don't know how to rotate it, lets says ...
-1
votes
1answer
557 views

How can you procedurally dismember a character model? [duplicate]

For example in the new Doom, you can use a chain saw and slash an enemy apart, the enemy actually splits in half in the path of the chain saw. I know how to do the cheap effects where you store a copy ...
0
votes
1answer
83 views

Random numbers inside instance (Game Maker)

I've recently run into a weird problem. When I create instances through with(instance_create){ ... }, I can always randomize their variables individually (inside {...}). However, when I try running <...
0
votes
2answers
117 views

Making a sound every time I get to the edge of the platform

I'm trying to make a runner game for the blind, and I need help making a sound every time it is time to jump. I am using Game Maker, and I have no idea how to do it. How do I play a sound when my ...
1
vote
0answers
57 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
1answer
198 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 ...
0
votes
1answer
150 views

How should I design an easing class in C++?

I'm currently struggling to find a good approach for an easing class for my game. The class holds some easing effects, like elastic-in-out, and should be called by menu buttons, players and enemies ...