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.

12345678910111213141516
  1. #include "Clock.h"
  2. #include <time.h>
  3. namespace Swan {
  4. bool Clock::periodic(float secs) {
  5. if (time_ >= secs) {
  6. time_ = 0;
  7. return true;
  8. }
  9. return false;
  10. }
  11. }