merge entity package to konstructor

This commit is contained in:
2023-07-06 23:33:43 +02:00
parent 2fcf6f4fdc
commit 38b8053223
28 changed files with 89 additions and 94 deletions

11
main.go
View File

@@ -4,7 +4,6 @@ import (
"game/domain"
"game/konstructor"
"game/konstructor/engine"
"game/konstructor/entity"
"github.com/hajimehoshi/ebiten"
)
@@ -13,20 +12,20 @@ func main() {
k := konstructor.Konstructor{
EngineWrapper: &engine.EngineWrapper{},
Domain: &domain.Domain{},
KContext: &entity.KContext{
ScreenType: entity.PlaygroundScreenType,
KContext: &konstructor.KContext{
ScreenType: konstructor.PlaygroundScreenType,
ScreenValue: "MainMenu",
CurrentLevel: 0,
CurrentPlayground: 0,
},
Settings: &entity.Settings{
Settings: &konstructor.Settings{
Name: "Game",
Screen: &entity.ScreenSettings{
Screen: &konstructor.ScreenSettings{
Width: 320,
Height: 240,
Scale: 2,
},
KeyMap: entity.KeyMap{
KeyMap: konstructor.KeyMap{
Up: ebiten.KeyUp,
Down: ebiten.KeyDown,
Right: ebiten.KeyRight,