Merge pull request #47 from justinclift/snake_key_v1
Use the key definition for P
This commit is contained in:
commit
4e8abf93fb
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ func (g *Game) Init() {
|
||||||
// Update - Update game
|
// Update - Update game
|
||||||
func (g *Game) Update() {
|
func (g *Game) Update() {
|
||||||
if !g.GameOver {
|
if !g.GameOver {
|
||||||
if raylib.IsKeyPressed('P') {
|
if raylib.IsKeyPressed(raylib.KeyP) {
|
||||||
g.Pause = !g.Pause
|
g.Pause = !g.Pause
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue