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
|
|
@ -4,7 +4,7 @@ class_name PlayerMovement
|
|||
|
||||
var player: CharacterBody2D
|
||||
var animated_sprite: AnimatedSprite2D
|
||||
var speed: float = 300.0
|
||||
var speed: float
|
||||
var last_direction: Vector2 = Vector2.ZERO
|
||||
|
||||
func process(_delta):
|
||||
|
|
@ -36,6 +36,9 @@ func process(_delta):
|
|||
|
||||
func update_animation(direction):
|
||||
var anim_name = "idle" # Default animation
|
||||
|
||||
if animated_sprite.animation == "throw":
|
||||
return # Don't change animation if throwing
|
||||
|
||||
if direction == Vector2.ZERO:
|
||||
# Character is idle
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue