376 lines
10 KiB
Plaintext
376 lines
10 KiB
Plaintext
[gd_scene load_steps=33 format=3 uid="uid://dk1aby88pygtr"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/player.gd" id="1_lm7ix"]
|
|
[ext_resource type="Texture2D" uid="uid://dhw3lpuskbvku" path="res://assets/mario-luigi-4.png" id="1_w3chr"]
|
|
[ext_resource type="PackedScene" uid="uid://beaktq6mygp6c" path="res://scenes/items/fireball.tscn" id="2_owoxk"]
|
|
[ext_resource type="FontFile" uid="uid://cpwx7datjer6s" path="res://assets/PixelOperator8.ttf" id="3_mkgvb"]
|
|
[ext_resource type="Texture2D" uid="uid://d0xxlo60h1d7i" path="res://assets/coinlabel.png" id="4_o0q77"]
|
|
[ext_resource type="AudioStream" uid="uid://cbs4okawh444d" path="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Warp.wav" id="5_kvw73"]
|
|
[ext_resource type="AudioStream" uid="uid://bo4big602rvtr" path="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Jump.wav" id="6_aq3u4"]
|
|
[ext_resource type="AudioStream" uid="uid://bh8t167vl6j2n" path="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Kick.wav" id="8_6t158"]
|
|
[ext_resource type="AudioStream" uid="uid://b0h07g0c8i84c" path="res://assets/sounds/NES - Super Mario Bros - Sound Effects/Super Mario Bros 1 and 2(JP)/Die.wav" id="9_pu5vq"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_l22ll"]
|
|
atlas = ExtResource("1_w3chr")
|
|
region = Rect2(182, 34, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_rku65"]
|
|
atlas = ExtResource("1_w3chr")
|
|
region = Rect2(80, 34, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_wfnj7"]
|
|
atlas = ExtResource("1_w3chr")
|
|
region = Rect2(80, 1, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_kxd3p"]
|
|
atlas = ExtResource("1_w3chr")
|
|
region = Rect2(80, 129, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_dmbgr"]
|
|
atlas = ExtResource("1_w3chr")
|
|
region = Rect2(165, 34, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_t247e"]
|
|
atlas = ExtResource("1_w3chr")
|
|
region = Rect2(165, 1, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_npe6k"]
|
|
atlas = ExtResource("1_w3chr")
|
|
region = Rect2(165, 129, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jb1pe"]
|
|
atlas = ExtResource("1_w3chr")
|
|
region = Rect2(97, 34, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_fgp3y"]
|
|
atlas = ExtResource("1_w3chr")
|
|
region = Rect2(114, 34, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_25ryr"]
|
|
atlas = ExtResource("1_w3chr")
|
|
region = Rect2(131, 34, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jagc4"]
|
|
atlas = ExtResource("1_w3chr")
|
|
region = Rect2(97, 1, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_x07x8"]
|
|
atlas = ExtResource("1_w3chr")
|
|
region = Rect2(114, 1, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_6y472"]
|
|
atlas = ExtResource("1_w3chr")
|
|
region = Rect2(131, 1, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_iljl6"]
|
|
atlas = ExtResource("1_w3chr")
|
|
region = Rect2(97, 129, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_7pcnf"]
|
|
atlas = ExtResource("1_w3chr")
|
|
region = Rect2(114, 129, 16, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_jva7o"]
|
|
atlas = ExtResource("1_w3chr")
|
|
region = Rect2(131, 129, 16, 32)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_l5s58"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_l22ll")
|
|
}],
|
|
"loop": true,
|
|
"name": &"fall",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_rku65")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_wfnj7")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle_big",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_kxd3p")
|
|
}],
|
|
"loop": true,
|
|
"name": &"idle_flower",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_dmbgr")
|
|
}],
|
|
"loop": true,
|
|
"name": &"jump",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_t247e")
|
|
}],
|
|
"loop": true,
|
|
"name": &"jump_big",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_npe6k")
|
|
}],
|
|
"loop": true,
|
|
"name": &"jump_flower",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_jb1pe")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_fgp3y")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_25ryr")
|
|
}],
|
|
"loop": true,
|
|
"name": &"run",
|
|
"speed": 10.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_jagc4")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_x07x8")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_6y472")
|
|
}],
|
|
"loop": true,
|
|
"name": &"run_big",
|
|
"speed": 10.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_iljl6")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_7pcnf")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_jva7o")
|
|
}],
|
|
"loop": true,
|
|
"name": &"run_flower",
|
|
"speed": 10.0
|
|
}]
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_4sl4a"]
|
|
radius = 6.0
|
|
height = 16.0
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_sqgi2"]
|
|
size = Vector2(8, 1)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_okc7h"]
|
|
size = Vector2(1, 2)
|
|
|
|
[sub_resource type="Animation" id="Animation_miyjx"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Camera2D/ColorRect:visible")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("dieSound:playing")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_jgvs8"]
|
|
resource_name = "die"
|
|
length = 3.0
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Camera2D/ColorRect:visible")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("dieSound:playing")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0.1),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
tracks/2/type = "method"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath(".")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(3),
|
|
"transitions": PackedFloat32Array(1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"reload_scene"
|
|
}]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_uuoiq"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_miyjx"),
|
|
"die": SubResource("Animation_jgvs8")
|
|
}
|
|
|
|
[node name="player" type="CharacterBody2D"]
|
|
position = Vector2(0, -10)
|
|
collision_layer = 2
|
|
script = ExtResource("1_lm7ix")
|
|
fireball_prefab = ExtResource("2_owoxk")
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
position = Vector2(35, 0)
|
|
zoom = Vector2(3, 3)
|
|
limit_left = -160
|
|
limit_bottom = 32
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="Camera2D"]
|
|
visible = false
|
|
z_index = 10
|
|
offset_left = -3995.0
|
|
offset_top = -1678.0
|
|
offset_right = 3965.0
|
|
offset_bottom = 1594.0
|
|
mouse_filter = 1
|
|
color = Color(0, 0, 0, 1)
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
position = Vector2(0, 2)
|
|
sprite_frames = SubResource("SpriteFrames_l5s58")
|
|
animation = &"run_flower"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, 2)
|
|
shape = SubResource("CapsuleShape2D_4sl4a")
|
|
|
|
[node name="pipedetector_ground" type="Area2D" parent="."]
|
|
collision_mask = 4
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="pipedetector_ground"]
|
|
position = Vector2(0, 10.5)
|
|
shape = SubResource("RectangleShape2D_sqgi2")
|
|
|
|
[node name="pipedetector_right" type="Area2D" parent="."]
|
|
collision_mask = 4
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="pipedetector_right"]
|
|
position = Vector2(6.5, -2)
|
|
shape = SubResource("RectangleShape2D_okc7h")
|
|
|
|
[node name="pipedetector_left" type="Area2D" parent="."]
|
|
position = Vector2(-13, -4)
|
|
collision_mask = 4
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="pipedetector_left"]
|
|
position = Vector2(6.5, 2)
|
|
shape = SubResource("RectangleShape2D_okc7h")
|
|
|
|
[node name="pipe_timer" type="Timer" parent="."]
|
|
wait_time = 2.0
|
|
one_shot = true
|
|
|
|
[node name="pipe_timer_half" type="Timer" parent="."]
|
|
one_shot = true
|
|
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
|
|
|
[node name="Control" type="Control" parent="CanvasLayer"]
|
|
layout_mode = 3
|
|
anchors_preset = 0
|
|
mouse_filter = 1
|
|
|
|
[node name="CoinAmt" type="Label" parent="CanvasLayer/Control"]
|
|
layout_mode = 1
|
|
offset_left = 136.0
|
|
offset_top = 56.0
|
|
offset_right = 241.0
|
|
offset_bottom = 104.0
|
|
mouse_filter = 1
|
|
theme_override_colors/font_color = Color(1, 0.627451, 0.266667, 1)
|
|
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
|
|
theme_override_fonts/font = ExtResource("3_mkgvb")
|
|
theme_override_font_sizes/font_size = 40
|
|
text = "0
|
|
"
|
|
vertical_alignment = 1
|
|
|
|
[node name="CoinLabel" type="TextureRect" parent="CanvasLayer/Control"]
|
|
layout_mode = 0
|
|
offset_left = 80.0
|
|
offset_top = 56.0
|
|
offset_right = 120.0
|
|
offset_bottom = 96.0
|
|
texture = ExtResource("4_o0q77")
|
|
|
|
[node name="PipeSound" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource("5_kvw73")
|
|
|
|
[node name="JumpSound" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource("6_aq3u4")
|
|
|
|
[node name="shrinkSound" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource("8_6t158")
|
|
|
|
[node name="dieSound" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource("9_pu5vq")
|
|
|
|
[node name="diePlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_uuoiq")
|
|
}
|
|
|
|
[connection signal="area_entered" from="pipedetector_ground" to="." method="_on_pipedetector_area_entered"]
|
|
[connection signal="area_exited" from="pipedetector_ground" to="." method="_on_pipedetector_area_exited"]
|
|
[connection signal="area_entered" from="pipedetector_right" to="." method="_on_pipedetector_right_area_entered"]
|
|
[connection signal="area_exited" from="pipedetector_right" to="." method="_on_pipedetector_right_area_exited"]
|
|
[connection signal="timeout" from="pipe_timer" to="." method="_on_pipe_timer_timeout"]
|
|
[connection signal="timeout" from="pipe_timer_half" to="." method="_on_pipe_timer_half_timeout"]
|