forked from funnymemellama/funnymemellama
17 lines
460 B
GDScript
17 lines
460 B
GDScript
extends Node
|
|
|
|
|
|
# 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 _process(delta):
|
|
$Speed.text = 'Speed: {0}'.format([$Player.velocity.length()])
|
|
|
|
|
|
func _input(event: InputEvent):
|
|
if event is InputEventKey:
|
|
if event.keycode == KEY_F1 and not event.pressed:
|
|
$Mapentities.visible = not $Mapentities.visible
|