| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- [gd_scene load_steps=18 format=3 uid="uid://cmbpqnq10arts"]
- [ext_resource type="Script" uid="uid://xwq5ac650e76" path="res://Scripts/Classes/Entities/Items/RedCoin.gd" id="1_c6tmk"]
- [ext_resource type="Texture2D" uid="uid://c8wpxm7b5tgiq" path="res://Assets/Sprites/Items/RedCoin.png" id="2_lwdcj"]
- [ext_resource type="Script" uid="uid://caq1qiwmy0mox" path="res://Scripts/Parts/BetterAnimatedSprite.gd" id="3_0r8d3"]
- [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_0xloa"]
- [ext_resource type="Script" uid="uid://cnheej0sxmoxg" path="res://Scripts/Parts/PlayerDetection.gd" id="3_onh0k"]
- [ext_resource type="Script" uid="uid://cmg61722ktg2m" path="res://Scripts/Classes/Components/BlockBouncingDetection.gd" id="4_lwdcj"]
- [ext_resource type="JSON" path="res://Assets/Sprites/Items/RedCoin.json" id="5_0fjrw"]
- [sub_resource type="AtlasTexture" id="AtlasTexture_lwdcj"]
- atlas = ExtResource("2_lwdcj")
- region = Rect2(0, 16, 16, 16)
- [sub_resource type="AtlasTexture" id="AtlasTexture_onh0k"]
- atlas = ExtResource("2_lwdcj")
- region = Rect2(16, 16, 16, 16)
- [sub_resource type="AtlasTexture" id="AtlasTexture_1w0wa"]
- atlas = ExtResource("2_lwdcj")
- region = Rect2(32, 16, 16, 16)
- [sub_resource type="AtlasTexture" id="AtlasTexture_4qu2r"]
- atlas = ExtResource("2_lwdcj")
- region = Rect2(48, 16, 16, 16)
- [sub_resource type="AtlasTexture" id="AtlasTexture_0xloa"]
- atlas = ExtResource("2_lwdcj")
- region = Rect2(0, 0, 16, 16)
- [sub_resource type="AtlasTexture" id="AtlasTexture_0r8d3"]
- atlas = ExtResource("2_lwdcj")
- region = Rect2(16, 0, 16, 16)
- [sub_resource type="AtlasTexture" id="AtlasTexture_0fjrw"]
- atlas = ExtResource("2_lwdcj")
- region = Rect2(32, 0, 16, 16)
- [sub_resource type="AtlasTexture" id="AtlasTexture_ppl3b"]
- atlas = ExtResource("2_lwdcj")
- region = Rect2(48, 0, 16, 16)
- [sub_resource type="SpriteFrames" id="SpriteFrames_1w0wa"]
- animations = [{
- "frames": [{
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_lwdcj")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_onh0k")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_1w0wa")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_4qu2r")
- }],
- "loop": true,
- "name": &"Collected",
- "speed": 8.0
- }, {
- "frames": [{
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_0xloa")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_0r8d3")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_0fjrw")
- }, {
- "duration": 1.0,
- "texture": SubResource("AtlasTexture_ppl3b")
- }],
- "loop": true,
- "name": &"Idle",
- "speed": 8.0
- }]
- [sub_resource type="RectangleShape2D" id="RectangleShape2D_4qu2r"]
- size = Vector2(12, 15)
- [node name="RedCoin" type="Node2D"]
- visibility_layer = 3
- z_index = -2
- script = ExtResource("1_c6tmk")
- [node name="Sprite" type="AnimatedSprite2D" parent="."]
- sprite_frames = SubResource("SpriteFrames_1w0wa")
- animation = &"Idle"
- autoplay = "Idle"
- script = ExtResource("3_0r8d3")
- do_offset = false
- metadata/_custom_type_script = "uid://caq1qiwmy0mox"
- [node name="ResourceSetterNew" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")]
- script = ExtResource("3_0xloa")
- node_to_affect = NodePath("..")
- property_name = "sprite_frames"
- resource_json = ExtResource("5_0fjrw")
- metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
- [node name="Hitbox" type="Area2D" parent="."]
- collision_mask = 5
- script = ExtResource("3_onh0k")
- metadata/_custom_type_script = "uid://cnheej0sxmoxg"
- [node name="Shape" type="CollisionShape2D" parent="Hitbox"]
- position = Vector2(0, 1.5)
- shape = SubResource("RectangleShape2D_4qu2r")
- [node name="BlockBouncingDetection" type="Node" parent="." node_paths=PackedStringArray("hitbox")]
- script = ExtResource("4_lwdcj")
- detection_type = 1
- hitbox = NodePath("../Hitbox")
- metadata/_custom_type_script = "uid://cmg61722ktg2m"
- [connection signal="player_entered" from="Hitbox" to="." method="on_player_entered"]
- [connection signal="block_bounced" from="BlockBouncingDetection" to="." method="summon_bounced_coin" unbinds=1]
|