Skip to content

Game development (engine-independent)

Scope: architecture concerns that every game shares, whatever the engine: the game loop and time steps, core game patterns, entity-component systems, data-driven design, multiplayer networking, save data, frame budgets, version control for large assets, and accessibility. GPU rendering and shaders are in Graphics and GPU rendering, dedicated servers and online services are in Game servers and online services, engine-specific guidance is in Unity, Godot, Unreal Engine and GameMaker, and the general guidelines still apply. Games that run in the browser are in Web games. Accessibility law and cross-platform principles are in Accessibility.

Entries are sorted by score from 1 to 10 (criteria): 9โ€“10 start here or strongly recommended, 6โ€“8 recommended, 1โ€“5 further reading or conditional.

Adopted references

No single official guide covers game architecture across engines. These primary sources are the baseline. The rules below combine them and add choices they leave open.

  • 8 Game Programming Patterns (Robert Nystrom): the baseline for code structure. Free online. It covers the game loop, update method, component, event queue, object pool, data locality and more.
  • 8 Fix Your Timestep! (Glenn Fiedler, Gaffer On Games): the standard fixed-time-step loop with an accumulator and interpolation.
  • 8 Fast-Paced Multiplayer (Gabriel Gambetta): the baseline for client-server netcode. A four-part series on authoritative servers, client-side prediction and server reconciliation, entity interpolation, and lag compensation.
  • 8 Game Accessibility Guidelines: the baseline for accessibility. Guidelines grouped as basic, intermediate and advanced, with examples, and advice on when and how to apply them.
  • 8 Xbox Accessibility Guidelines (Microsoft): best practices developed with the gaming and disability community, for designers, developers and test teams.
  • 7 Networked Physics (Glenn Fiedler, Gaffer On Games): compares deterministic lockstep, snapshot interpolation and state synchronisation for networking a simulation.
  • 7 Save Game Best Practices (Meta Horizon OS developer docs): versioning, migration, integrity checks and backups for save files. Apart from the cloud backup section, the advice applies to any platform.
  • 6 ECS FAQ (Sander Mertens, author of Flecs): what an entity component system is, when it helps, and how implementations differ.

Key rules

Game loop

  • 8 GAMEDEV-1 Advance the simulation in fixed time steps, decoupled from the render rate, and interpolate between the last two simulated states when rendering. Cap the number of steps per frame so that a slow frame can't start a "spiral of death". (Gaffer On Games, Fix Your Timestep!, Nystrom, Game Loop)

Code structure

  • 7 GAMEDEV-2 Build game entities by composing components, not through deep inheritance hierarchies. (Nystrom, Component)
  • 7 GAMEDEV-3 Define entity types and tuning values as data that designers can change without recompiling, not as one subclass per type. (Nystrom, Type Object, Unity: ScriptableObject data)
  • 5 GAMEDEV-21 Model an entity whose behaviour depends on its current mode, such as a character, an enemy or a menu, as a finite state machine: one current state out of a fixed set, with explicit transitions, instead of boolean flags and nested conditionals. When a state needs its own data or behaviour, make it an object (the State pattern), and put behaviour that several states share in a superstate; for complex AI, consider behaviour trees instead. The engine files name the built-in mechanisms of Unreal (UNREAL-25) and GameMaker (GAMEMAKER-CODE-12). (Nystrom, State, Unity e-book, Level up your code with design patterns and SOLID)
  • 4 GAMEDEV-4 Adopt an entity component system (ECS) deliberately, when you need very large numbers of entities, and prefer an established framework to writing your own. A home-grown ECS rarely matches the performance of established ones. (Mertens, ECS FAQ, Unity: Entities package)

Multiplayer

Save data

  • 8 GAMEDEV-10 Version the save-data schema from the first release, and migrate older saves to the current version when loading them. (Meta, Save Game Best Practices)
  • 7 GAMEDEV-11 Keep the last good save until the new one is completely written, and store an integrity check so that a corrupt or partial save falls back to the previous one. (Meta, Save Game Best Practices)

Performance

Version control and assets

  • 8 GAMEDEV-22 Commit the project and metadata files that the engine needs to open the project, and keep the folders it regenerates, such as caches and build output, out of version control, starting from the ignore file that the engine generates or the engine's template in GitHub's gitignore collection. Commit the ignore file too, so that everyone who clones the repository uses the same rules. Platform examples: GODOT-1, UNITY-STRUCT-7, UNITY-STRUCT-8, UNREAL-37 and GAMEMAKER-STRUCT-1. (GitHub Docs, Ignoring files, github/gitignore)
  • 8 GAMEDEV-15 Pick version control that handles large binary assets before the project grows: Git with Git LFS, or a system built for binaries such as Perforce. GitHub blocks files larger than 100 MiB and recommends keeping repositories under 1 GB. Git LFS stores large files on a separate server and keeps only pointers in Git. The Unreal Editor follows Perforce's check-out workflow. (GitHub, About large files on GitHub, Git LFS, Unreal Engine, Using Perforce as source control)
  • 7 GAMEDEV-16 Lock binary assets that can't be merged, such as levels, textures, models and audio, before editing them: mark their types lockable in .gitattributes with Git LFS, or check them out exclusively in Perforce. Concurrent edits to large binary files cause merge conflicts that are very difficult to resolve. (Git LFS, File Locking, Unreal Engine, Using Perforce as source control)

Accessibility

  • 7 GAMEDEV-17 Plan accessibility at the design stage: review the Game Accessibility Guidelines before work starts, choose the ones that apply, and schedule early the ones that are costly to add later. Many guidelines can be met with simple design decisions early on, and retrofitting them later costs significantly more. (Game Accessibility Guidelines, Why and how)
  • 7 GAMEDEV-18 Address the four most common complaints first: control remapping, text size, colour blindness and subtitle presentation. (Game Accessibility Guidelines, Basic)
  • 6 GAMEDEV-19 Give sound effects, speech and music separate volume controls or mutes. Not conveying information by colour or sound alone is A11Y-11. (Game Accessibility Guidelines, Basic)
  • 5 GAMEDEV-20 Use the Xbox Accessibility Guidelines as a test checklist for your game's accessibility features. (Xbox Accessibility Guidelines)

Tutorials and further reading