mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
examples: use app.gg.quit() instead of exit(0)
This commit is contained in:
@@ -459,7 +459,7 @@ fn (mut game Game) key_down(key gg.KeyCode) {
|
||||
// global keys
|
||||
match key {
|
||||
.escape {
|
||||
exit(0)
|
||||
game.gg.quit()
|
||||
}
|
||||
.space {
|
||||
if game.state == .running {
|
||||
|
||||
Reference in New Issue
Block a user