[gd_scene load_steps=15 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="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"] [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_dmbgr"] atlas = ExtResource("1_w3chr") region = Rect2(165, 34, 16, 16) [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="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_dmbgr") }], "loop": true, "name": &"jump", "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 }] [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) [node name="player" type="CharacterBody2D"] position = Vector2(0, -10) collision_layer = 2 script = ExtResource("1_lm7ix") [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 = &"jump" [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_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") [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"]