playground header, font scaling

This commit is contained in:
2023-07-08 10:59:46 +02:00
parent 09959a8932
commit 3947c34b4c
9 changed files with 78 additions and 32 deletions

15
main.go
View File

@@ -4,6 +4,7 @@ import (
"game/domain"
"game/konstructor"
"game/konstructor/engines/easy_ebitengine"
"image/color"
"github.com/hajimehoshi/ebiten"
)
@@ -18,14 +19,26 @@ func main() {
ActiveDialog: domain.DialogTest,
CurrentLevel: 0,
CurrentPlayground: 0,
Multiplayer: false,
LiveCount: 3,
},
Config: &konstructor.Config{
Name: "Game",
Name: "Teletype Adventure",
Screen: &konstructor.ScreenConfig{
Width: 640,
Height: 480,
Scale: 2,
},
Header: &konstructor.HeaderConfig{
BackgroundColor: color.RGBA{
R: 0,
G: 255,
B: 0,
A: 200,
},
Height: 20,
FontLayout: domain.GetHeaderFontLayout(),
},
KeyMap: konstructor.KeyMap{
Up: ebiten.KeyUp,
Down: ebiten.KeyDown,