1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

flappylearning: set app.timer_period_ms to 0 with 0 key

This commit is contained in:
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

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
}