1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-22 08:04:23 +00:00
hella-farm/entities/imp.gd

10 lines
183 B
GDScript

extends CharacterBody2D
class_name Imp
@onready var sprite: SpriteLeftRight = $"Sprite"
func _on_move(movement:Vector2):
move_and_collide(movement)
sprite.handle_move(movement)