switched to use the level gbimage instead of the background property

This commit is contained in:
2024-04-07 13:07:03 +02:00
parent 261f23a5a9
commit 53bdb7e8ae
4 changed files with 9 additions and 68 deletions

View File

@@ -38,10 +38,9 @@ func NewLevel(game *Game, cellsize int, plan *ldtkgo.Level) *Level {
gridcontainer := &grid.GridContainer{}
// FIXME: use plan.BGImage.Path here?
systemlist = append(systemlist,
systems.NewGridSystem(game.World, game.ScreenWidth, game.ScreenHeight, cellsize,
assets.Assets[plan.PropertyByIdentifier("background").AsString()]))
assets.Assets[util.GetBGImage(plan)]))
systemlist = append(systemlist, systems.NewCollectibleSystem(game.World, cellsize))