mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 07:28:14 +00:00
71 lines
2.5 KiB
Plaintext
71 lines
2.5 KiB
Plaintext
[gd_scene load_steps=11 format=3 uid="uid://dhd0gp2xvl53l"]
|
|
|
|
[ext_resource type="Script" uid="uid://bafdl3y53ly60" path="res://Scripts/Classes/UI/PackAnimatedSprite2D.gd" id="2_724cb"]
|
|
[ext_resource type="Texture2D" uid="uid://bbdcmhyxmc3pu" path="res://Assets/Sprites/Items/SPItems.png" id="2_wnlnm"]
|
|
[ext_resource type="Script" uid="uid://cnheej0sxmoxg" path="res://Scripts/Parts/PlayerDetection.gd" id="3_724cb"]
|
|
[ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_ke2o5"]
|
|
[ext_resource type="JSON" path="res://Assets/Sprites/Items/LuckyStar.json" id="4_4cwfa"]
|
|
|
|
[sub_resource type="GDScript" id="GDScript_y0edb"]
|
|
script/source = "extends PowerUpItem
|
|
|
|
func player_entered(_player: Player) -> void:
|
|
queue_free()
|
|
AudioManager.play_global_sfx(\"lucky_star\")
|
|
get_tree().call_group(\"Enemies\", \"flag_die\")
|
|
"
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_ke2o5"]
|
|
atlas = ExtResource("2_wnlnm")
|
|
region = Rect2(0, 64, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_4cwfa"]
|
|
atlas = ExtResource("2_wnlnm")
|
|
region = Rect2(16, 64, 16, 16)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_48p8s"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_ke2o5")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_4cwfa")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 15.0
|
|
}]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7yv5x"]
|
|
size = Vector2(8, 8)
|
|
|
|
[node name="LuckyStar" type="CharacterBody2D"]
|
|
script = SubResource("GDScript_y0edb")
|
|
metadata/_custom_type_script = "uid://cjkurwybsaywm"
|
|
|
|
[node name="Sprite" type="AnimatedSprite2D" parent="."]
|
|
position = Vector2(0, -8)
|
|
sprite_frames = SubResource("SpriteFrames_48p8s")
|
|
autoplay = "default"
|
|
frame_progress = 0.8284554
|
|
script = ExtResource("2_724cb")
|
|
metadata/_custom_type_script = "uid://bafdl3y53ly60"
|
|
|
|
[node name="ResourceSetter" type="Node" parent="Sprite" node_paths=PackedStringArray("node_to_affect")]
|
|
script = ExtResource("3_ke2o5")
|
|
node_to_affect = NodePath("..")
|
|
property_name = "sprite_frames"
|
|
resource_json = ExtResource("4_4cwfa")
|
|
metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
|
|
|
|
[node name="PlayerDetection" type="Area2D" parent="."]
|
|
position = Vector2(0, -8)
|
|
script = ExtResource("3_724cb")
|
|
metadata/_custom_type_script = "uid://cnheej0sxmoxg"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlayerDetection"]
|
|
shape = SubResource("RectangleShape2D_7yv5x")
|
|
|
|
[connection signal="player_entered" from="PlayerDetection" to="." method="player_entered"]
|