aboutsummaryrefslogtreecommitdiff
path: root/game/hud/SpeedScript.h
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2025-01-05 16:36:38 +0100
committerJAROWMR <jarorutjes07@gmail.com>2025-01-05 16:36:38 +0100
commit2726785d64aa117aff0791d4591046c442709aac (patch)
treece5b7d2fb240e87597d70e1f1be544e9672212e3 /game/hud/SpeedScript.h
parentba170d00586ab261e015cc2febbb43f9aa7ae43e (diff)
improved hud
Diffstat (limited to 'game/hud/SpeedScript.h')
-rw-r--r--game/hud/SpeedScript.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/game/hud/SpeedScript.h b/game/hud/SpeedScript.h
new file mode 100644
index 0000000..1cc4368
--- /dev/null
+++ b/game/hud/SpeedScript.h
@@ -0,0 +1,13 @@
+#pragma once
+
+#include "api/Script.h"
+#include "manager/SaveManager.h"
+
+class SpeedScript : public crepe::Script {
+public:
+ void fixed_update(crepe::duration_t dt) override;
+private:
+ crepe::SaveManager* savemgr;
+ bool toggle = true;
+ float timescale = 1;
+};