Kept goiong, but not quite happy.
This commit is contained in:
@@ -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"
|
||||||
+1
-8
@@ -2,18 +2,11 @@
|
|||||||
|
|
||||||
[ext_resource type="Script" path="res://scripts/End.gd" id="1_0587q"]
|
[ext_resource type="Script" path="res://scripts/End.gd" id="1_0587q"]
|
||||||
|
|
||||||
[node name="End" type="Control"]
|
[node name="End" type="CanvasLayer"]
|
||||||
layout_mode = 3
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
script = ExtResource("1_0587q")
|
script = ExtResource("1_0587q")
|
||||||
metadata/_edit_use_anchors_ = true
|
metadata/_edit_use_anchors_ = true
|
||||||
|
|
||||||
[node name="CenterContainer" type="CenterContainer" parent="."]
|
[node name="CenterContainer" type="CenterContainer" parent="."]
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
|
|||||||
@@ -44,18 +44,11 @@ _data = {
|
|||||||
"animation": SubResource("Animation_2v5v3")
|
"animation": SubResource("Animation_2v5v3")
|
||||||
}
|
}
|
||||||
|
|
||||||
[node name="Splash" type="Control"]
|
[node name="Splash" type="CanvasLayer"]
|
||||||
layout_mode = 3
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
script = ExtResource("1_3yqra")
|
script = ExtResource("1_3yqra")
|
||||||
metadata/_edit_use_anchors_ = true
|
metadata/_edit_use_anchors_ = true
|
||||||
|
|
||||||
[node name="CenterContainer" type="CenterContainer" parent="."]
|
[node name="CenterContainer" type="CenterContainer" parent="."]
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
@@ -68,7 +61,6 @@ layout_mode = 2
|
|||||||
texture = ExtResource("2_fpfqa")
|
texture = ExtResource("2_fpfqa")
|
||||||
|
|
||||||
[node name="ColorRect" type="ColorRect" parent="."]
|
[node name="ColorRect" type="ColorRect" parent="."]
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
|
|||||||
@@ -2,18 +2,11 @@
|
|||||||
|
|
||||||
[ext_resource type="Script" path="res://scripts/End.gd" id="1_jfc42"]
|
[ext_resource type="Script" path="res://scripts/End.gd" id="1_jfc42"]
|
||||||
|
|
||||||
[node name="MainMenu" type="Control"]
|
[node name="MainMenu" type="CanvasLayer"]
|
||||||
layout_mode = 3
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
script = ExtResource("1_jfc42")
|
script = ExtResource("1_jfc42")
|
||||||
metadata/_edit_use_anchors_ = true
|
metadata/_edit_use_anchors_ = true
|
||||||
|
|
||||||
[node name="CenterContainer" type="CenterContainer" parent="."]
|
[node name="CenterContainer" type="CenterContainer" parent="."]
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
|
|||||||
+1
-8
@@ -2,18 +2,11 @@
|
|||||||
|
|
||||||
[ext_resource type="Script" path="res://scripts/End.gd" id="1_oljih"]
|
[ext_resource type="Script" path="res://scripts/End.gd" id="1_oljih"]
|
||||||
|
|
||||||
[node name="End" type="Control"]
|
[node name="End" type="CanvasLayer"]
|
||||||
layout_mode = 3
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
script = ExtResource("1_oljih")
|
script = ExtResource("1_oljih")
|
||||||
metadata/_edit_use_anchors_ = true
|
metadata/_edit_use_anchors_ = true
|
||||||
|
|
||||||
[node name="CenterContainer" type="CenterContainer" parent="."]
|
[node name="CenterContainer" type="CenterContainer" parent="."]
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
|
|||||||
@@ -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)
|
||||||
+27
-30
@@ -13,66 +13,62 @@ size = Vector2(7318, 557)
|
|||||||
[sub_resource type="QuadMesh" id="QuadMesh_qcjog"]
|
[sub_resource type="QuadMesh" id="QuadMesh_qcjog"]
|
||||||
|
|
||||||
[node name="Level" type="Node2D"]
|
[node name="Level" type="Node2D"]
|
||||||
|
position = Vector2(0, 96)
|
||||||
|
|
||||||
[node name="Platforms" type="CanvasGroup" parent="."]
|
[node name="Platforms" type="CanvasGroup" parent="."]
|
||||||
|
|
||||||
[node name="Platform_01" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
|
||||||
|
|
||||||
[node name="Platform_14" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
[node name="Platform_14" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
||||||
position = Vector2(2986, 91)
|
position = Vector2(2861, 87)
|
||||||
scale = Vector2(16.672, 1)
|
|
||||||
|
|
||||||
[node name="Platform_15" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
[node name="Platform_15" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
||||||
position = Vector2(1483, -696)
|
position = Vector2(1159, -700)
|
||||||
scale = Vector2(16.672, 1)
|
|
||||||
|
[node name="Platform_27" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
||||||
|
position = Vector2(1556, -737)
|
||||||
|
|
||||||
[node name="Platform_16" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
[node name="Platform_16" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
||||||
position = Vector2(1595, 188)
|
position = Vector2(1470, 184)
|
||||||
scale = Vector2(16.672, 1)
|
|
||||||
|
|
||||||
[node name="Platform_17" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
[node name="Platform_17" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
||||||
position = Vector2(2068, 161)
|
position = Vector2(1943, 157)
|
||||||
scale = Vector2(16.672, 1)
|
|
||||||
|
|
||||||
[node name="Platform_18" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
[node name="Platform_18" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
||||||
position = Vector2(1019, -452)
|
position = Vector2(1159, 121)
|
||||||
scale = Vector2(16.672, 1)
|
|
||||||
|
|
||||||
[node name="Platform_19" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
[node name="Platform_19" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
||||||
position = Vector2(3629, 130)
|
position = Vector2(3504, 126)
|
||||||
rotation = 1.5708
|
rotation = 1.5708
|
||||||
scale = Vector2(16.672, 1)
|
|
||||||
|
|
||||||
[node name="Platform_20" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
[node name="Platform_20" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
||||||
position = Vector2(2338, 297)
|
position = Vector2(2213, 293)
|
||||||
rotation = 1.5708
|
rotation = 1.5708
|
||||||
scale = Vector2(16.672, 1)
|
|
||||||
|
|
||||||
[node name="Platform_21" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
[node name="Platform_21" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
||||||
position = Vector2(607, -296)
|
position = Vector2(393, 115)
|
||||||
scale = Vector2(16.672, 1)
|
|
||||||
|
[node name="Platform_26" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
||||||
|
position = Vector2(28, 115)
|
||||||
|
|
||||||
[node name="Platform_22" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
[node name="Platform_22" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
||||||
position = Vector2(1052, -220)
|
position = Vector2(791, 116)
|
||||||
scale = Vector2(16.672, 1)
|
|
||||||
|
|
||||||
[node name="Platform_23" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
[node name="Platform_23" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
||||||
position = Vector2(2604, 159)
|
position = Vector2(2479, 155)
|
||||||
scale = Vector2(16.672, 1)
|
|
||||||
|
|
||||||
[node name="Platform_24" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
[node name="Platform_24" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
||||||
position = Vector2(3363, 53)
|
position = Vector2(3238, 49)
|
||||||
scale = Vector2(16.672, 1)
|
|
||||||
|
|
||||||
[node name="Platform_25" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
[node name="Platform_25" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
||||||
modulate = Color(0.00784314, 0.490196, 0, 1)
|
modulate = Color(0.00784314, 0.490196, 0, 1)
|
||||||
position = Vector2(3880, 153)
|
position = Vector2(3755, 149)
|
||||||
scale = Vector2(16.672, 1)
|
|
||||||
|
[node name="Platform_02" parent="Platforms" instance=ExtResource("1_p1vy7")]
|
||||||
|
position = Vector2(573, -293)
|
||||||
|
|
||||||
[node name="Checkpoints" type="CanvasGroup" parent="."]
|
[node name="Checkpoints" type="CanvasGroup" parent="."]
|
||||||
|
|
||||||
[node name="End" type="Area2D" parent="Checkpoints"]
|
[node name="End" type="Area2D" parent="Checkpoints"]
|
||||||
position = Vector2(3880, 133)
|
position = Vector2(3755, 128)
|
||||||
scale = Vector2(16.672, 1)
|
scale = Vector2(16.672, 1)
|
||||||
script = ExtResource("1_mogvd")
|
script = ExtResource("1_mogvd")
|
||||||
type = "end"
|
type = "end"
|
||||||
@@ -103,9 +99,10 @@ shape = SubResource("RectangleShape2D_0f50m")
|
|||||||
[node name="Gravity" type="Node2D" parent="Switches"]
|
[node name="Gravity" type="Node2D" parent="Switches"]
|
||||||
|
|
||||||
[node name="GravitySwitch01" parent="Switches/Gravity" instance=ExtResource("2_ufuu6")]
|
[node name="GravitySwitch01" parent="Switches/Gravity" instance=ExtResource("2_ufuu6")]
|
||||||
|
position = Vector2(254, -48)
|
||||||
|
|
||||||
[node name="GravitySwitch02" parent="Switches/Gravity" instance=ExtResource("2_ufuu6")]
|
[node name="GravitySwitch02" parent="Switches/Gravity" instance=ExtResource("2_ufuu6")]
|
||||||
position = Vector2(1344, -102)
|
position = Vector2(1355, -68)
|
||||||
|
|
||||||
[node name="GravitySwitch03" parent="Switches/Gravity" instance=ExtResource("2_ufuu6")]
|
[node name="GravitySwitch03" parent="Switches/Gravity" instance=ExtResource("2_ufuu6")]
|
||||||
position = Vector2(1743, -586)
|
position = Vector2(1743, -586)
|
||||||
@@ -114,7 +111,7 @@ position = Vector2(1743, -586)
|
|||||||
|
|
||||||
[node name="DirectionSwitch01" type="Area2D" parent="Switches/Direction"]
|
[node name="DirectionSwitch01" type="Area2D" parent="Switches/Direction"]
|
||||||
self_modulate = Color(0, 0.737255, 0.745098, 0.423529)
|
self_modulate = Color(0, 0.737255, 0.745098, 0.423529)
|
||||||
position = Vector2(1017, -416)
|
position = Vector2(1289, -667)
|
||||||
collision_layer = 0
|
collision_layer = 0
|
||||||
script = ExtResource("3_vaslk")
|
script = ExtResource("3_vaslk")
|
||||||
type = "gravity"
|
type = "gravity"
|
||||||
@@ -165,7 +162,7 @@ mesh = SubResource("QuadMesh_qcjog")
|
|||||||
|
|
||||||
[node name="DirectionSwitch04" type="Area2D" parent="Switches/Direction"]
|
[node name="DirectionSwitch04" type="Area2D" parent="Switches/Direction"]
|
||||||
self_modulate = Color(0, 0.737255, 0.745098, 0.423529)
|
self_modulate = Color(0, 0.737255, 0.745098, 0.423529)
|
||||||
position = Vector2(2339, 104)
|
position = Vector2(2213, 120)
|
||||||
collision_layer = 0
|
collision_layer = 0
|
||||||
script = ExtResource("3_vaslk")
|
script = ExtResource("3_vaslk")
|
||||||
type = "gravity"
|
type = "gravity"
|
||||||
|
|||||||
@@ -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")
|
||||||
@@ -5,15 +5,14 @@
|
|||||||
[sub_resource type="QuadMesh" id="QuadMesh_qcjog"]
|
[sub_resource type="QuadMesh" id="QuadMesh_qcjog"]
|
||||||
|
|
||||||
[node name="Platform_01" type="StaticBody2D"]
|
[node name="Platform_01" type="StaticBody2D"]
|
||||||
position = Vector2(130, 119)
|
|
||||||
scale = Vector2(16, 1)
|
|
||||||
collision_layer = 2
|
collision_layer = 2
|
||||||
metadata/_edit_group_ = true
|
metadata/_edit_group_ = true
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||||
|
scale = Vector2(16, 1)
|
||||||
shape = SubResource("RectangleShape2D_7hfyn")
|
shape = SubResource("RectangleShape2D_7hfyn")
|
||||||
|
|
||||||
[node name="MeshInstance2D" type="MeshInstance2D" parent="."]
|
[node name="MeshInstance2D" type="MeshInstance2D" parent="."]
|
||||||
position = Vector2(0.0224935, -0.125005)
|
position = Vector2(0.0224935, -0.125005)
|
||||||
scale = Vector2(19, 20)
|
scale = Vector2(300, 20)
|
||||||
mesh = SubResource("QuadMesh_qcjog")
|
mesh = SubResource("QuadMesh_qcjog")
|
||||||
|
|||||||
+10
-2
@@ -1,5 +1,5 @@
|
|||||||
extends Control
|
extends CanvasLayer
|
||||||
|
var mainScene
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready():
|
func _ready():
|
||||||
@@ -16,5 +16,13 @@ func _on_quit():
|
|||||||
get_tree().quit()
|
get_tree().quit()
|
||||||
|
|
||||||
func _on_play():
|
func _on_play():
|
||||||
|
$".".hide()
|
||||||
|
var w = get_node("/root/World");
|
||||||
|
|
||||||
|
if !w:
|
||||||
get_tree().change_scene_to_file( "res://scenes/main.tscn" )
|
get_tree().change_scene_to_file( "res://scenes/main.tscn" )
|
||||||
|
else:
|
||||||
|
w.load_level()
|
||||||
|
w.player_spawn()
|
||||||
|
w.show()
|
||||||
|
|
||||||
|
|||||||
+5
-3
@@ -1,5 +1,5 @@
|
|||||||
extends Control
|
extends CanvasLayer
|
||||||
|
var start = preload("res://scenes/UI/Start.tscn").instantiate()
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready():
|
func _ready():
|
||||||
@@ -16,5 +16,7 @@ func _on_quit():
|
|||||||
get_tree().quit()
|
get_tree().quit()
|
||||||
|
|
||||||
func load_start_menu():
|
func load_start_menu():
|
||||||
get_tree().change_scene_to_file("res://scenes/UI/Start.tscn")
|
$".".hide()
|
||||||
|
get_tree().get_root().add_child( start )
|
||||||
|
#get_tree().change_scene_to_file("res://scenes/UI/Start.tscn")
|
||||||
|
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|
||||||
+36
-6
@@ -3,11 +3,16 @@ extends Node2D
|
|||||||
var gravity = ProjectSettings.get_setting("physics/2d/default_gravity")
|
var gravity = ProjectSettings.get_setting("physics/2d/default_gravity")
|
||||||
var gravity_vector = ProjectSettings.get_setting("physics/2d/default_gravity_vector")
|
var gravity_vector = ProjectSettings.get_setting("physics/2d/default_gravity_vector")
|
||||||
var player = load("res://scenes/pDasher.tscn")
|
var player = load("res://scenes/pDasher.tscn")
|
||||||
var level = load("res://scenes/levels/level_1.tscn")
|
var level
|
||||||
var direction: int = 1
|
var direction: int = 1
|
||||||
var paused: bool = false
|
var paused: bool = false
|
||||||
var asp: AudioStreamPlayer
|
var asp: AudioStreamPlayer
|
||||||
var switch_gravity_sound = preload("res://audio/switch_gravity.wav")
|
var switch_gravity_sound = preload("res://audio/switch_gravity.wav")
|
||||||
|
var win = preload("res://scenes/UI/Win.tscn").instantiate()
|
||||||
|
var end = preload("res://scenes/UI/End.tscn").instantiate()
|
||||||
|
@export var Levels: Array[Resource] = [ preload("res://scenes/levels/level_0.tscn"), preload("res://scenes/levels/level_1.tscn") ]
|
||||||
|
var level_n: int = 0
|
||||||
|
var pDasher
|
||||||
|
|
||||||
|
|
||||||
## WORLD METHODS
|
## WORLD METHODS
|
||||||
@@ -20,17 +25,40 @@ func switch_direction():
|
|||||||
|
|
||||||
## NAVIGATION
|
## NAVIGATION
|
||||||
func player_fail():
|
func player_fail():
|
||||||
get_tree().change_scene_to_file("res://scenes/UI/End.tscn")
|
$".".hide()
|
||||||
|
#$pDasher.queue_free()
|
||||||
|
|
||||||
|
#ONLY IF NOT THERE ALREADY
|
||||||
|
|
||||||
|
if !$"."/End :
|
||||||
|
get_tree().get_root().add_child( end )
|
||||||
|
else:
|
||||||
|
$"."/End.show()
|
||||||
|
#get_tree().change_scene_to_file("res://scenes/UI/End.tscn")
|
||||||
|
|
||||||
func player_win():
|
func player_win():
|
||||||
get_tree().change_scene_to_file("res://scenes/UI/Win.tscn")
|
level_n += 1
|
||||||
|
load_level()
|
||||||
|
$"." .hide()
|
||||||
|
get_tree().get_root().add_child( win )
|
||||||
|
#get_tree().change_scene_to_file("res://scenes/UI/Win.tscn")
|
||||||
|
|
||||||
|
func player_spawn():
|
||||||
|
pDasher.position = Vector2(0,0 )
|
||||||
|
|
||||||
|
func load_level():
|
||||||
|
if level_n == null:
|
||||||
|
level_n = 0
|
||||||
|
level = Levels[level_n]
|
||||||
|
|
||||||
func _ready():
|
func _ready():
|
||||||
|
|
||||||
|
load_level()
|
||||||
|
|
||||||
asp = $AudioStreamPlayer
|
asp = $AudioStreamPlayer
|
||||||
|
|
||||||
#load player and level
|
#load player and level
|
||||||
get_node("/root/World").add_child( player.instantiate() ) #absolute way...
|
get_node("/root/World").add_child( player.instantiate() )
|
||||||
get_node("/root/World").add_child( level.instantiate() ) #relative way meaning <ME> or whatever node this script is attached to.
|
get_node("/root/World").add_child( level.instantiate() ) #relative way meaning <ME> or whatever node this script is attached to.
|
||||||
|
|
||||||
# manage signals connections
|
# manage signals connections
|
||||||
@@ -52,6 +80,8 @@ func _ready():
|
|||||||
#print( checkpoint )
|
#print( checkpoint )
|
||||||
checkpoint.body_entered.connect( _on_checkpoint_body_entered )
|
checkpoint.body_entered.connect( _on_checkpoint_body_entered )
|
||||||
|
|
||||||
|
pDasher = get_node("/root/World/pDasher")
|
||||||
|
player_spawn()
|
||||||
## MAIN
|
## MAIN
|
||||||
#func _process(delta):
|
#func _process(delta):
|
||||||
#pass
|
#pass
|
||||||
@@ -70,8 +100,8 @@ func _on_gswitch_body_entered(body):
|
|||||||
switch_gravity()
|
switch_gravity()
|
||||||
|
|
||||||
func _on_dswitch_body_entered(body):
|
func _on_dswitch_body_entered(body):
|
||||||
var dasher = get_node("/root/World/pDasher")
|
pDasher
|
||||||
dasher.switch_direction()
|
pDasher.switch_direction()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user