examples/windowsize: Change the delta of moving the window

This commit is contained in:
Hajime Hoshi 2019-12-21 17:08:04 +09:00
parent 2e8358529c
commit aad5db8939

View File

@ -108,16 +108,16 @@ func update(screen *ebiten.Image) error {
}
} else {
if inpututil.IsKeyJustPressed(ebiten.KeyUp) {
positionY -= 4
positionY -= d
}
if inpututil.IsKeyJustPressed(ebiten.KeyDown) {
positionY += 4
positionY += d
}
if inpututil.IsKeyJustPressed(ebiten.KeyLeft) {
positionX -= 4
positionX -= d
}
if inpututil.IsKeyJustPressed(ebiten.KeyRight) {
positionX += 4
positionX += d
}
}
if inpututil.IsKeyJustPressed(ebiten.KeyS) {