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:
parent
214e0aa5e0
commit
ff62d67f54
37 changed files with 1484 additions and 49 deletions
1
enemies/scripts/enemy.gd
Normal file
1
enemies/scripts/enemy.gd
Normal file
|
|
@ -0,0 +1 @@
|
|||
extends Node
|
||||
1
enemies/scripts/enemy.gd.uid
Normal file
1
enemies/scripts/enemy.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://btwllkb7meyrw
|
||||
70
enemies/test_enemy.tscn
Normal file
70
enemies/test_enemy.tscn
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
[gd_scene load_steps=10 format=3 uid="uid://cait7d0k1kmsq"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://gan2vkax8nwy" path="res://assets/sprites/enemies/slimes_blue.png" id="1_lcl3f"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_2bghh"]
|
||||
radius = 14.0357
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8ifd5"]
|
||||
atlas = ExtResource("1_lcl3f")
|
||||
region = Rect2(0, 0, 46, 33)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bkvxi"]
|
||||
atlas = ExtResource("1_lcl3f")
|
||||
region = Rect2(46, 0, 46, 33)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_if8y3"]
|
||||
atlas = ExtResource("1_lcl3f")
|
||||
region = Rect2(92, 0, 46, 33)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_evp1i"]
|
||||
atlas = ExtResource("1_lcl3f")
|
||||
region = Rect2(138, 0, 46, 33)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_38q4i"]
|
||||
atlas = ExtResource("1_lcl3f")
|
||||
region = Rect2(184, 0, 46, 33)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8o875"]
|
||||
atlas = ExtResource("1_lcl3f")
|
||||
region = Rect2(230, 0, 46, 33)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_ciurg"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8ifd5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bkvxi")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_if8y3")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_evp1i")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_38q4i")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8o875")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="TestEnemy" type="CharacterBody2D" groups=["enemies"]]
|
||||
collision_layer = 8
|
||||
collision_mask = 7
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, 1)
|
||||
shape = SubResource("CircleShape2D_2bghh")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_ciurg")
|
||||
animation = &"idle"
|
||||
autoplay = "idle"
|
||||
frame_progress = 0.531099
|
||||
Loading…
Add table
Add a link
Reference in a new issue