A 2D tile-based sandbox game.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1234567891011121314151617 |
- #pragma once
-
- #include <string>
-
- namespace Swan {
-
- class Timer {
- public:
- void tick(float dt) { time_ += dt; }
- void reset() { time_ = 0; }
- bool periodic(float secs);
-
- private:
- float time_ = 0;
- };
-
- }
|