Different enemies with different properties
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=24 format=3 uid="uid://dnoajr7rj2um7"]
|
||||
[gd_scene load_steps=26 format=3 uid="uid://dnoajr7rj2um7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://sh6qqbl8fdrr" path="res://Game/Mobs/enemy.gd" id="1_pq2md"]
|
||||
[ext_resource type="Texture2D" uid="uid://dl2w65j5jq0xc" path="res://Assets/Monsters/1/1_enemies_1_walk_000.png" id="1_ra45u"]
|
||||
@ -22,6 +22,9 @@
|
||||
[ext_resource type="Texture2D" uid="uid://cqvx47l53s1vc" path="res://Assets/Monsters/1/1_enemies_1_walk_018.png" id="19_lbdce"]
|
||||
[ext_resource type="Texture2D" uid="uid://bi4gdl6ovax2j" path="res://Assets/Monsters/1/1_enemies_1_walk_019.png" id="20_garh6"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ra45u"]
|
||||
radius = 32.0
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_gxpsl"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
@ -90,22 +93,35 @@ animations = [{
|
||||
"speed": 20.0
|
||||
}]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_ra45u"]
|
||||
radius = 32.0
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_pq2md"]
|
||||
bg_color = Color(1, 0, 0, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_gxpsl"]
|
||||
bg_color = Color(0, 1, 0, 1)
|
||||
|
||||
[node name="Forkman" type="Node2D"]
|
||||
script = ExtResource("1_pq2md")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(1.625, 0)
|
||||
scale = Vector2(0.206633, 0.191818)
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
scale = Vector2(0.5, 0.5)
|
||||
shape = SubResource("CircleShape2D_ra45u")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="CharacterBody2D"]
|
||||
position = Vector2(10, 0)
|
||||
scale = Vector2(0.2, 0.186)
|
||||
sprite_frames = SubResource("SpriteFrames_gxpsl")
|
||||
animation = &"walk"
|
||||
autoplay = "walk"
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
position = Vector2(-5, 0)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
shape = SubResource("CircleShape2D_ra45u")
|
||||
[node name="ProgressBar" type="ProgressBar" parent="."]
|
||||
offset_left = -15.0
|
||||
offset_top = -30.0
|
||||
offset_right = 15.0
|
||||
offset_bottom = -24.0
|
||||
theme_override_styles/background = SubResource("StyleBoxFlat_pq2md")
|
||||
theme_override_styles/fill = SubResource("StyleBoxFlat_gxpsl")
|
||||
value = 70.0
|
||||
rounded = true
|
||||
show_percentage = false
|
||||
|
Reference in New Issue
Block a user