2024-11-02 08:07:54 +01:00
|
|
|
[gd_scene load_steps=13 format=3 uid="uid://cchf5vmjp6ahj"]
|
2024-11-01 18:15:44 +01:00
|
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://scripts/level.gd" id="1_84g5v"]
|
2024-11-01 18:33:00 +01:00
|
|
|
[ext_resource type="PackedScene" uid="uid://c7y3ileam1twx" path="res://scenes/player.tscn" id="2_d65cs"]
|
2024-11-02 07:50:32 +01:00
|
|
|
[ext_resource type="PackedScene" uid="uid://dfrcbemxybvbj" path="res://scenes/jump_pad.tscn" id="3_vhvgl"]
|
2024-11-02 08:07:54 +01:00
|
|
|
[ext_resource type="PackedScene" uid="uid://cnt3xr237kdqs" path="res://scenes/saw_trap.tscn" id="4_f5456"]
|
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cxfl4ogd53fb3" path="res://scenes/spike_ball_trap.tscn" id="5_8oo66"]
|
2024-11-01 18:33:00 +01:00
|
|
|
|
|
|
|
|
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_mvbjk"]
|
|
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_5f3h6"]
|
|
|
|
|
size = Vector2(326, 12)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="Gradient" id="Gradient_de2k8"]
|
|
|
|
|
offsets = PackedFloat32Array(0)
|
|
|
|
|
colors = PackedColorArray(0, 0, 0, 1)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_v33b1"]
|
|
|
|
|
gradient = SubResource("Gradient_de2k8")
|
2024-11-01 18:15:44 +01:00
|
|
|
|
2024-11-02 07:24:48 +01:00
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_iyldn"]
|
|
|
|
|
size = Vector2(947, 20)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="Gradient" id="Gradient_14250"]
|
|
|
|
|
colors = PackedColorArray(0.91, 0.42497, 0.1638, 1, 1, 0.3285, 0.21, 1)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_y3q5v"]
|
|
|
|
|
gradient = SubResource("Gradient_14250")
|
|
|
|
|
|
2024-11-01 18:15:44 +01:00
|
|
|
[node name="Level" type="Node2D"]
|
|
|
|
|
script = ExtResource("1_84g5v")
|
2024-11-01 18:33:00 +01:00
|
|
|
|
|
|
|
|
[node name="Player" parent="." instance=ExtResource("2_d65cs")]
|
|
|
|
|
position = Vector2(230, 110)
|
2024-11-02 07:24:48 +01:00
|
|
|
collision_layer = 2
|
2024-11-01 18:33:00 +01:00
|
|
|
|
|
|
|
|
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
2024-11-02 07:24:48 +01:00
|
|
|
position = Vector2(191, 200)
|
2024-11-01 18:33:00 +01:00
|
|
|
physics_material_override = SubResource("PhysicsMaterial_mvbjk")
|
|
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
|
|
|
|
shape = SubResource("RectangleShape2D_5f3h6")
|
|
|
|
|
|
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="StaticBody2D"]
|
|
|
|
|
scale = Vector2(1.275, 12.325)
|
|
|
|
|
texture = SubResource("GradientTexture1D_v33b1")
|
2024-11-02 07:24:48 +01:00
|
|
|
|
|
|
|
|
[node name="Deathzone" type="Area2D" parent="."]
|
|
|
|
|
position = Vector2(293, 256)
|
|
|
|
|
collision_layer = 4
|
|
|
|
|
collision_mask = 2
|
|
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Deathzone"]
|
|
|
|
|
position = Vector2(0.5, 0)
|
|
|
|
|
shape = SubResource("RectangleShape2D_iyldn")
|
|
|
|
|
|
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Deathzone"]
|
|
|
|
|
scale = Vector2(3.69, 20.06)
|
|
|
|
|
texture = SubResource("GradientTexture1D_y3q5v")
|
|
|
|
|
|
|
|
|
|
[node name="StartPosition" type="Marker2D" parent="."]
|
|
|
|
|
position = Vector2(309, 135)
|
|
|
|
|
|
2024-11-02 08:07:54 +01:00
|
|
|
[node name="Objects" type="Node2D" parent="."]
|
|
|
|
|
|
|
|
|
|
[node name="JumpPad" parent="Objects" instance=ExtResource("3_vhvgl")]
|
2024-11-02 07:50:32 +01:00
|
|
|
position = Vector2(338, 194)
|
|
|
|
|
|
2024-11-02 08:07:54 +01:00
|
|
|
[node name="JumpPad2" parent="Objects" instance=ExtResource("3_vhvgl")]
|
2024-11-02 07:50:32 +01:00
|
|
|
position = Vector2(140, 194)
|
|
|
|
|
jump_force = 500
|
|
|
|
|
|
2024-11-02 08:07:54 +01:00
|
|
|
[node name="Traps" type="Node2D" parent="."]
|
|
|
|
|
|
|
|
|
|
[node name="SawTrap" parent="Traps" instance=ExtResource("4_f5456")]
|
|
|
|
|
position = Vector2(272, 163)
|
|
|
|
|
|
|
|
|
|
[node name="SpikeBallTrap" parent="Traps" instance=ExtResource("5_8oo66")]
|
|
|
|
|
position = Vector2(188, 113)
|
|
|
|
|
|
2024-11-02 07:24:48 +01:00
|
|
|
[connection signal="body_entered" from="Deathzone" to="." method="_on_death_zone_body_entered"]
|