Adds in-game debug menu addon

Adds an in-game debug menu that displays performance metrics (FPS, frame times) and hardware/software information.

The menu can be toggled using the F3 key (or a custom input binding). It has different display styles, ranging from a compact FPS display to a detailed view with graphs and system information.
This commit is contained in:
Dan Baker 2025-05-04 17:53:46 +01:00
parent 214e0aa5e0
commit ff62d67f54
37 changed files with 1484 additions and 49 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=82 format=3 uid="uid://bo5aw2cad3akl"]
[gd_scene load_steps=83 format=3 uid="uid://bo5aw2cad3akl"]
[ext_resource type="Script" uid="uid://bq038uo4cm6nv" path="res://player/scripts/player.gd" id="1_oul6g"]
[ext_resource type="Texture2D" uid="uid://dqgq2c1h6yk3k" path="res://assets/sprites/characters/pink/Pink_Monster_Attack1_4.png" id="2_yllr7"]
@ -13,6 +13,7 @@
[ext_resource type="Texture2D" uid="uid://538sc3bsdell" path="res://assets/sprites/characters/pink/Pink_Monster_Throw_4.png" id="11_bjvpn"]
[ext_resource type="Texture2D" uid="uid://efnfh4mf0ia2" path="res://assets/sprites/characters/pink/Pink_Monster_Walk_6.png" id="12_s7qer"]
[ext_resource type="Texture2D" uid="uid://cyfq0x0h2qeof" path="res://assets/sprites/characters/pink/Pink_Monster_Walk+Attack_6.png" id="13_g4c7l"]
[ext_resource type="PackedScene" uid="uid://cgxn1f4p4vik6" path="res://assets/weapons/ranged_weapon.tscn" id="14_kb6p2"]
[sub_resource type="CircleShape2D" id="CircleShape2D_rkbax"]
@ -541,7 +542,7 @@ animations = [{
"speed": 5.0
}]
[node name="Player" type="CharacterBody2D"]
[node name="Player" type="CharacterBody2D" groups=["friendly"]]
collision_mask = 14
script = ExtResource("1_oul6g")
@ -551,8 +552,11 @@ shape = SubResource("CircleShape2D_rkbax")
[node name="PlayerSprite" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_qjt2w")
animation = &"attack_2"
frame_progress = 0.752485
animation = &"idle"
autoplay = "idle"
frame_progress = 0.749332
[node name="Camera2D" type="Camera2D" parent="."]
zoom = Vector2(2, 2)
[node name="RangedWeapon" parent="." instance=ExtResource("14_kb6p2")]