Subindo repositorio
This commit is contained in:
1 parent
9db1e98761
commit
d01e2e8578
493 files changed
+63532
No files matched your search
@@ -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 it is too large.
Load diff
@@ -0,0 +1,15 @@
|
||||
[gd_resource type="ShaderMaterial" load_steps=3 format=3 uid="uid://dg5h8p8fu3mhh"]
|
||||
|
||||
[ext_resource type="Shader" uid="uid://dmqt66iywru6d" path="res://addons/gdquest_models_shared/shaders/screen_shader.gdshader" id="1_n44cl"]
|
||||
[ext_resource type="Texture2D" uid="uid://bvxkh2pa1nqdq" path="res://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
|
||||
Binary file not shown.
File diff suppressed because it is too large.
Load diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user