blob: 41bec56206e68a9caff2ce129a163e0a2ad980d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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();
};
|