The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [architecture]

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

Filter by
Sorted by
Tagged with
3
votes
0answers
58 views

How to Store AI Knowledge about the Game-World for AI Decision Making

I have a game-world with a fair amount of AI that have some Senses, like vision, hearing, touch, smell, etc. But I'm not sure how to put that information in a single place for the individual AI to ...
0
votes
0answers
12 views

Asset Duplication in AssetForge

Is it possible to duplicate assets in AssetForge? For instance, if I build a house and want to duplicate the entire house to another spot with it.
0
votes
0answers
32 views

Abstraction for dialogue and quests in web game

I'm not very experienced with web languages, but I know a little bit of JavaScript. I'm working on creating a text-based rpg in HTML and need a way to modify dialogues for main story or quest ...
-1
votes
0answers
36 views

Looking for some specific Item id's [closed]

I'm trying to find id's to certain items, I've found a ton of useful id's in the forums. but some items i am looking for are Roof id's Bridge id's Sqare post frame id's Wall id's for solitude, ...
0
votes
0answers
19 views

Scripting's relations to RAM

So I'm still new to making games that have a baseline for computer resource usage and I'm confused with my question. I can't find an answer anywhere on the internet so I'm here. Simple Question: <...
1
vote
1answer
59 views

Where should I put units and items in a squad-combat ECS-based game?

So I'm working on a game where squads of varied units would explore, fight, trade and build on an overworld map. Combat would be automated more or less, and happen on the overworld. Basically, ...
3
votes
1answer
69 views

How to make the player unable to change some of the game elements?

I am making a text turn based RPG fighting game in which you create your own spells. You also share them as JSON files with your friends. Sharing is required to win. The game is designed so that it ...
1
vote
1answer
77 views

What's an acceptable delay between a player's action and the effects of the action being visible?

So, I'm creating a game where all the systems push events onto the event queue. Those events are then dispatched at the start of the next frame. This works fine, but there are some situations where ...
0
votes
1answer
43 views

Is it bad to store other memory in a system, alongside the components buffer using an Entity-Component-System architecture (ECS)?

I'm currently writing a simple ECS architecture for an engine and I have the fundamentals in place but after reading up on this architecture, it is designed in such a way that the memory is contiguous ...
8
votes
1answer
1k views

Use floats or doubles when writing mobile games

I know for shaders, floats should be used because they are the optimal choice for performance. Doubles are slow and use more memory which isn't ideal for shaders. While floats are less accurate and ...
0
votes
1answer
32 views

Can Mobile Games use Fragments instead of SurfaceViews?

All the tutorials of mobile games for android (such as this one), use the to display game objects. Most other applications tend to use an ...
0
votes
1answer
36 views

Does a thread in a mobile game serve the same purpose as a view model in a mobile application?

I'm trying to confirm up my understanding of the coding differences and similarities between mobile game design and mobile app design for Android devices using Java/Kotlin. ~~ ~~ ~~ In mobile app ...
0
votes
0answers
27 views

Software Architecture to link several individual projects with one menu/lobby? Please critique my planned architecture

I'm working on a project with a large and spread out team. Think of the project as like a way to showcase different people's work. Each person is working on an individual experience that will need to ...
4
votes
1answer
140 views

What is the cleanest way to code predictable client/server components

Lots of classic games that I've read the source code to do things like if (clientside) // ... or the same but with ...
0
votes
4answers
131 views

What is the best way to implement the story functionality (dialogue and cutscene management, etc.) in an RPG?

I would like to know what the best way to implement the story functionality of an RPG would be. I am writing the game in C++ using the SFML library for graphics, and I have implemented drawing tiles, ...
0
votes
2answers
112 views

AI Behaviour design pattern which handles lots of diverse behaviours and mechanics?

I'm working on an 2D overhead topdown game in Unity3D and I want the enemies to have lots of diverse behaviours. How should I design the architecture with this in mind? For example I want: A simple ...
0
votes
2answers
65 views

Moving cars on a tiled map

I'm writing a game which is situated on a tiled map. I have a PlayState on which there's a Board which cosists of Fields. My Board is an isometric map of a city, where each tile is a kind of road. ...
1
vote
0answers
38 views

Games that mix emulated old machine code with modern languages [closed]

Is there any example of game development in a "modern" multi-purpose language (C++, Python, Java, Go) that loads game binaries of an old platform (e.g. 8-bit, 16-bit or 20-bit DOS) and emulates it ...
0
votes
1answer
92 views

Multithreading: Each system on a different thread or a thread pool?

I'm building a fairly involved game using OpenGL and C++. I've been thinking about how to implement multithreading, and the two options are: 1) Each system (Graphics, Audio, Physics, et cetera) gets ...
4
votes
2answers
206 views

Entity Component System: where do I put containers?

I'm pretty new when it comes to the whole Entity Component System structure and I got some questions I just can't wrap my head around. I know that for example collisions, you'd have a ...
1
vote
1answer
40 views

How does one organize AI interactions with Local and Remote Players?

Scenario: In a first-person multiplayer game, an AI monster grabs a player. (This would be first-person player on the client's local machine, and a third-person remote player on the master and other ...
2
votes
1answer
64 views

Modeling complex requirements for populating loot/drop tables

I have a set of items and a data structure that describes where and how those items may be dropped. I'm looking to implement a roguelike/randomizer element to the game and want to include the special ...
0
votes
0answers
56 views

Serverless Multiplayer

I wanted to make a game with a "serverless" mobile multiplayer game. The idea was to have devices connect to each other automatically when they are within range. There would be no global game state ...
0
votes
0answers
17 views

TurnBased Server Design

I want to create turn based card game. Im currently writing server part in Java and I designed one little mechanism how it could work. On one server I want to be able to have lots of desks. So the ...
3
votes
1answer
84 views

Multiplayer oriented game engine object (C++)

for a personal project i started making a 2d game engine in C++ that uses sfml. The idea is having base "game object" classes from which a game will inherit. Right now i have: Game_engine class ...
0
votes
1answer
162 views

Why separate data from logic?

I don't understand the purpose of separate SystemClass for functions. My composition looks like this: ...
0
votes
2answers
84 views

How to load assets into the game engine editor fast?

I am making a game engine with C++ and OpenGL. Currently I'm stuck making the asset explorer. I would like to be able to import assets into an engine project and then when I open the project just use ...
0
votes
2answers
105 views

How can I implement versioning into a save system?

I currently have a crude save system in my game. When my game is first launched after download, it checks for three directories in a certain location on the client computer, ...
1
vote
1answer
215 views

Do I need a rendering system in my engine?

I am planning to create a cRPG game engine that would allow to easily create games like Baldur's Gate. I already tried to do that once, but my knowledge was vastly insufficient at the time. I settled ...
0
votes
1answer
55 views

How do I keep historical variable value tied to certain period of time?

I'm currently trying to figure out how I can keep ever-changing variable values and make it available for other classes to access the said variables. In my example, I have the following: ...
0
votes
1answer
135 views

How does a game like Minecraft handle block and entity updates?

I am not asking how Minecraft loads chunks or generates chunks, I am asking about individual blocks and entities and their behaviours. Suppose you have a dirt block: dirt block can be converted to a ...
1
vote
0answers
90 views

How to set up an architecture and a strategy allowing the persistence of the data of a MUD in a relational database?

How to set up an architecture and a strategy allowing the persistence of the data of a MUD in a relational database? Type of game: My question relates to the design of a Multi User Dungeon (MUD). ...
0
votes
1answer
142 views

stats or profit give away result of game

Think of a coinflip game, whose logic looks as follows: Server sends websocket message (RESULT_MESSAGE) to frontend with result of a game (won/lost) Server sends websocket message to frontend with ...
1
vote
1answer
89 views

Dynamic Game Server Architecture

I'm trying to find a way to design a game server architecture for a real time mobile game. The design should be cost effective but still to some extend scaleable (later on). Mobile client flow: ...
1
vote
3answers
251 views

Is it possible to avoid global data in a Multi User Dungeon (MUD)?

I am currently designing a Multi User Dungeon (MUD). For those who do not know what it is, they are the ancestors of MMORPGs. There is no graphics, everything is played in a console by typing commands....
6
votes
2answers
689 views

Architecture of networked game engine

So after working on my game engine for 2 years, I've decided to step into the networking environment. I just don't know if it's a good idea to rewrite the engine, or how much work it will take (but ...
0
votes
1answer
63 views

Synchronize points from UI and server

I am sorry in advance if it's not perfectly clear. I would like to make a game with let's say the following map (in real it will be a 3D globe). Now this map contain point, and each point is a place ...
0
votes
1answer
65 views

Possible patterns for Registering event listeners of game entities with an event queue

I'm trying to integrate the idea of an event queue with a game loop that creates entities and responds to input. Is it better practice to submit entity reaction functions to the queue during input ...
0
votes
0answers
34 views

Unity Client and Multiplayer Networking/Architecture

My background is in Enterprise and SaaS web infrastructure. Zero information about games and how their networking works. I only know about the world of browsers and RESTful APIs. I'm planning on ...
3
votes
1answer
294 views

Handling input in a custom ECS engine

I've been implementing an Entity Component System into my custom toy engine so I can learn more about it. Currently I have the following problem: I can't think of a way of implementing input as a ...
0
votes
1answer
75 views

What engine is used in an introductory game-development course? [closed]

I am preparing a course in game-development. It is a choice-coures for 3rd-year students of computer science, who have working knowledge of several programming languages (C, C++, Java), algorithms, ...
2
votes
1answer
105 views

Should the lobby and game room be database tables or arrays?

I'm designing a lobby which holds all game rooms If a room is empty, it gets deleted by the lobby If a room is full, a new room is created For now the lobby is an array of objects on a websockets ...
1
vote
1answer
110 views

How to make rhythm game long notes in Unity?

I'm making a rhythm game for a university course and I can't figure out a way to make the long/sustained notes. For reference, this is what I mean taken from Guitar Hero: I already have a system ...
1
vote
2answers
115 views

How do the systems find the entities they should operate on in Entity-Component-System pattern?

I have read many articles about ECS patterns. Many of them are clear on what the entity and components are but don't really talk about the system because it "varies" or just use plain English to ...
0
votes
0answers
24 views

How to code a lot of cards in a trading card game java [duplicate]

I want to make a trading card game like Yu-Gi-Oh or Magic. I have a lot of cards in my game and even the user can make new cards. Cards are objects and they have attributes like HP and Mana ,etc but ...
6
votes
3answers
279 views

How to store relations between NPCs?

For an RPG I want to generate a world with lots of NPCs, and the NPCs all have relations to eachother. They can be eachothers parents, children, siblings, friends, bosses, lovers, lieges, vassals, etc....
1
vote
0answers
197 views

Modern OpenGL, 2D only, should I be using uniforms or VBOs for sprite transformation?

I'm new to OpenGL, I'm currently building a 2D game engine. Right now I'm only using one shader as I only draw textured quads (basically sprites). The thing is... I don't know if should I be using ...
0
votes
1answer
53 views

Dividing Data and Logic in Unity

I am currently working on a small side project (as usual), and trying to build up from previous experiences. I have the following elements in the game: 1) Region: ...
-1
votes
2answers
59 views

Does game client size always grow in size after updates? [closed]

Games that are updated in course of their lifetime (through online updates), grow in size and I can understand that new textures, sounds and other stuff takes up space. What I'm interested in is - ...
0
votes
1answer
25 views

Uninitialized Variables with Deactivation of Objects in Game Maker Studio 2

I am currently working on some map generation for my GMS2 game, and I have run into an issue that I absolutely cannot figure out. (I am very new to GMS2, so bear with me). I am working on map ...