2024-01-21 18:18:15 +01:00

32 lines
1.1 KiB
Plaintext

[gd_scene load_steps=6 format=3 uid="uid://bgdkduh2uevft"]
[ext_resource type="Script" path="res://scripts/v2/enemy.gd" id="1_jfeur"]
[ext_resource type="Texture2D" uid="uid://iewpb4eaydo1" path="res://assets/art/Enemies/basic_enemy1.png" id="2_g0kyc"]
[ext_resource type="AudioStream" uid="uid://btf1rlmxtf4bg" path="res://assets/sound/Bomb_Explosion.wav" id="2_pspk3"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_htsfi"]
radius = 3.0
height = 16.0
[sub_resource type="CircleShape2D" id="CircleShape2D_4efxi"]
radius = 64.0
[node name="BasicEnemy" type="CharacterBody2D" node_paths=PackedStringArray("sprite", "detection_area")]
script = ExtResource("1_jfeur")
sprite = NodePath("Sprite2D")
detection_area = NodePath("Area2D")
max_hp = 3
death_sound = ExtResource("2_pspk3")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture_filter = 1
texture = ExtResource("2_g0kyc")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CapsuleShape2D_htsfi")
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_4efxi")