mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-26 09:06:22 +03:00
f3c311be58
This should make it easier for new people to contribute.
12 lines
314 B
GDScript
12 lines
314 B
GDScript
extends KinematicBody2D
|
|
|
|
export var speed = 800
|
|
|
|
func _ready():
|
|
pass
|
|
|
|
func _process(delta):
|
|
var right = Input.get_action_strength("right") - Input.get_action_strength("left")
|
|
var down = Input.get_action_strength("down") - Input.get_action_strength("up")
|
|
move_and_slide(Vector2(right, down).normalized()*speed)
|