Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Pause timer for time-based minigames on swipe

  • Loading branch information...
commit 52cf7de730403cdcfa97ee65812c94d1adc7bf8a 1 parent 90d07a5
Thomas Perl authored
Showing with 14 additions and 0 deletions.
  1. +6 −0 debian/changelog
  2. +8 −0 main.cpp
6 debian/changelog
View
@@ -1,3 +1,9 @@
+brainparty (0.5.991) harmattan; urgency=low
+
+ * Pause timer on swipe for time-based mini-games
+
+ -- Thomas Perl <m@thp.io> Sat, 08 Sep 2012 18:31:47 +0200
+
brainparty (0.5.990) harmattan; urgency=low
* New squircle icon in Harmattan Icon Style
8 main.cpp
View
@@ -134,6 +134,14 @@ int main(int argc, char *argv[]) {
}
}
Mix_ResumeMusic();
+
+ /**
+ * Reset the time counter to pause the
+ * time-based minigames' countdowns
+ **/
+ new_time = SDL_GetTicks();
+ ticks_elapsed = 0;
+ previous_time = new_time;
continue;
}
break;
Please sign in to comment.
Something went wrong with that request. Please try again.