14 lines
240 B
GDScript
14 lines
240 B
GDScript
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
|