You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Gridmap/scripts/Entity.gd

15 lines
234 B

extends Node
class_name Entity
var position: Vector2
var movement: int = -1
var movement_step: float = 0.0
signal moving
func _init(position: Vector2):
self.position = position
func move(direction: int):
emit_signal("moving")