mantain mask, purple attack, star enemy

This commit is contained in:
Daniel Kauss Serna 2026-04-17 17:26:01 +02:00
parent 66ecb04bd1
commit e32ed2f53a
10 changed files with 213 additions and 18 deletions

View file

@ -4,6 +4,7 @@
[ext_resource type="Texture2D" uid="uid://cabc77u0tblxv" path="res://assets/masks/purple_attack-2.png" id="2_yhwo8"]
[ext_resource type="Texture2D" uid="uid://c4osojc1tqf77" path="res://assets/masks/purple_attack-1.png" id="3_7i1k2"]
[ext_resource type="Script" uid="uid://ejd25ul4j5pp" path="res://scripts/hitbox.gd" id="4_7i1k2"]
[ext_resource type="Texture2D" uid="uid://d1ybbm5tk1tbd" path="res://assets/vfx/particle_star.png" id="5_vnsf0"]
[sub_resource type="Animation" id="Animation_vnsf0"]
length = 0.001
@ -55,6 +56,30 @@ tracks/3/keys = {
"update": 1,
"values": [false]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("../GPUParticles2D:emitting")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath(".:modulate")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
[sub_resource type="Animation" id="Animation_ev5qi"]
resource_name = "attack"
@ -101,7 +126,7 @@ tracks/3/path = NodePath("../..")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0.53333336),
"times": PackedFloat32Array(1.0333333),
"transitions": PackedFloat32Array(1),
"values": [{
"args": [],
@ -115,10 +140,34 @@ tracks/4/path = NodePath("Hitbox:monitoring")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0, 0.36666667),
"transitions": PackedFloat32Array(1, 1),
"times": PackedFloat32Array(0, 0.36666667, 0.6333333),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 1,
"values": [false, true]
"values": [false, true, false]
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath("../GPUParticles2D:emitting")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(0.3),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
tracks/6/type = "value"
tracks/6/imported = false
tracks/6/enabled = true
tracks/6/path = NodePath(".:modulate")
tracks/6/interp = 1
tracks/6/loop_wrap = true
tracks/6/keys = {
"times": PackedFloat32Array(0.6, 0.82),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_0qdgb"]
@ -127,6 +176,25 @@ _data = {
&"attack": SubResource("Animation_ev5qi")
}
[sub_resource type="Curve" id="Curve_vnsf0"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.6351352, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 3
[sub_resource type="CurveTexture" id="CurveTexture_ev5qi"]
curve = SubResource("Curve_vnsf0")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_ev5qi"]
particle_flag_disable_z = true
angle_min = -720.0
angle_max = 720.0
spread = 180.0
initial_velocity_max = 186.28
gravity = Vector3(0, -98, 0)
scale_min = 2.0
scale_max = 10.0
color = Color(0.2231029, 0.2231029, 0.22310287, 1)
alpha_curve = SubResource("CurveTexture_ev5qi")
[sub_resource type="SpriteFrames" id="SpriteFrames_2rf1b"]
animations = [{
"frames": [{
@ -156,6 +224,17 @@ root_node = NodePath("../AnimatedSprite2D")
libraries/ = SubResource("AnimationLibrary_0qdgb")
autoplay = &"attack"
[node name="GPUParticles2D" type="GPUParticles2D" parent="Node2D" unique_id=1940209552]
position = Vector2(3, 29.5)
scale = Vector2(0.5, 0.5)
emitting = false
amount = 64
texture = ExtResource("5_vnsf0")
lifetime = 0.5
one_shot = true
explosiveness = 1.0
process_material = SubResource("ParticleProcessMaterial_ev5qi")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Node2D" unique_id=291763539]
position = Vector2(-3, -3)
sprite_frames = SubResource("SpriteFrames_2rf1b")