Small Godot Wild Jam game
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add fps console command

+4
+4
Scripts/global.gd
··· 59 59 60 60 func _init() -> void: 61 61 Console.register_custom_command("debug", _toggle_debug_mode) 62 + Console.register_custom_command("fps", _get_fps) 62 63 #Console.register_custom_command("spawn_doctor", _spawn_unit) 63 64 64 65 func get_target_location() -> Vector2: ··· 103 104 SignalBus.spawn_unit_request.emit(UnitType.DOCTOR) 104 105 105 106 return("Spawning doctor") 107 + 108 + func _get_fps() -> String: 109 + return str(Engine.get_frames_per_second())