#58 ajout d'un item package servant à déployer des machines

This commit is contained in:
2025-09-05 17:01:59 +02:00
parent 165a4d129b
commit 18b48f5320
29 changed files with 149 additions and 62 deletions

View File

@@ -1,4 +1,3 @@
@tool
extends Interactable
class_name ItemObject
@@ -20,6 +19,9 @@ func _init(_item = null):
func _ready():
generate_collision(ITEM_AREA_WIDTH)
if item and object_sprite:
object_sprite.apply_texture_to_sprite(item.icon, ITEM_SPRITE_SIZE)
func inspected_text():
return item.name + (" Seed" if item is Seed else "")