diff options
Diffstat (limited to 'game/microgames/heart_break/player_heart.gd')
-rw-r--r-- | game/microgames/heart_break/player_heart.gd | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/game/microgames/heart_break/player_heart.gd b/game/microgames/heart_break/player_heart.gd new file mode 100644 index 0000000..565cee1 --- /dev/null +++ b/game/microgames/heart_break/player_heart.gd @@ -0,0 +1,15 @@ +extends RigidBody2D + +var speed = 250 + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _physics_process(delta): + var moveVector = Vector2(Input.get_axis("Left","Right")*speed, Input.get_axis("Up","Down")*speed) + apply_force(moveVector) + #set_axis_velocity(moveVector) + pass |