A 2D tile-based sandbox game.
Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
12345678910111213141516 |
- #include "Clock.h"
-
- #include <time.h>
-
- namespace Swan {
-
- bool Clock::periodic(float secs) {
- if (time_ >= secs) {
- time_ = 0;
- return true;
- }
-
- return false;
- }
-
- }
|