diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-23 21:17:45 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-23 21:17:45 +0100 |
commit | 225e873c8ac9c4c08720a69b8f2c817d22cf0071 (patch) | |
tree | 20c1539a7ea7d133fca143e922165fd7533c87fe /game/mainmenu/ShowScript.h | |
parent | a3097a20daaf58e4e3852bfb36315dc5e14d3e52 (diff) |
made script reusable to switch scenes
Diffstat (limited to 'game/mainmenu/ShowScript.h')
-rw-r--r-- | game/mainmenu/ShowScript.h | 13 |
1 files changed, 13 insertions, 0 deletions
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 <crepe/api/Script.h> + +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; +}; |