End of lesson 31
This commit is contained in:
@@ -3,3 +3,11 @@ extends Mob
|
||||
class_name Player
|
||||
|
||||
@export var camera:Camera2D
|
||||
|
||||
|
||||
func wouldCollideAt(destination):
|
||||
if (super.wouldCollideAt(destination)):
|
||||
#CommandDispatcher.DISPLAY_MESSAGE.emit("Your path is blocked.")
|
||||
return true
|
||||
else:
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user