completed animation setup and code based solely on LDTK settings

This commit is contained in:
2024-04-03 19:39:08 +02:00
parent 001b67f97a
commit f844058bf9
13 changed files with 262 additions and 172 deletions

View File

@@ -54,6 +54,15 @@ func GetPropertyBool(entity *ldtkgo.Entity, property string) bool {
return false
}
func GetPropertyEnum(entity *ldtkgo.Entity, property string) string {
ref := entity.PropertyByIdentifier(property)
if ref != nil {
return ref.AsString()
}
return ""
}
func GetPropertyToggleTile(entity *ldtkgo.Entity) *TileSetSubRect {
ref := entity.PropertyByIdentifier(config.LDTK_Toggle_Tile)
if ref != nil {