From 225e873c8ac9c4c08720a69b8f2c817d22cf0071 Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Mon, 23 Dec 2024 21:17:45 +0100 Subject: made script reusable to switch scenes --- game/mainmenu/ShowScript.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 game/mainmenu/ShowScript.h (limited to 'game/mainmenu/ShowScript.h') diff --git a/game/mainmenu/ShowScript.h b/game/mainmenu/ShowScript.h new file mode 100644 index 0000000..5bfabcc --- /dev/null +++ b/game/mainmenu/ShowScript.h @@ -0,0 +1,13 @@ +#pragma once + +#include + +class ShowScript : public crepe::Script { +public: + void frame_update(crepe::duration_t delta_time) override; + virtual const char* get_scene_name() const = 0; +private: + float velocity = 20; +protected: + bool transition = false; +}; -- cgit v1.2.3