Independent guides to games and computersNot affiliated with any game or hardware company
Allxrs

Software & Tips

Game Engines Explained for Beginners

Every game has to solve the same set of problems before it can be a game at all. It has to draw images many times a second, play sounds, read a controller, work out when two objects touch, load files from storage and run on more than one kind of device. Writing all of that from nothing takes skilled teams a long time, and none of it is the part that makes one game different from another.

A game engine is the software that handles those shared problems, packaged with tools for assembling a game with it. Understanding what an engine supplies, and what it leaves to you, makes it much easier to choose one and to make sense of the first tutorial.

The systems inside an engine

Engines differ in size and focus, though most contain the same core parts.

  • Renderer. Turns the scene into the picture on screen, handling cameras, lighting, materials and effects. It talks to the graphics hardware through interfaces such as DirectX, Vulkan or OpenGL so that you do not have to.
  • Physics and collision. Detects when objects overlap and can simulate gravity, bouncing, friction and joints.
  • Audio. Plays music and effects, mixes them and can place sounds in three-dimensional space.
  • Input. Reads keyboards, mice, controllers and touch screens and presents them in a consistent way.
  • Animation. Plays sprite sequences, moves skeletons inside 3D characters and blends between movements.
  • Asset pipeline. Imports images, models, sounds and fonts and converts them into forms the game can load quickly.
  • User interface tools. Menus, health bars, text and buttons.
  • Networking, in some engines. Building blocks for multiplayer, which still require considerable work to use well.

The editor and the runtime

An engine has two faces. The runtime is the code that ships inside the finished game and runs on the player's device. The editor is the application the developer works in. Many people picture the editor when they hear the word engine, since that is where the hours are spent.

A typical editor shows a viewport, which is a live view of the level; a hierarchy listing every object in the scene; an inspector for changing the properties of the selected object; and a browser for project files. A play button runs the game inside the editor so changes can be tried within seconds.

Most engines organize a game from the same kinds of pieces under different names. A scene or level is a container of objects. Each object is given behavior by attaching components or child nodes, such as a sprite, a collision shape and a script. Reusable templates of objects, often called prefabs or packed scenes, let you place the same enemy fifty times and update all fifty by editing one. Learning the vocabulary of one engine makes the next one far easier to read.

2D and 3D engines

Some engines are designed purely for 2D games, some are built around 3D and also offer 2D tools, and some treat both as equals. The difference matters for a beginner.

Work in 2D involves flat images, simpler mathematics and assets that one person can draw. The path from an idea to something playable is short. Work in 3D adds models, materials, lighting, cameras that move through space and rotation in three axes, and each of those is a field of study in itself. A common rule of thumb is that a first project in 2D reaches a finished state much sooner, which is why many teachers suggest starting there even for people whose long-term interest is 3D.

An engine built around high-end 3D graphics can make 2D games, though its editor and downloads may be heavier than a small project needs. The engine's own documentation usually shows what kinds of games it is commonly used for.

How you tell the engine what to do

The engine provides systems, and the rules of your particular game are written by you. There are two main ways to do that.

Text scripting uses a programming language. Some engines use widely known general-purpose languages, and others have a language designed specifically for the engine, usually with a simpler syntax. Skills learned in a general-purpose language transfer to other kinds of software, while an engine-specific language is often quicker to pick up.

Visual scripting represents logic as boxes connected by lines, or as lists of events and actions. It avoids syntax errors and is approachable for artists and designers. Large visual scripts can become tangled and hard to follow, and the underlying ideas, such as variables, conditions and loops, are the same as in text code.

Neither route is the lesser one. Commercial games have been made with both, and many teams combine them.

Licenses and costs

Engines are offered under several kinds of terms, and the terms can change, so read the current license page on the engine's own site before committing to a project you hope to release.

  • Open-source engines publish their code under a license that typically allows use without fees. Development is funded by donations or sponsors.
  • Commercial engines with a no-cost tier can be used without payment up to some threshold of revenue or funding, with subscription fees or a share of revenue above it.
  • Subscription or one-time purchase tools charge up front, sometimes with separate fees for exporting to particular platforms.

Other points worth checking are whether the no-cost tier requires showing the engine's logo at startup, which platforms it can export to, and what releasing on a console involves, since console makers have their own approval programs. For learning, the starter tier of most engines is sufficient. Anyone under eighteen should involve a parent or guardian before agreeing to license terms or paying for tools or assets.

How to choose a first engine

For a beginner, the features list matters less than how easy the engine is to learn and whether it suits the game in mind. Useful questions include:

  • Is the game 2D or 3D, and does the engine treat that kind well?
  • Is there up-to-date beginner documentation and a step-by-step first project from the engine's own team?
  • Is the community active, with forums where beginner questions get answered?
  • Does the editor run comfortably on your computer? The engine's requirements page will say.
  • Does the scripting approach appeal to you?
  • Can it export to the platforms you care about?

Any established engine is capable of far more than a first game requires, so time spent comparing them in fine detail is better spent building.

When a framework fits better

An engine is one point on a spectrum. A framework or library gives you functions for drawing, sound and input without an editor, and you write the structure of the game yourself in code. That teaches a great deal about how games work underneath and suits people who enjoy programming for its own sake. Progress on the game itself is slower.

Writing an engine from scratch is a rewarding project for someone who wants to understand rendering and systems programming in depth. As a way to finish a game it is the longest road available. Being clear about whether your goal is to make a game or to learn how engines work will settle which of these fits.

A plan for the first week

  1. Download one engine from its own site and install it.
  2. Complete the introductory tutorial in its documentation exactly as written.
  3. Change three things in the tutorial project, such as speed, colors and one rule, to check you understand it.
  4. Write a three-sentence design for a tiny game of your own.
  5. Build it with simple placeholder shapes.
  6. Export a playable build and give it to one person to try.
  7. Stay with the same engine for at least two or three small projects before judging it or switching.

Informational content only. Allxrs is an independent publication and is not affiliated with any game, hardware or software company. We do not sell products and nothing here is a recommendation to buy. Products, features and prices change: confirm current details on the manufacturer's or platform's own pages, and follow the device manual before opening or modifying any hardware.

Keep reading