The_Dark_Side_of_Earth/utils/show_fps.gd

4 lines
165 B
GDScript

extends Label
func _process(_delta):
set_text("FPS " + str(Engine.get_frames_per_second()) + ", ANGLE " + str(floor((%Player.position.angle() + PI) / TAU * 360)))