aboutsummaryrefslogtreecommitdiff
path: root/game/hud/SpeedScript.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/hud/SpeedScript.h')
-rw-r--r--game/hud/SpeedScript.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/game/hud/SpeedScript.h b/game/hud/SpeedScript.h
new file mode 100644
index 0000000..6c15a89
--- /dev/null
+++ b/game/hud/SpeedScript.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <crepe/api/Script.h>
+#include <crepe/manager/SaveManager.h>
+
+class SpeedScript : public crepe::Script {
+public:
+ void init() override;
+ void fixed_update(crepe::duration_t dt) override;
+
+private:
+ crepe::SaveManager * savemgr;
+ bool toggle = true;
+ float timescale = 1;
+};