flappylearning: set app.timer_period_ms to 0 with `0` key

pull/7759/head
Delyan Angelov 2020-12-31 17:51:52 +02:00
parent 06766fd0eb
commit cf978ca1ac
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 4 additions and 1 deletions

View File

@ -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
}