← /browse

Why does a game run faster on a faster PC? Game loop and delta time explained
Ever noticed a game run faster on a quicker computer? That's the *game loop* at work. If you move things a fixed amount every frame, a faster machine means faster gameplay.
Delta time fixes it by moving things by speed × time since the last frame. Drag the frame-rate slider and watch a frame-locked square race ahead while the delta-time square stays steady, then learn the traps that still remain.

More in Making Games
all Making Games →
Making Games
16 Oct What is game juice? Screen shake, hit-stop and why hits feel good Two games can have identical rules and still feel completely different. The difference is often juice: small effects like screen shake… Making Games
14 Oct How are 2D game levels built? Tilemaps explained Most 2D game levels are not big pictures. They are a grid of numbers that points at a small set of repeating tiles. That is called a… Making Games
12 Oct How does a game camera follow you? Smoothing, dead zones and look-ahead Every game has a camera, and how it follows you changes how the game feels. Learn the four common types: locked, smooth, dead zone and… Making Games
10 Oct How does a game remember your progress? Save files explained How does a game remember where you stopped? It writes a small file of facts, called the game state, and reads it back when you load. Try a… Making Games
7 Oct How does a 2D character walk? Sprite sheets and animation speed Every 2D game character walks the same way a flipbook does: a few drawings shown one after another. Games pack those drawings into a single… Making Games
5 Oct How does a game enemy decide what to do? State machines for beginners Ever wondered how a game guard knows when to chase you? Most enemies run on a state machine: they are always in exactly one state, like…
16 Oct What is game juice? Screen shake, hit-stop and why hits feel good Two games can have identical rules and still feel completely different. The difference is often juice: small effects like screen shake… Making Games
14 Oct How are 2D game levels built? Tilemaps explained Most 2D game levels are not big pictures. They are a grid of numbers that points at a small set of repeating tiles. That is called a… Making Games
12 Oct How does a game camera follow you? Smoothing, dead zones and look-ahead Every game has a camera, and how it follows you changes how the game feels. Learn the four common types: locked, smooth, dead zone and… Making Games
10 Oct How does a game remember your progress? Save files explained How does a game remember where you stopped? It writes a small file of facts, called the game state, and reads it back when you load. Try a… Making Games
7 Oct How does a 2D character walk? Sprite sheets and animation speed Every 2D game character walks the same way a flipbook does: a few drawings shown one after another. Games pack those drawings into a single… Making Games
5 Oct How does a game enemy decide what to do? State machines for beginners Ever wondered how a game guard knows when to chase you? Most enemies run on a state machine: they are always in exactly one state, like…