Teleport animation

This commit is contained in:
MaddoScientisto 2025-02-22 14:45:46 +01:00
commit 4a8ac7a495
8 changed files with 269 additions and 5 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=36 format=3 uid="uid://bghghp5ep4w2j"]
[gd_scene load_steps=38 format=3 uid="uid://bghghp5ep4w2j"]
[ext_resource type="Script" path="res://Scripts/PlayerMovement.cs" id="1_m27vu"]
[ext_resource type="Texture2D" uid="uid://la06powu57hu" path="res://Sprites/Cirno_Big.png" id="2_bwf6x"]
@ -9,6 +9,7 @@
[ext_resource type="Script" path="res://addons/smoothing/smoothing_2d.gd" id="4_j4xhu"]
[ext_resource type="Texture2D" uid="uid://ddwhrlrgj6i00" path="res://Sprites/Actors/Cirno.png" id="5_hq878"]
[ext_resource type="PackedScene" uid="uid://cfb3nsay84xdb" path="res://Scenes/Weapons/crosshair.tscn" id="6_l43rf"]
[ext_resource type="Shader" path="res://Shaders/Blink.gdshader" id="6_xugve"]
[ext_resource type="Texture2D" uid="uid://bf37ce6jskdel" path="res://Sprites/SmallHitbox.png" id="7_msn8i"]
[ext_resource type="Script" path="res://Scenes/InteractionController.cs" id="7_uvgjg"]
[ext_resource type="Texture2D" uid="uid://bwjrdlnysft15" path="res://Sprites/Actors/Focus_Circle.png" id="8_1og8b"]
@ -23,6 +24,14 @@ size = Vector2(6, 6)
atlas = ExtResource("2_bwf6x")
region = Rect2(0, 0, 8, 16)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_s7co1"]
resource_local_to_scene = true
shader = ExtResource("6_xugve")
shader_parameter/blink_color = Color(1, 1, 1, 1)
shader_parameter/blink_intensity = 0.0
shader_parameter/teleport_progress = 0.0
shader_parameter/scanline_density = 0.0
[sub_resource type="AtlasTexture" id="AtlasTexture_6tpxx"]
atlas = ExtResource("5_hq878")
region = Rect2(0, 0, 16, 16)
@ -175,6 +184,7 @@ SelectorScene = ExtResource("3_8wt6s")
GameOverScene = "res://Scenes/GameOver.tscn"
WingsSprite = ExtResource("3_ul15q")
Muzzle = NodePath("Muzzle")
BlinkShader = ExtResource("6_xugve")
HitboxSprite = NodePath("Smoothing2D/HitboxSprite")
_deathParticles = ExtResource("4_1bl4h")
metadata/_edit_group_ = true
@ -200,6 +210,7 @@ frame = 1
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Smoothing2D" groups=["player_sprite"]]
y_sort_enabled = true
material = SubResource("ShaderMaterial_s7co1")
sprite_frames = SubResource("SpriteFrames_q0rt3")
animation = &"walk_up"
frame = 1