switched to use the level gbimage instead of the background property
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user