Fixed decor script

This commit is contained in:
Nathan Anderson 2022-08-04 20:11:25 -06:00
parent dd229223fc
commit c95b9f9928
2 changed files with 16 additions and 12 deletions

File diff suppressed because one or more lines are too long

View File

@ -8,8 +8,8 @@ export var SPRITE_ASSET := SpriteAsset.bush1
func _ready() -> void: func _ready() -> void:
if SPRITE_ASSET in SpriteAsset: if SPRITE_ASSET in SpriteAsset:
sprite.texture = load("res://roger-roger/%s.png" % SPRITE_ASSET) sprite.texture = load("res://assets/%s.png" % SPRITE_ASSET)
else: else:
print("ERROR - Provided Sprite asset is either not defined or misspelled: %s FIXME %s" % [SPRITE_ASSET, self.name]) print("ERROR - Provided Sprite asset is either not defined or misspelled: %s FIXME %s" % [SPRITE_ASSET, self.name])
sprite.texture = load("res://roger-roger/%s.png" % SpriteAsset.bush1) sprite.texture = load("res://assets/%s.png" % SpriteAsset.bush1)