summaryrefslogtreecommitdiff
path: root/game/microgames/heart_break/player_heart.gd
blob: 66847bb8ec624a0c49a58e5e7ca35433ef2b613b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extends RigidBody2D

var speed = 250
var playerControl = true

# 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):
	if(playerControl):
		var moveVector = Vector2(Input.get_axis("Left","Right")*speed, Input.get_axis("Up","Down")*speed)
		apply_force(moveVector)
	pass