mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
examples/windowsize: Change the delta of moving the window
This commit is contained in:
parent
2e8358529c
commit
aad5db8939
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user