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