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:
parent
06766fd0eb
commit
cf978ca1ac
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user