refactoring to systems complete. also added observers for collision checks

This commit is contained in:
2024-02-11 13:00:56 +01:00
parent ac643f49d3
commit 72f0aa7691
10 changed files with 187 additions and 82 deletions

View File

@@ -3,6 +3,7 @@ package game
import (
"fmt"
"image"
"openquell/observers"
"github.com/hajimehoshi/ebiten/v2"
"github.com/mlange-42/arche/ecs"
@@ -28,6 +29,9 @@ func NewGame(width, height, startlevel int, startscene int) *Game {
Scenes: map[int]Scene{},
}
observers.NewPlayerObserver(&world)
observers.NewParticleObserver(&world)
game.Scenes[Play] = NewLevelScene(game, startlevel)
fmt.Println(game.World.Stats().String())