From cf978ca1ac171b180dd7b08c6e4e2846fdd33ca5 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 31 Dec 2020 17:51:52 +0200 Subject: [PATCH] flappylearning: set app.timer_period_ms to 0 with `0` key --- examples/flappylearning/game.v | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/flappylearning/game.v b/examples/flappylearning/game.v index b87adb38f0..e8c4535127 100644 --- a/examples/flappylearning/game.v +++ b/examples/flappylearning/game.v @@ -263,9 +263,12 @@ fn (mut app App) key_down(key sapp.KeyCode) { .escape { exit(0) } + ._0 { + app.timer_period_ms = 0 + } .space { if app.timer_period_ms == 24 { - app.timer_period_ms = 3 + app.timer_period_ms = 4 } else { app.timer_period_ms = 24 }