changed aspect ration to 640x384 for better scaling on mobile
|
Before Width: | Height: | Size: 152 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 203 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 2.5 KiB |
@ -18,7 +18,7 @@ const (
|
|||||||
ANIMATION_STARTWAIT time.Duration = 30 * time.Millisecond // how long to wait to start collectible animation
|
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
|
ANIMATION_LOOPWAIT time.Duration = 40 * time.Millisecond // how much time to wait between the sprites
|
||||||
LEVEL_END_WAIT time.Duration = 500 * time.Millisecond
|
LEVEL_END_WAIT time.Duration = 500 * time.Millisecond
|
||||||
version string = "1.2.3"
|
version string = "1.3.0"
|
||||||
|
|
||||||
MenuRectX int = 600
|
MenuRectX int = 600
|
||||||
MenuRectY int = 0
|
MenuRectY int = 0
|
||||||
|
|||||||
2
main.go
@ -15,7 +15,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
width int = 640
|
width int = 640
|
||||||
height int = 480
|
height int = 384
|
||||||
cellsize int = 32
|
cellsize int = 32
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -58,10 +58,11 @@ func (system *HudSystem) Draw(screen *ebiten.Image) {
|
|||||||
assets.FontRenderer.Renderer.SetSizePx(20)
|
assets.FontRenderer.Renderer.SetSizePx(20)
|
||||||
assets.FontRenderer.Renderer.SetTarget(screen)
|
assets.FontRenderer.Renderer.SetTarget(screen)
|
||||||
|
|
||||||
|
// FIXME: do not use hard coded values for HUD
|
||||||
system.Print(score, 450, 22)
|
system.Print(score, 450, 22)
|
||||||
x := system.GetTextXCentered(des)
|
x := system.GetTextXCentered(des)
|
||||||
|
|
||||||
system.Print(des, x, 470)
|
system.Print(des, x, 374)
|
||||||
system.Print(level, 10, 22)
|
system.Print(level, 10, 22)
|
||||||
|
|
||||||
op.GeoM.Reset()
|
op.GeoM.Reset()
|
||||||
|
|||||||