mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-06 07:50:22 +01:00
This makes demos render correctly on hiDPI displays, while also demonstrating how to handle multiple resolutions. The 3D in 2D demo now uses "3D No-Effects" for the 3D viewport, which is faster to render. Thanks to this, 4× MSAA is now enabled for a better result. The background loading demo now uses mipmaps for better-looking images. The material testers demo now samples mouse input in a resolution-independent manner when panning. Default clear colors were also changed in some projects for visual consistency with the project's theme.
16 lines
333 B
GDScript
16 lines
333 B
GDScript
extends Panel
|
|
|
|
onready var fsm_node = get_node("../../Player/StateMachine")
|
|
|
|
func _process(delta):
|
|
var states_names = ''
|
|
var numbers = ''
|
|
var index = 0
|
|
for state in fsm_node.states_stack:
|
|
states_names += state.get_name() + '\n'
|
|
numbers += str(index) + '\n'
|
|
index += 1
|
|
|
|
$States.text = states_names
|
|
$Numbers.text = numbers
|