[gd_scene load_steps=15 format=3 uid="uid://cwyxi1uihf35y"] [ext_resource type="Script" uid="uid://mshpvsyuw15j" path="res://Scripts/Classes/Entities/Enemies/LeapingCheepCheep.gd" id="1_pbhdk"] [ext_resource type="Texture2D" uid="uid://dbq7oso3fo4n6" path="res://Assets/Sprites/Enemies/CheepCheep.png" id="2_pbhdk"] [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_11skd"] [ext_resource type="JSON" path="res://Assets/Sprites/Enemies/RedCheepCheep.json" id="4_hwpvb"] [ext_resource type="Script" uid="uid://chj8hu207lrh" path="res://Scripts/Classes/Components/EnemyPlayerDetection.gd" id="4_w3x8m"] [ext_resource type="Script" uid="uid://c3gg32ivrlq8n" path="res://Scripts/Classes/Components/GibSpawner.gd" id="5_upc6k"] [ext_resource type="Script" uid="uid://dri2d5jtu0fbq" path="res://Scripts/Classes/Components/FireballDetection.gd" id="6_l756v"] [ext_resource type="Script" uid="uid://5octqlf4ohel" path="res://Scripts/Classes/Components/ScoreNoteSpawner.gd" id="6_upc6k"] [ext_resource type="Script" uid="uid://bbww34oiexbx2" path="res://Scripts/Classes/Components/ShellDetection.gd" id="7_813ad"] [ext_resource type="Script" uid="uid://ba18grqjixded" path="res://Scripts/Classes/Components/ExplosionDetection.gd" id="10_hwpvb"] [sub_resource type="AtlasTexture" id="AtlasTexture_ojki6"] atlas = ExtResource("2_pbhdk") region = Rect2(0, 16, 16, 16) [sub_resource type="AtlasTexture" id="AtlasTexture_w3x8m"] atlas = ExtResource("2_pbhdk") region = Rect2(16, 16, 16, 16) [sub_resource type="SpriteFrames" id="SpriteFrames_upc6k"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_ojki6") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_w3x8m") }], "loop": true, "name": &"default", "speed": 5.0 }] [sub_resource type="RectangleShape2D" id="RectangleShape2D_ojki6"] size = Vector2(12, 12) [node name="LeapingCheepCheep" type="CharacterBody2D" node_paths=PackedStringArray("on_screen_enabler", "score_note_adder") groups=["Enemies"]] script = ExtResource("1_pbhdk") on_screen_enabler = NodePath("VisibleOnScreenNotifier2D") score_note_adder = NodePath("ScoreNoteSpawner") metadata/_custom_type_script = "uid://bpydbpyjk1mt4" [node name="Sprite" type="AnimatedSprite2D" parent="."] position = Vector2(0, -8) scale = Vector2(-1, 1) sprite_frames = SubResource("SpriteFrames_upc6k") autoplay = "default" frame_progress = 0.0672909 flip_h = true [node name="ResourceSetterNew" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")] script = ExtResource("3_11skd") node_to_affect = NodePath("..") property_name = "sprite_frames" resource_json = ExtResource("4_hwpvb") metadata/_custom_type_script = "uid://cbal8ms2oe1ik" [node name="Hitbox" type="Area2D" parent="."] [node name="Shape" type="CollisionShape2D" parent="Hitbox"] position = Vector2(0, -6) shape = SubResource("RectangleShape2D_ojki6") [node name="EnemyPlayerDetection" type="Node" parent="." node_paths=PackedStringArray("hitbox")] script = ExtResource("4_w3x8m") hitbox = NodePath("../Hitbox") metadata/_custom_type_script = "uid://chj8hu207lrh" [node name="GibSpawner" type="Node" parent="." node_paths=PackedStringArray("visuals")] script = ExtResource("5_upc6k") visuals = NodePath("../Sprite") metadata/_custom_type_script = "uid://c3gg32ivrlq8n" [node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."] position = Vector2(0, -8) [node name="ScoreNoteSpawner" type="Node" parent="."] script = ExtResource("6_upc6k") add_score = true metadata/_custom_type_script = "uid://5octqlf4ohel" [node name="FireballDetection" type="Node" parent="." node_paths=PackedStringArray("hitbox")] script = ExtResource("6_l756v") hitbox = NodePath("../Hitbox") metadata/_custom_type_script = "uid://dri2d5jtu0fbq" [node name="ShellDetection" type="Node" parent="." node_paths=PackedStringArray("hitbox")] script = ExtResource("7_813ad") hitbox = NodePath("../Hitbox") metadata/_custom_type_script = "uid://bbww34oiexbx2" [node name="Line2D" type="Line2D" parent="."] visible = false top_level = true visibility_layer = 2 texture_repeat = 2 width = 1.0 texture_mode = 1 [node name="ExplosionDetection" type="Node" parent="." node_paths=PackedStringArray("hitbox")] script = ExtResource("10_hwpvb") hitbox = NodePath("../Hitbox") metadata/_custom_type_script = "uid://ba18grqjixded" [connection signal="killed" from="." to="GibSpawner" method="summon_gib"] [connection signal="hammer_player_hit" from="EnemyPlayerDetection" to="." method="die_from_hammer"] [connection signal="invincible_player_hit" from="EnemyPlayerDetection" to="." method="die_from_object"] [connection signal="player_hit" from="EnemyPlayerDetection" to="." method="damage_player"] [connection signal="player_stomped_on" from="EnemyPlayerDetection" to="GibSpawner" method="stomp_die"] [connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="queue_free"] [connection signal="fireball_hit" from="FireballDetection" to="." method="die_from_object"] [connection signal="fireball_hit" from="FireballDetection" to="ScoreNoteSpawner" method="spawn_note" binds= [200]] [connection signal="moving_shell_entered" from="ShellDetection" to="." method="die_from_object"] [connection signal="explosion_entered" from="ExplosionDetection" to="." method="die_from_object"] [connection signal="explosion_entered" from="ExplosionDetection" to="ScoreNoteSpawner" method="spawn_note" binds= [200]]