diff options
author | Marcelo Costa <marcardion@gmail.com> | 2024-01-26 23:39:05 -0300 |
---|---|---|
committer | Marcelo Costa <marcardion@gmail.com> | 2024-01-26 23:39:05 -0300 |
commit | 620fba1078b9d65eaca10cf1ab90579ab70cb772 (patch) | |
tree | 59506e4d11ae681cd565d88268b23abf7036ca10 /game/microgames/heart_break/player_heart.gd | |
parent | d23ec4f11ffec4892d18ed07f360ed45b0c52dbc (diff) | |
download | gamejam-ggj-2024-620fba1078b9d65eaca10cf1ab90579ab70cb772.tar.gz gamejam-ggj-2024-620fba1078b9d65eaca10cf1ab90579ab70cb772.tar.bz2 gamejam-ggj-2024-620fba1078b9d65eaca10cf1ab90579ab70cb772.zip |
Revert "Revert "Starting HeartBreak Microgame""
This reverts commit d23ec4f11ffec4892d18ed07f360ed45b0c52dbc.
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 |