changed aspect ration to 640x384 for better scaling on mobile

This commit is contained in:
Thomas von Dein 2024-04-04 17:53:22 +02:00
parent f844058bf9
commit 95469ab3c7
18 changed files with 787 additions and 944 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -18,7 +18,7 @@ const (
ANIMATION_STARTWAIT time.Duration = 30 * time.Millisecond // how long to wait to start collectible animation
ANIMATION_LOOPWAIT time.Duration = 40 * time.Millisecond // how much time to wait between the sprites
LEVEL_END_WAIT time.Duration = 500 * time.Millisecond
version string = "1.2.3"
version string = "1.3.0"
MenuRectX int = 600
MenuRectY int = 0

View File

@ -15,7 +15,7 @@ import (
const (
width int = 640
height int = 480
height int = 384
cellsize int = 32
)

View File

@ -58,10 +58,11 @@ func (system *HudSystem) Draw(screen *ebiten.Image) {
assets.FontRenderer.Renderer.SetSizePx(20)
assets.FontRenderer.Renderer.SetTarget(screen)
// FIXME: do not use hard coded values for HUD
system.Print(score, 450, 22)
x := system.GetTextXCentered(des)
system.Print(des, x, 470)
system.Print(des, x, 374)
system.Print(level, 10, 22)
op.GeoM.Reset()