#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

@@ -6,11 +6,14 @@ var available : bool = true
func can_interact(_p : Player) -> bool:
return true
func interaction_cost(_p : Player) -> int:
return 0
func interact(_p : Player) -> bool:
printerr("Interact function called on abstract Interactable class")
return false
func generate_collision(area_width : float):
func generate_collision(area_width : float) -> CollisionShape2D:
var collision = CollisionShape2D.new()
var collision_shape = CircleShape2D.new()
collision_shape.radius = area_width
@@ -18,5 +21,7 @@ func generate_collision(area_width : float):
collision.shape = collision_shape
add_child(collision)
return collision
func interact_text():
return ""