examples: Update resolutions

Fixes #1408
This commit is contained in:
Hajime Hoshi
2020-10-31 02:01:11 +09:00
parent fd41042dcb
commit 19d6f8d20a
12 changed files with 39 additions and 39 deletions

View File

@@ -36,8 +36,8 @@ func init() {
}
const (
screenWidth = 320
screenHeight = 240
screenWidth = 640
screenHeight = 480
)
// Sprite represents an image.
@@ -316,7 +316,7 @@ func (g *Game) Layout(outsideWidth, outsideHeight int) (int, int) {
}
func main() {
ebiten.SetWindowSize(screenWidth*2, screenHeight*2)
ebiten.SetWindowSize(screenWidth, screenHeight)
ebiten.SetWindowTitle("Drag & Drop (Ebiten Demo)")
if err := ebiten.RunGame(NewGame()); err != nil {
log.Fatal(err)