parent
3a3b9b29db
commit
763ce182a4
@ -0,0 +1 @@
|
||||
audiost
|
||||
@ -0,0 +1,15 @@
|
||||
[gd_resource type="AudioBusLayout" format=3 uid="uid://bnfly6iu8nvfp"]
|
||||
|
||||
[resource]
|
||||
bus/1/name = &"SFX"
|
||||
bus/1/solo = false
|
||||
bus/1/mute = false
|
||||
bus/1/bypass_fx = false
|
||||
bus/1/volume_db = 0.0
|
||||
bus/1/send = &"Master"
|
||||
bus/2/name = &"Music"
|
||||
bus/2/solo = false
|
||||
bus/2/mute = false
|
||||
bus/2/bypass_fx = false
|
||||
bus/2/volume_db = 0.0
|
||||
bus/2/send = &"Master"
|
||||
@ -0,0 +1,95 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://bhoqj8b4oxyks"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dn0lboldm331y" path="res://scenes/platform_01.tscn" id="1_kka3y"]
|
||||
[ext_resource type="Script" path="res://scripts/checkpoint.gd" id="2_0yetm"]
|
||||
[ext_resource type="PackedScene" uid="uid://cuefds30ddne1" path="res://scenes/platform_00.tscn" id="4_wje6l"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7hfyn"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0f50m"]
|
||||
size = Vector2(7318, 557)
|
||||
|
||||
[node name="Level" type="Node2D"]
|
||||
position = Vector2(0, 96)
|
||||
|
||||
[node name="SpawnPoint" type="Node2D" parent="."]
|
||||
|
||||
[node name="Platforms" type="CanvasGroup" parent="."]
|
||||
|
||||
[node name="Platform_26" parent="Platforms" instance=ExtResource("1_kka3y")]
|
||||
position = Vector2(28, 60)
|
||||
|
||||
[node name="Platform_27" parent="Platforms" instance=ExtResource("1_kka3y")]
|
||||
position = Vector2(328, 60)
|
||||
|
||||
[node name="Platform_28" parent="Platforms" instance=ExtResource("1_kka3y")]
|
||||
position = Vector2(674, 60)
|
||||
|
||||
[node name="Platform_29" parent="Platforms" instance=ExtResource("1_kka3y")]
|
||||
position = Vector2(1079, 139)
|
||||
|
||||
[node name="Platform_31" parent="Platforms" instance=ExtResource("1_kka3y")]
|
||||
position = Vector2(1629, 139)
|
||||
|
||||
[node name="Platform_30" parent="Platforms" instance=ExtResource("1_kka3y")]
|
||||
position = Vector2(2870, 59)
|
||||
|
||||
[node name="Platform_25" parent="Platforms" instance=ExtResource("1_kka3y")]
|
||||
modulate = Color(0.00784314, 0.490196, 0, 1)
|
||||
position = Vector2(3755, 149)
|
||||
|
||||
[node name="Platform_00" parent="Platforms" instance=ExtResource("4_wje6l")]
|
||||
position = Vector2(1079, 60)
|
||||
|
||||
[node name="Platform_09" parent="Platforms" instance=ExtResource("4_wje6l")]
|
||||
position = Vector2(1629, 60)
|
||||
|
||||
[node name="Platform_10" parent="Platforms" instance=ExtResource("4_wje6l")]
|
||||
position = Vector2(1904, 60)
|
||||
|
||||
[node name="Platform_01" parent="Platforms" instance=ExtResource("4_wje6l")]
|
||||
position = Vector2(1354, 60)
|
||||
|
||||
[node name="Platform_06" parent="Platforms" instance=ExtResource("4_wje6l")]
|
||||
position = Vector2(2217, 59)
|
||||
|
||||
[node name="Platform_07" parent="Platforms" instance=ExtResource("4_wje6l")]
|
||||
position = Vector2(2492, 59)
|
||||
|
||||
[node name="Checkpoints" type="CanvasGroup" parent="."]
|
||||
|
||||
[node name="End" type="Area2D" parent="Checkpoints"]
|
||||
position = Vector2(3755, 128)
|
||||
scale = Vector2(16.672, 1)
|
||||
script = ExtResource("2_0yetm")
|
||||
type = "end"
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Checkpoints/End"]
|
||||
shape = SubResource("RectangleShape2D_7hfyn")
|
||||
|
||||
[node name="Abysses" type="CanvasGroup" parent="."]
|
||||
|
||||
[node name="Abyss" type="Area2D" parent="Abysses"]
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Abysses/Abyss"]
|
||||
position = Vector2(951, 1182)
|
||||
shape = SubResource("RectangleShape2D_0f50m")
|
||||
|
||||
[node name="Abyss2" type="Area2D" parent="Abysses"]
|
||||
position = Vector2(0, -2964)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Abysses/Abyss2"]
|
||||
position = Vector2(951, 1182)
|
||||
shape = SubResource("RectangleShape2D_0f50m")
|
||||
|
||||
[node name="Switches" type="CanvasGroup" parent="."]
|
||||
|
||||
[node name="Direction" type="Node2D" parent="Switches"]
|
||||
|
||||
[node name="Gravity" type="Node2D" parent="Switches"]
|
||||
|
||||
[node name="Platform_30" parent="." instance=ExtResource("1_kka3y")]
|
||||
position = Vector2(3287, 59)
|
||||
@ -0,0 +1,181 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://ctnhjgpqxjrw0"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dn0lboldm331y" path="res://scenes/platform_01.tscn" id="1_30vdq"]
|
||||
[ext_resource type="Script" path="res://scripts/checkpoint.gd" id="2_v00sg"]
|
||||
[ext_resource type="PackedScene" uid="uid://cjpwcih4ro8gu" path="res://scenes/gravity_switch.tscn" id="3_fjevk"]
|
||||
[ext_resource type="Script" path="res://scripts/switch.gd" id="4_64uew"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7hfyn"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0f50m"]
|
||||
size = Vector2(7318, 557)
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_qcjog"]
|
||||
|
||||
[node name="Level" type="Node2D"]
|
||||
|
||||
[node name="Platforms" type="CanvasGroup" parent="."]
|
||||
|
||||
[node name="Platform_01" parent="Platforms" instance=ExtResource("1_30vdq")]
|
||||
|
||||
[node name="Platform_14" parent="Platforms" instance=ExtResource("1_30vdq")]
|
||||
position = Vector2(2986, 91)
|
||||
scale = Vector2(16.672, 1)
|
||||
|
||||
[node name="Platform_15" parent="Platforms" instance=ExtResource("1_30vdq")]
|
||||
position = Vector2(1483, -696)
|
||||
scale = Vector2(16.672, 1)
|
||||
|
||||
[node name="Platform_16" parent="Platforms" instance=ExtResource("1_30vdq")]
|
||||
position = Vector2(1595, 188)
|
||||
scale = Vector2(16.672, 1)
|
||||
|
||||
[node name="Platform_17" parent="Platforms" instance=ExtResource("1_30vdq")]
|
||||
position = Vector2(2068, 161)
|
||||
scale = Vector2(16.672, 1)
|
||||
|
||||
[node name="Platform_18" parent="Platforms" instance=ExtResource("1_30vdq")]
|
||||
position = Vector2(1019, -452)
|
||||
scale = Vector2(16.672, 1)
|
||||
|
||||
[node name="Platform_19" parent="Platforms" instance=ExtResource("1_30vdq")]
|
||||
position = Vector2(3629, 130)
|
||||
rotation = 1.5708
|
||||
scale = Vector2(16.672, 1)
|
||||
|
||||
[node name="Platform_20" parent="Platforms" instance=ExtResource("1_30vdq")]
|
||||
position = Vector2(2338, 297)
|
||||
rotation = 1.5708
|
||||
scale = Vector2(16.672, 1)
|
||||
|
||||
[node name="Platform_21" parent="Platforms" instance=ExtResource("1_30vdq")]
|
||||
position = Vector2(607, -296)
|
||||
scale = Vector2(16.672, 1)
|
||||
|
||||
[node name="Platform_22" parent="Platforms" instance=ExtResource("1_30vdq")]
|
||||
position = Vector2(1052, -220)
|
||||
scale = Vector2(16.672, 1)
|
||||
|
||||
[node name="Platform_23" parent="Platforms" instance=ExtResource("1_30vdq")]
|
||||
position = Vector2(2604, 159)
|
||||
scale = Vector2(16.672, 1)
|
||||
|
||||
[node name="Platform_24" parent="Platforms" instance=ExtResource("1_30vdq")]
|
||||
position = Vector2(3363, 53)
|
||||
scale = Vector2(16.672, 1)
|
||||
|
||||
[node name="Platform_25" parent="Platforms" instance=ExtResource("1_30vdq")]
|
||||
modulate = Color(0.00784314, 0.490196, 0, 1)
|
||||
position = Vector2(3880, 153)
|
||||
scale = Vector2(16.672, 1)
|
||||
|
||||
[node name="Checkpoints" type="CanvasGroup" parent="."]
|
||||
|
||||
[node name="End" type="Area2D" parent="Checkpoints"]
|
||||
position = Vector2(3880, 133)
|
||||
scale = Vector2(16.672, 1)
|
||||
script = ExtResource("2_v00sg")
|
||||
type = "end"
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Checkpoints/End"]
|
||||
shape = SubResource("RectangleShape2D_7hfyn")
|
||||
|
||||
[node name="Abysses" type="CanvasGroup" parent="."]
|
||||
|
||||
[node name="Abyss" type="Area2D" parent="Abysses"]
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Abysses/Abyss"]
|
||||
position = Vector2(951, 1182)
|
||||
shape = SubResource("RectangleShape2D_0f50m")
|
||||
|
||||
[node name="Abyss2" type="Area2D" parent="Abysses"]
|
||||
position = Vector2(0, -2964)
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Abysses/Abyss2"]
|
||||
position = Vector2(951, 1182)
|
||||
shape = SubResource("RectangleShape2D_0f50m")
|
||||
|
||||
[node name="Switches" type="CanvasGroup" parent="."]
|
||||
|
||||
[node name="Gravity" type="Node2D" parent="Switches"]
|
||||
|
||||
[node name="GravitySwitch01" parent="Switches/Gravity" instance=ExtResource("3_fjevk")]
|
||||
|
||||
[node name="GravitySwitch02" parent="Switches/Gravity" instance=ExtResource("3_fjevk")]
|
||||
position = Vector2(1344, -102)
|
||||
|
||||
[node name="GravitySwitch03" parent="Switches/Gravity" instance=ExtResource("3_fjevk")]
|
||||
position = Vector2(1743, -586)
|
||||
|
||||
[node name="Direction" type="Node2D" parent="Switches"]
|
||||
|
||||
[node name="DirectionSwitch01" type="Area2D" parent="Switches/Direction"]
|
||||
self_modulate = Color(0, 0.737255, 0.745098, 0.423529)
|
||||
position = Vector2(1017, -416)
|
||||
collision_layer = 0
|
||||
script = ExtResource("4_64uew")
|
||||
type = "gravity"
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Switches/Direction/DirectionSwitch01"]
|
||||
scale = Vector2(2, 2)
|
||||
shape = SubResource("RectangleShape2D_7hfyn")
|
||||
|
||||
[node name="MeshInstance2D" type="MeshInstance2D" parent="Switches/Direction/DirectionSwitch01"]
|
||||
self_modulate = Color(1, 1, 1, 0.0980392)
|
||||
scale = Vector2(48, 48)
|
||||
mesh = SubResource("QuadMesh_qcjog")
|
||||
|
||||
[node name="DirectionSwitch02" type="Area2D" parent="Switches/Direction"]
|
||||
self_modulate = Color(0, 0.737255, 0.745098, 0.423529)
|
||||
position = Vector2(703, -262)
|
||||
collision_layer = 0
|
||||
script = ExtResource("4_64uew")
|
||||
type = "gravity"
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Switches/Direction/DirectionSwitch02"]
|
||||
scale = Vector2(2, 2)
|
||||
shape = SubResource("RectangleShape2D_7hfyn")
|
||||
|
||||
[node name="MeshInstance2D" type="MeshInstance2D" parent="Switches/Direction/DirectionSwitch02"]
|
||||
self_modulate = Color(1, 1, 1, 0.0980392)
|
||||
scale = Vector2(48, 48)
|
||||
mesh = SubResource("QuadMesh_qcjog")
|
||||
|
||||
[node name="DirectionSwitch03" type="Area2D" parent="Switches/Direction"]
|
||||
self_modulate = Color(0, 0.737255, 0.745098, 0.423529)
|
||||
position = Vector2(1642, 153)
|
||||
collision_layer = 0
|
||||
script = ExtResource("4_64uew")
|
||||
type = "gravity"
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Switches/Direction/DirectionSwitch03"]
|
||||
scale = Vector2(2, 2)
|
||||
shape = SubResource("RectangleShape2D_7hfyn")
|
||||
|
||||
[node name="MeshInstance2D" type="MeshInstance2D" parent="Switches/Direction/DirectionSwitch03"]
|
||||
self_modulate = Color(1, 1, 1, 0.0980392)
|
||||
scale = Vector2(48, 48)
|
||||
mesh = SubResource("QuadMesh_qcjog")
|
||||
|
||||
[node name="DirectionSwitch04" type="Area2D" parent="Switches/Direction"]
|
||||
self_modulate = Color(0, 0.737255, 0.745098, 0.423529)
|
||||
position = Vector2(2339, 104)
|
||||
collision_layer = 0
|
||||
script = ExtResource("4_64uew")
|
||||
type = "gravity"
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Switches/Direction/DirectionSwitch04"]
|
||||
scale = Vector2(2, 2)
|
||||
shape = SubResource("RectangleShape2D_7hfyn")
|
||||
|
||||
[node name="MeshInstance2D" type="MeshInstance2D" parent="Switches/Direction/DirectionSwitch04"]
|
||||
self_modulate = Color(1, 1, 1, 0.0980392)
|
||||
scale = Vector2(48, 48)
|
||||
mesh = SubResource("QuadMesh_qcjog")
|
||||
@ -0,0 +1,17 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://cuefds30ddne1"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7hfyn"]
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_qcjog"]
|
||||
|
||||
[node name="Platform_00" type="StaticBody2D"]
|
||||
collision_layer = 2
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
scale = Vector2(4, 1)
|
||||
shape = SubResource("RectangleShape2D_7hfyn")
|
||||
|
||||
[node name="MeshInstance2D" type="MeshInstance2D" parent="."]
|
||||
scale = Vector2(60, 20)
|
||||
mesh = SubResource("QuadMesh_qcjog")
|
||||
@ -0,0 +1,27 @@
|
||||
extends CanvasLayer
|
||||
var mainScene
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
#$CenterContainer/VBoxContainer/Button05.button_up.connect( _on_quit )
|
||||
#$CenterContainer/VBoxContainer/Button01.button_up.connect( _on_play )
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
|
||||
func _on_quit():
|
||||
get_tree().quit()
|
||||
|
||||
func _on_play():
|
||||
$".".hide()
|
||||
var w = get_node("/root/World");
|
||||
|
||||
if !w:
|
||||
get_tree().change_scene_to_file( "res://scenes/main.tscn" )
|
||||
else:
|
||||
w.player_spawn()
|
||||
w.show()
|
||||
|
||||
Loading…
Reference in new issue