Speed etwas runter (13.3 ms pro Tick)
authorWintermute <wintermute@hannover.ccc.de>
Sat, 12 Oct 2013 22:32:20 +0000 (00:32 +0200)
committerWintermute <wintermute@hannover.ccc.de>
Sat, 12 Oct 2013 22:32:20 +0000 (00:32 +0200)
badge/jumpnrun/jumpnrun.c
badge/ui/event.c

index 3b7a4c6..9f4df56 100644 (file)
@@ -244,7 +244,7 @@ void jumpnrun_level_tick(jumpnrun_level      *lv,
   }
 
   state->inertia = state->inertia_mod;
-  state->tick_minor = (state->tick_minor + 1) % 4;
+  state->tick_minor = (state->tick_minor + 1) % 3;
 }
 
 uint8_t jumpnrun_play(char const *lvname) {
index 9c504be..779398f 100644 (file)
@@ -77,7 +77,7 @@ badge_event_t badge_event_wait(void) {
 }
 
 void badge_event_start(void) {
-  timer32Init(0, TIMER32_CCLK_10MS);
+  timer32Init(0, TIMER32_CCLK_10MS / 100 * 133);
   timer32SetIntHandler(badge_event_irq);
   timer32Enable(0);
 }
This page took 0.026252 seconds and 4 git commands to generate.