mantain mask, purple attack, star enemy
This commit is contained in:
parent
66ecb04bd1
commit
e32ed2f53a
10 changed files with 213 additions and 18 deletions
|
|
@ -1,6 +1,6 @@
|
|||
[gd_scene format=3 uid="uid://ya6jfltqnl1b"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://buamdls133c2e" path="res://scripts/star_enemy.gd" id="1_o614x"]
|
||||
[ext_resource type="Script" uid="uid://bprbgsk73wmb8" path="res://scripts/heart_enemy.gd" id="1_o614x"]
|
||||
[ext_resource type="Resource" uid="uid://jar2mye8do0c" path="res://resources/hearts.tres" id="2_2tr1s"]
|
||||
[ext_resource type="PackedScene" uid="uid://c8l24d01bm2sg" path="res://scenes/enemy_explosion.tscn" id="3_n20dk"]
|
||||
[ext_resource type="Script" uid="uid://synocbtvgrf4" path="res://scripts/shadow.gd" id="4_ul27a"]
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
[gd_scene format=3 uid="uid://ncgwx0yjn2gt"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://sbseykg05177" path="res://scripts/player.gd" id="1_ur7pv"]
|
||||
[ext_resource type="Resource" uid="uid://dquluu05ho3f4" path="res://resources/empty_mask.tres" id="2_3v2ag"]
|
||||
[ext_resource type="Resource" uid="uid://butr81mog5qjy" path="res://resources/purple_attack.tres" id="2_3v2ag"]
|
||||
[ext_resource type="PackedScene" uid="uid://bp45yth1y3ia5" path="res://scenes/player_explosion.tscn" id="3_3v2ag"]
|
||||
[ext_resource type="Script" uid="uid://synocbtvgrf4" path="res://scripts/shadow.gd" id="4_3v2ag"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3abeekjumqyb" path="res://assets/player/maske1.png" id="5_jej6c"]
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
83
scenes/star_enemy.tscn
Normal file
83
scenes/star_enemy.tscn
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
[gd_scene format=3 uid="uid://1fqyupmquole"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://buamdls133c2e" path="res://scripts/star_enemy.gd" id="1_2mruc"]
|
||||
[ext_resource type="Resource" uid="uid://0mtm64s4jthn" path="res://resources/stars.tres" id="2_7vuyl"]
|
||||
[ext_resource type="PackedScene" uid="uid://c8l24d01bm2sg" path="res://scenes/enemy_explosion.tscn" id="3_f4jcd"]
|
||||
[ext_resource type="Script" uid="uid://synocbtvgrf4" path="res://scripts/shadow.gd" id="4_dlviu"]
|
||||
[ext_resource type="Texture2D" uid="uid://ddakqxdesvjk5" path="res://assets/enemies/orange-4.png" id="5_7vuyl"]
|
||||
[ext_resource type="Texture2D" uid="uid://b50fgyydmulf0" path="res://assets/enemies/orange-5.png" id="6_cwyt1"]
|
||||
[ext_resource type="Texture2D" uid="uid://bfbfyfcwftsvp" path="res://assets/enemies/orange-6.png" id="7_h1v7d"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwc2hmfei47bv" path="res://assets/enemies/orange-7.png" id="8_ihd2g"]
|
||||
[ext_resource type="Texture2D" uid="uid://trbpyx771jjf" path="res://assets/enemies/orange-8.png" id="9_b7rn8"]
|
||||
[ext_resource type="Texture2D" uid="uid://cool8ppma50uo" path="res://assets/enemies/orange-1.png" id="10_6vpiu"]
|
||||
[ext_resource type="Texture2D" uid="uid://2qt27ivjbkma" path="res://assets/enemies/orange-2.png" id="11_jel63"]
|
||||
[ext_resource type="Texture2D" uid="uid://cns03w1c34gq5" path="res://assets/enemies/orange-3.png" id="12_sonmy"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_rs3ab"]
|
||||
radius = 16.0
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_w150n"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_7vuyl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_cwyt1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("7_h1v7d")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("8_ihd2g")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("9_b7rn8")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"attack",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("10_6vpiu")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("11_jel63")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("12_sonmy")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="RangedEnemy" type="CharacterBody2D" unique_id=93153910 node_paths=PackedStringArray("main_visual") groups=["enemy"]]
|
||||
collision_layer = 2
|
||||
collision_mask = 3
|
||||
script = ExtResource("1_2mruc")
|
||||
attack_charge_time = 0.5
|
||||
flee_range = 130.0
|
||||
approach_range = 220.0
|
||||
current_mask_data = ExtResource("2_7vuyl")
|
||||
move_speed = 40.0
|
||||
main_visual = NodePath("Anim")
|
||||
death_scene = ExtResource("3_f4jcd")
|
||||
|
||||
[node name="Shadow" type="Node2D" parent="." unique_id=1651361569]
|
||||
position = Vector2(0, 16)
|
||||
script = ExtResource("4_dlviu")
|
||||
metadata/_custom_type_script = "uid://synocbtvgrf4"
|
||||
|
||||
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="." unique_id=1882108293]
|
||||
radius = 40.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1216246343]
|
||||
shape = SubResource("CircleShape2D_rs3ab")
|
||||
|
||||
[node name="Anim" type="AnimatedSprite2D" parent="." unique_id=1041580697]
|
||||
modulate = Color(0.94509804, 0.94509804, 0.94509804, 1)
|
||||
sprite_frames = SubResource("SpriteFrames_w150n")
|
||||
autoplay = "default"
|
||||
frame_progress = 0.20596069
|
||||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue