gae_platformer/scenes/lucky_block.tscn

76 lines
2.4 KiB
Plaintext

[gd_scene format=3 uid="uid://dotxkxflj0c4h"]
[ext_resource type="Texture2D" uid="uid://qqsyx1e7v2fu" path="res://assets/sprites/world_tileset.png" id="1_1oxb2"]
[ext_resource type="Script" uid="uid://cbecw2ujni8nq" path="res://scripts/lucky_block.gd" id="1_ews3o"]
[ext_resource type="AudioStream" uid="uid://by32fpioptn4q" path="res://assets/sounds/reward.wav" id="3_v2mvj"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7jsp6"]
size = Vector2(16, 15)
[sub_resource type="Animation" id="Animation_jrfi8"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("RewardSound:playing")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="Animation" id="Animation_by7b2"]
resource_name = "reward"
length = 0.36666667
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("RewardSound:playing")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_rogr3"]
_data = {
&"RESET": SubResource("Animation_jrfi8"),
&"reward": SubResource("Animation_by7b2")
}
[sub_resource type="RectangleShape2D" id="RectangleShape2D_8ng8b"]
size = Vector2(12, 1)
[node name="LuckyBlock" type="AnimatableBody2D" unique_id=1422677490]
z_index = 5
script = ExtResource("1_ews3o")
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=2130533913]
texture = ExtResource("1_1oxb2")
region_enabled = true
region_rect = Rect2(0, 32, 16, 16)
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=2069315062]
position = Vector2(0, -0.5)
shape = SubResource("RectangleShape2D_7jsp6")
[node name="RewardSound" type="AudioStreamPlayer2D" parent="." unique_id=1600797100]
stream = ExtResource("3_v2mvj")
bus = &"SFX"
[node name="SoundPlayer" type="AnimationPlayer" parent="." unique_id=2126464224]
libraries/ = SubResource("AnimationLibrary_rogr3")
[node name="RewardZone" type="Area2D" parent="." unique_id=1912884678]
collision_mask = 2
[node name="RewardCollision" type="CollisionShape2D" parent="RewardZone" unique_id=1383100768]
position = Vector2(0, 8)
shape = SubResource("RectangleShape2D_8ng8b")