What a game engine does

Build the same small game by writing five services yourself or delegating them to an engine. The game looks the same in every combination; only your line count changes. This is an original teaching model, not a recreation of an actual engine.

Lines you write130lines

Try this: 1. How high can gravity go while still landing on the platform? 2. How small can the hitbox be while still collecting all three coins? Changing a setting restarts playback.

About this model

An original model for the How Games Are Made video about what engines such as Unity handle and what developers do. AI assisted diagrams and code; the creator checked factual claims against sources. No game footage, engine screenshots or official assets are used.

What this demonstrates

Separate services (drawing, reading input, tracking time, checking collisions and playing sound) from rules (how things fall and what happens on contact). Delegating services changes your line count, not the game. At rule level 0 the character simply stands there.

How to try it

Toggle each service between writing it yourself and the engine. Raise the rule level from 0 to 4 to add running, jumping, coins and a goal. Gravity and hitbox size change the play while using the same services.

Key idea

Engines provide services, but developers still choose the rules. These line counts belong to this model, not a real engine or game.