End of lesson 31

This commit is contained in:
2025-04-18 20:46:02 -03:00
parent f4e4de59f5
commit ffbbfd455e
8 changed files with 416 additions and 18 deletions

View File

@@ -2,6 +2,8 @@ extends Node2D
class_name Mob
@export var health:int = 100
@export var animator:AnimatedSprite2D
@export var collisionRay_1:RayCast2D
@@ -77,6 +79,4 @@ func wouldCollideAt(destination):
updateRaycasts(destination)
if collisionRay_1.is_colliding() || collisionRay_2.is_colliding():
CommandDispatcher.DISPLAY_MESSAGE.emit("Your path is blocked.")
return true