diff options
author | cflip <cflip@cflip.net> | 2022-04-01 21:23:01 -0600 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2022-04-01 21:23:01 -0600 |
commit | 3ee74cdb1b4fd2bf9eefdf6bcd8439b27cbb7336 (patch) | |
tree | 4c58b1cae03df912d2be17b077ab1810fcb3627b /src/train.h | |
parent | 7803be09b7c0a133b1009408fea2fb1f1474e786 (diff) |
This adds a delta time that ensures that everything moves at the same
speed regardless of framerate or system.
Diffstat (limited to 'src/train.h')
-rw-r--r-- | src/train.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train.h b/src/train.h index c496db8..9e064df 100644 --- a/src/train.h +++ b/src/train.h @@ -10,7 +10,7 @@ public: explicit Train(Level& level) : m_level(level) { } - void update(); + void update(float deltaTime); void draw(Bitmap&, int, int); void setPosition(int x, int y); |