diff options
| author | LLLL Colonq <llll@colonq> | 2026-08-18 00:08:28 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-08-18 00:08:28 -0400 |
| commit | 32a62cfcb925225359a5c90761b795f2f737ebd2 (patch) | |
| tree | 95c2261964803b19f2d39cb35d8d514ed6e5a6f4 /2026/games/just__jane/include/clock.hpp | |
| parent | de99c5f7636a952025ea13de02bafd25bcb6bdec (diff) | |
Re-populate games
Diffstat (limited to '2026/games/just__jane/include/clock.hpp')
| -rw-r--r-- | 2026/games/just__jane/include/clock.hpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/2026/games/just__jane/include/clock.hpp b/2026/games/just__jane/include/clock.hpp new file mode 100644 index 0000000..41bec56 --- /dev/null +++ b/2026/games/just__jane/include/clock.hpp @@ -0,0 +1,24 @@ +#pragma once + +#include <raymath.h> + +class Clock { +private: + float radius_; + long frame_total_; + long current_frame_; + Vector2 center_position_; + +public: + Clock(float radius, Vector2 center, int total) { + radius_ = radius; + frame_total_ = total; + current_frame_ = total; + center_position_ = center; + } + + void Update(); + void Draw(); + bool TimeIsUp(); + void Reset(); +}; |
