forked from funnymemellama/funnymemellama
Quantum
dabd5253ad
Made player "ball" smaller and closer Added key overlay Added F1 to toggle "Mapentities"
15 lines
269 B
GDScript
15 lines
269 B
GDScript
extends Label
|
|
|
|
var keys = []
|
|
|
|
func _input(event):
|
|
if event is InputEventKey:
|
|
var key = OS.get_keycode_string(event.key_label)
|
|
if event.pressed:
|
|
if not keys.has(key):
|
|
keys.append(key)
|
|
else:
|
|
if keys.has(key):
|
|
keys.erase(key)
|
|
|
|
text = ' '.join(keys)
|