Добавлен босс
This commit is contained in:
parent
b01a092fdb
commit
66558fb1e3
12 changed files with 360 additions and 9 deletions
29
prefabs/enemies/boss/boss.tscn
Normal file
29
prefabs/enemies/boss/boss.tscn
Normal file
|
@ -0,0 +1,29 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://cpi5lgdlnvhlg"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/enemies/Boss.cs" id="1_jbh6o"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://dmjrl5432nw0h" path="res://sprites/enemies/boss/boss.tres" id="1_ktxai"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ed3jd"]
|
||||
radius = 20.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_5aovn"]
|
||||
radius = 14.0
|
||||
|
||||
[node name="boss" type="CharacterBody2D"]
|
||||
script = ExtResource("1_jbh6o")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = ExtResource("1_ktxai")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="AnimatedSprite2D"]
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
shape = SubResource("CircleShape2D_ed3jd")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -2)
|
||||
shape = SubResource("CircleShape2D_5aovn")
|
||||
|
||||
[connection signal="body_entered" from="Area2D" to="." method="_OnAttack"]
|
31
prefabs/enemies/boss/claw.tscn
Normal file
31
prefabs/enemies/boss/claw.tscn
Normal file
|
@ -0,0 +1,31 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://bihh0dp1vbqfu"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/enemies/Claw.cs" id="1_gwnpn"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://cv5pr1b527h20" path="res://sprites/enemies/boss/clow.tres" id="1_wyb73"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_v67co"]
|
||||
radius = 14.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_smr3g"]
|
||||
radius = 20.0
|
||||
|
||||
[node name="claw" type="CharacterBody2D"]
|
||||
script = ExtResource("1_gwnpn")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = ExtResource("1_wyb73")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="AnimatedSprite2D"]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(-2, 0)
|
||||
shape = SubResource("CircleShape2D_v67co")
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
position = Vector2(-2, 0)
|
||||
shape = SubResource("CircleShape2D_smr3g")
|
||||
|
||||
[connection signal="body_entered" from="Area2D" to="." method="_OnEntered"]
|
||||
[connection signal="body_exited" from="Area2D" to="." method="_OnExited"]
|
Loading…
Add table
Add a link
Reference in a new issue