First Commit

This commit is contained in:
2026-05-24 17:10:09 -03:00
commit 0b0113fbde
222 changed files with 67094 additions and 0 deletions
@@ -0,0 +1,36 @@
extends Node3D
@onready var _animation_tree: AnimationTree = $AnimationTree
@onready var _main_state_machine: AnimationNodeStateMachinePlayback = _animation_tree.get("parameters/StateMachine/playback")
@onready var _secondary_action_timer: Timer = $SecondaryActionTimer
func _on_secondary_action_timer_timeout() -> void:
if _main_state_machine.get_current_node() != "Idle":
return
_main_state_machine.travel("Shake")
_secondary_action_timer.start(randf_range(3.0, 8.0))
## Sets the model to a neutral, action-free state.
func idle() -> void:
_main_state_machine.travel("Idle")
_secondary_action_timer.start()
## Sets the model to a walking animation or forward movement.
func walk() -> void:
_main_state_machine.travel("Walk")
## Plays a one-shot attack animation.
## This animation does not play in parallel with other states.
func attack() -> void:
_main_state_machine.travel("Attack")
## Plays a one-shot power-off animation.
## This animation does not play in parallel with other states.
func power_off() -> void:
_main_state_machine.travel("PowerOff")
_secondary_action_timer.stop()
@@ -0,0 +1 @@
uid://bayxkg4v3lp4r
File diff suppressed because one or more lines are too long
@@ -0,0 +1,15 @@
[gd_resource type="ShaderMaterial" format=3 uid="uid://dg5h8p8fu3mhh"]
[ext_resource type="Shader" uid="uid://dmqt66iywru6d" path="res://test/assets/addons/gdquest_models_shared/shaders/screen_shader.gdshader" id="1_n44cl"]
[ext_resource type="Texture2D" uid="uid://bvxkh2pa1nqdq" path="res://test/assets/addons/gdquest_models_shared/textures/eye_mask.png" id="2_hdljt"]
[resource]
render_priority = 0
shader = ExtResource("1_n44cl")
shader_parameter/face_texture = ExtResource("2_hdljt")
shader_parameter/intensity = 1.25
shader_parameter/screen_color = Color(0.619608, 0.862745, 0, 0.0784314)
shader_parameter/screen_red_offset = Vector2(0, 0)
shader_parameter/screen_green_offset = Vector2(0, 0)
shader_parameter/screen_blue_offset = Vector2(0, 0)
shader_parameter/pixel_size = 32.0
@@ -0,0 +1,7 @@
[gd_resource type="StandardMaterial3D" format=3 uid="uid://h2e57pyy6lu4"]
[resource]
albedo_color = Color(0.470588, 0.470588, 0.470588, 1)
emission_enabled = true
emission = Color(0.619608, 0.862745, 0, 1)
emission_energy_multiplier = 1.25
File diff suppressed because it is too large Load Diff