Increase speed to 10
This commit is contained in:
parent
6d65d6b783
commit
965b7701bc
2
main.go
2
main.go
@ -124,7 +124,7 @@ func run() {
|
|||||||
|
|
||||||
//mouse := cam.Unproject(win.MousePosition())
|
//mouse := cam.Unproject(win.MousePosition())
|
||||||
|
|
||||||
speed := 2.0
|
speed := 10.0
|
||||||
if win.Pressed(pixelgl.KeyA) { //left
|
if win.Pressed(pixelgl.KeyA) { //left
|
||||||
playerX -= speed
|
playerX -= speed
|
||||||
Sprite.Set(spritesheet, spritesFrames[2])
|
Sprite.Set(spritesheet, spritesFrames[2])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user