mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-23 17:32:02 +01:00
examples/rotate: Update the resolution
This commit is contained in:
parent
552fbb7ed9
commit
61a8f2c69c
@ -28,8 +28,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
screenWidth = 320
|
screenWidth = 640
|
||||||
screenHeight = 240
|
screenHeight = 480
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -84,7 +84,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
gophersImage = ebiten.NewImageFromImage(img)
|
gophersImage = ebiten.NewImageFromImage(img)
|
||||||
|
|
||||||
ebiten.SetWindowSize(screenWidth*2, screenHeight*2)
|
ebiten.SetWindowSize(screenWidth, screenHeight)
|
||||||
ebiten.SetWindowTitle("Rotate (Ebiten Demo)")
|
ebiten.SetWindowTitle("Rotate (Ebiten Demo)")
|
||||||
if err := ebiten.RunGame(&Game{}); err != nil {
|
if err := ebiten.RunGame(&Game{}); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user