Use the key definition for P

This commit is contained in:
Justin Clift 2018-08-19 23:16:03 +01:00
parent c4b477c205
commit 8788cb59b9

View file

@ -103,7 +103,7 @@ func (g *Game) Init() {
// Update - Update game
func (g *Game) Update() {
if !g.GameOver {
if raylib.IsKeyPressed('P') {
if raylib.IsKeyPressed(raylib.KeyP) {
g.Pause = !g.Pause
}