1bit-game-jam/prefabs/enemies/living_armor.tscn

32 lines
1.3 KiB
Text

[gd_scene load_steps=5 format=3 uid="uid://bpusphyhhg074"]
[ext_resource type="SpriteFrames" uid="uid://cw4pv1qucngxu" path="res://sprites/enemies/armor/living_armor.tres" id="1_j445m"]
[ext_resource type="Script" path="res://scripts/enemies/LivingArmor.cs" id="1_ofbsx"]
[ext_resource type="PackedScene" uid="uid://cf0wpahgwygxx" path="res://prefabs/light_sense.tscn" id="2_xkyos"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_d1ojb"]
size = Vector2(15, 15)
[node name="LivingArmor" type="CharacterBody2D"]
collision_layer = 5
collision_mask = 5
script = ExtResource("1_ofbsx")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = ExtResource("1_j445m")
animation = &"down_walk"
frame_progress = 0.454965
[node name="Sprite2D" type="Sprite2D" parent="AnimatedSprite2D"]
[node name="LightSense" parent="." instance=ExtResource("2_xkyos")]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="LightSense"]
polygon = PackedVector2Array(-7, -4, -7, 15, 8, 15, 8, -4, 5, -11, -4, -11)
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0.5, 7.5)
shape = SubResource("RectangleShape2D_d1ojb")
[connection signal="area_entered" from="LightSense" to="." method="_OnLightEntered"]
[connection signal="area_exited" from="LightSense" to="." method="_OnLightExited"]