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

@@ -2,6 +2,8 @@ package util
import (
"openquell/config"
"path/filepath"
"strings"
"github.com/solarlune/ldtkgo"
)
@@ -71,3 +73,7 @@ func GetPropertyToggleTile(entity *ldtkgo.Entity) *TileSetSubRect {
return nil
}
func GetBGImage(plan *ldtkgo.Level) string {
return filepath.Base(strings.TrimSuffix(plan.BGImage.Path, ".png"))
}