summaryrefslogtreecommitdiff
path: root/src/level.h
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2022-04-01 21:23:01 -0600
committercflip <cflip@cflip.net>2022-04-01 21:23:01 -0600
commit3ee74cdb1b4fd2bf9eefdf6bcd8439b27cbb7336 (patch)
tree4c58b1cae03df912d2be17b077ab1810fcb3627b /src/level.h
parent7803be09b7c0a133b1009408fea2fb1f1474e786 (diff)
Add a game timerHEADmaster
This adds a delta time that ensures that everything moves at the same speed regardless of framerate or system.
Diffstat (limited to 'src/level.h')
-rw-r--r--src/level.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/level.h b/src/level.h
index fa6376d..c706b06 100644
--- a/src/level.h
+++ b/src/level.h
@@ -36,7 +36,7 @@ public:
void set(int x, int y, uint8_t tile);
bool inBounds(int x, int y) const { return x >= 0 && x < m_width && y >= 0 && y < m_height; }
- void update();
+ void update(float deltaTime);
void draw(Bitmap& bitmap, int xo, int yo);
void addVehicle(int x, int y);