A 2D tile-based sandbox game.
您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
12345678910111213141516 |
- #include "Clock.h"
-
- #include <time.h>
-
- namespace Swan {
-
- bool Clock::periodic(float secs) {
- if (time_ >= secs) {
- time_ = 0;
- return true;
- }
-
- return false;
- }
-
- }
|