From 8fc12804f7f0203564cd6352cf47da13a4f46641 Mon Sep 17 00:00:00 2001 From: Max-001 Date: Wed, 8 Jan 2025 11:22:53 +0100 Subject: Made background aquarium move --- game/background/AquariumScript.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 game/background/AquariumScript.h (limited to 'game/background/AquariumScript.h') diff --git a/game/background/AquariumScript.h b/game/background/AquariumScript.h new file mode 100644 index 0000000..b068628 --- /dev/null +++ b/game/background/AquariumScript.h @@ -0,0 +1,12 @@ +#pragma once + +#include + +class AquariumScript : public crepe::Script { +public: + void fixed_update(crepe::duration_t dt); + +private: + float start_x = 10200; + const float lenght = 3000; +}; -- cgit v1.2.3