| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- [gd_scene load_steps=15 format=3 uid="uid://bi1hb03wk001p"]
- [ext_resource type="Script" uid="uid://bpydbpyjk1mt4" path="res://Scripts/Classes/Entities/Enemy.gd" id="1_cgdwi"]
- [ext_resource type="Texture2D" uid="uid://dg7yxoq44gaae" path="res://Assets/Sprites/Enemies/Muncher.png" id="2_ad4wf"]
- [ext_resource type="Script" uid="uid://caq1qiwmy0mox" path="res://Scripts/Parts/BetterAnimatedSprite.gd" id="2_fcan1"]
- [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="4_6tj01"]
- [ext_resource type="Script" uid="uid://cnheej0sxmoxg" path="res://Scripts/Parts/PlayerDetection.gd" id="4_ad4wf"]
- [ext_resource type="JSON" path="res://Assets/Sprites/Enemies/Muncher.json" id="5_cgdwi"]
- [ext_resource type="Script" uid="uid://5octqlf4ohel" path="res://Scripts/Classes/Components/ScoreNoteSpawner.gd" id="5_r7ue2"]
- [ext_resource type="Script" uid="uid://bx6r8sjar6cwr" path="res://Scripts/Classes/Components/BasicStaticMovement.gd" id="8_3kryf"]
- [sub_resource type="AtlasTexture" id="AtlasTexture_r7ue2"]
- atlas = ExtResource("2_ad4wf")
- region = Rect2(0, 0, 16, 16)
- [sub_resource type="AtlasTexture" id="AtlasTexture_60xif"]
- atlas = ExtResource("2_ad4wf")
- region = Rect2(16, 0, 16, 16)
- [sub_resource type="SpriteFrames" id="SpriteFrames_6tj01"]
- animations = [{
- "frames": [{
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_r7ue2")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_60xif")
- }],
- "loop": true,
- "name": &"default",
- "speed": 5.0
- }]
- [sub_resource type="RectangleShape2D" id="RectangleShape2D_cgdwi"]
- size = Vector2(15.9, 16)
- [sub_resource type="RectangleShape2D" id="RectangleShape2D_r7ue2"]
- size = Vector2(17, 18.5)
- [sub_resource type="RectangleShape2D" id="RectangleShape2D_3kryf"]
- size = Vector2(16, 16)
- [node name="Muncher" type="CharacterBody2D" node_paths=PackedStringArray("on_screen_enabler", "score_note_adder") groups=["Enemies"]]
- disable_mode = 1
- collision_layer = 20
- collision_mask = 4114
- script = ExtResource("1_cgdwi")
- on_screen_enabler = NodePath("VisibleOnScreenEnabler2D")
- score_note_adder = NodePath("ScoreNoteSpawner")
- metadata/_custom_type_script = "uid://bpydbpyjk1mt4"
- metadata/block_spawn_offset = Vector2(0, -8)
- [node name="Sprite" type="AnimatedSprite2D" parent="."]
- sprite_frames = SubResource("SpriteFrames_6tj01")
- frame_progress = 0.602985
- script = ExtResource("2_fcan1")
- do_offset = false
- metadata/_custom_type_script = "uid://caq1qiwmy0mox"
- [node name="ResourceSetterNew" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")]
- script = ExtResource("4_6tj01")
- node_to_affect = NodePath("..")
- property_name = "sprite_frames"
- resource_json = ExtResource("5_cgdwi")
- metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
- [node name="Collision" type="CollisionShape2D" parent="."]
- shape = SubResource("RectangleShape2D_cgdwi")
- one_way_collision = true
- [node name="PlayerDetection" type="Area2D" parent="."]
- script = ExtResource("4_ad4wf")
- metadata/_custom_type_script = "uid://cnheej0sxmoxg"
- [node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerDetection"]
- position = Vector2(0, -0.75)
- shape = SubResource("RectangleShape2D_r7ue2")
- [node name="VisibleOnScreenEnabler2D" type="VisibleOnScreenEnabler2D" parent="."]
- [node name="ScoreNoteSpawner" type="Node" parent="."]
- script = ExtResource("5_r7ue2")
- metadata/_custom_type_script = "uid://5octqlf4ohel"
- [node name="Movement" type="Node" parent="."]
- script = ExtResource("8_3kryf")
- [node name="AnimatableBody2D" type="AnimatableBody2D" parent="."]
- collision_layer = 33
- collision_mask = 0
- sync_to_physics = false
- [node name="CollisionShape2D" type="CollisionShape2D" parent="AnimatableBody2D"]
- shape = SubResource("RectangleShape2D_3kryf")
- [connection signal="player_entered" from="PlayerDetection" to="." method="damage_player"]
|