This commit is contained in:
Schluffe
2026-09-04 13:57:52 +02:00
parent 71cfa64793
commit e961887953
24 changed files with 340 additions and 360 deletions
+2 -2
View File
@@ -16,8 +16,8 @@ every game's update loop.
### Why `delta`?
`delta` is the number of **milliseconds since the last frame**. Frames are not
evenly spaced — a busy frame takes longer. If you moved a fixed amount *per
frame* instead of *per millisecond*, your game would run faster on a fast
evenly spaced — a busy frame takes longer. If you moved a fixed amount _per
frame_ instead of _per millisecond_, your game would run faster on a fast
computer and slower on a slow one.
By storing velocity as **units-per-millisecond** and multiplying by `delta`, the