Last stretch
This commit is contained in:
parent
466a154972
commit
68271c94ed
13 changed files with 338 additions and 99 deletions
|
@ -1,34 +1,28 @@
|
|||
[gd_scene load_steps=28 format=3 uid="uid://dhn7yt46fyac8"]
|
||||
[gd_scene load_steps=23 format=3 uid="uid://dhn7yt46fyac8"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bhulqhxesd5gc" path="res://prefabs/player.tscn" id="1_65a7v"]
|
||||
[ext_resource type="AudioStream" uid="uid://bsy2d0bl3lgg0" path="res://sounds/crank.ogg" id="1_cweq4"]
|
||||
[ext_resource type="Script" path="res://scripts/GameManager.cs" id="1_ij566"]
|
||||
[ext_resource type="Texture2D" uid="uid://py6qiu3rm7cu" path="res://sprites/brickwall.png" id="2_edqdh"]
|
||||
[ext_resource type="Texture2D" uid="uid://dlbl6d4yghvht" path="res://sprites/mask.png" id="3_8o315"]
|
||||
[ext_resource type="Script" path="res://scripts/Flashlight.cs" id="3_cylxo"]
|
||||
[ext_resource type="PackedScene" uid="uid://bdtjnmjopi5h2" path="res://prefabs/play_zone.tscn" id="4_5sggf"]
|
||||
[ext_resource type="Material" uid="uid://xuvxq5hy1dt" path="res://shaders/light_shader_material.tres" id="4_ro05e"]
|
||||
[ext_resource type="Shader" path="res://shaders/dithering.gdshader" id="5_64d71"]
|
||||
[ext_resource type="PackedScene" uid="uid://cn0rwyjern2vx" path="res://scenes/level.tscn" id="5_skctj"]
|
||||
[ext_resource type="Script" path="res://scripts/GameCamera.cs" id="6_quua3"]
|
||||
[ext_resource type="Script" path="res://scripts/PointLight2DWorkaround.cs" id="6_slohe"]
|
||||
[ext_resource type="PackedScene" uid="uid://ccg3n7sobsvdw" path="res://prefabs/enemies/watcher.tscn" id="10_fsiss"]
|
||||
[ext_resource type="PackedScene" path="res://prefabs/enemies/living_armor.tscn" id="11_x3ep3"]
|
||||
[ext_resource type="PackedScene" uid="uid://bj1ixwjdpnooo" path="res://prefabs/entities/pressure_plate.tscn" id="12_ynt5e"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqx43vr727ft8" path="res://prefabs/entities/spikes.tscn" id="13_w1hk1"]
|
||||
[ext_resource type="Script" path="res://scripts/WinScreen.cs" id="13_prax6"]
|
||||
[ext_resource type="Theme" uid="uid://daxgxg7c8v0ih" path="res://themes/zx_theme.tres" id="14_g1c0r"]
|
||||
[ext_resource type="Script" path="res://scripts/DeathScreen.cs" id="15_12mhe"]
|
||||
[ext_resource type="PackedScene" path="res://prefabs/enemies/wretched.tscn" id="16_ejflu"]
|
||||
[ext_resource type="PackedScene" uid="uid://bdtjnmjopi5h2" path="res://prefabs/play_zone.tscn" id="17_mxxy2"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_o5byr"]
|
||||
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_wg1ao"]
|
||||
light_mode = 2
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_m680d"]
|
||||
shader = ExtResource("5_64d71")
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_q4yg2"]
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_x6taj"]
|
||||
viewport_path = NodePath("FlashlightViewport")
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_prnh4"]
|
||||
|
@ -49,15 +43,11 @@ gradient = SubResource("Gradient_cy0nu")
|
|||
width = 256
|
||||
height = 192
|
||||
|
||||
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_au1d0"]
|
||||
light_mode = 2
|
||||
|
||||
[node name="Root" type="Node2D"]
|
||||
y_sort_enabled = true
|
||||
|
||||
[node name="GameManager" type="Node" parent="." node_paths=PackedStringArray("FirstZone", "Player")]
|
||||
[node name="GameManager" type="Node" parent="." node_paths=PackedStringArray("Player")]
|
||||
script = ExtResource("1_ij566")
|
||||
FirstZone = NodePath("../TestPlayZone")
|
||||
Player = NodePath("../Player")
|
||||
|
||||
[node name="Sounds" type="Node" parent="."]
|
||||
|
@ -79,21 +69,27 @@ FlashlightGroup = NodePath("../FlashlightViewport/CanvasGroup")
|
|||
BrightnessCurve = SubResource("Curve_o5byr")
|
||||
CrankSoundPlayer = NodePath("../Sounds/CrankSound")
|
||||
|
||||
[node name="Zones" type="Node" parent="."]
|
||||
|
||||
[node name="PlayZone1" parent="Zones" node_paths=PackedStringArray("TopLeftCorner", "BottomRightCorner", "PlayerSpawnPoint") instance=ExtResource("4_5sggf")]
|
||||
position = Vector2(25, -1)
|
||||
TopLeftCorner = NodePath("TL")
|
||||
BottomRightCorner = NodePath("BR")
|
||||
PlayerSpawnPoint = NodePath("PS")
|
||||
|
||||
[node name="TL" type="Node2D" parent="Zones/PlayZone1"]
|
||||
position = Vector2(9, 95)
|
||||
|
||||
[node name="BR" type="Node2D" parent="Zones/PlayZone1"]
|
||||
position = Vector2(166, 256)
|
||||
|
||||
[node name="PS" type="Node2D" parent="Zones/PlayZone1"]
|
||||
position = Vector2(55, 127)
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("1_65a7v")]
|
||||
position = Vector2(19, 4)
|
||||
position = Vector2(74, 147)
|
||||
|
||||
[node name="TestWall" type="Sprite2D" parent="."]
|
||||
light_mask = 2
|
||||
y_sort_enabled = true
|
||||
material = SubResource("CanvasItemMaterial_wg1ao")
|
||||
position = Vector2(58, 37)
|
||||
texture = ExtResource("2_edqdh")
|
||||
|
||||
[node name="TestWall2" type="Sprite2D" parent="."]
|
||||
light_mask = 2
|
||||
y_sort_enabled = true
|
||||
position = Vector2(85, 71)
|
||||
texture = ExtResource("2_edqdh")
|
||||
[node name="level" parent="." instance=ExtResource("5_skctj")]
|
||||
|
||||
[node name="FlashlightViewport" type="SubViewport" parent="."]
|
||||
disable_3d = true
|
||||
|
@ -126,7 +122,7 @@ CameraBounds = Vector2(30, 20)
|
|||
[node name="PointLight2D" type="PointLight2D" parent="PlayerCamera" node_paths=PackedStringArray("LightViewport")]
|
||||
blend_mode = 2
|
||||
range_item_cull_mask = 2
|
||||
texture = SubResource("ViewportTexture_q4yg2")
|
||||
texture = SubResource("ViewportTexture_x6taj")
|
||||
script = ExtResource("6_slohe")
|
||||
LightViewport = NodePath("../../FlashlightViewport")
|
||||
|
||||
|
@ -186,58 +182,59 @@ layout_mode = 0
|
|||
[node name="MonsterSprite" type="TextureRect" parent="CanvasLayer/DeathScreen"]
|
||||
layout_mode = 0
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
light_mask = 2
|
||||
y_sort_enabled = true
|
||||
material = SubResource("CanvasItemMaterial_au1d0")
|
||||
position = Vector2(-83, 43)
|
||||
texture = ExtResource("3_8o315")
|
||||
[node name="WinScreen" type="TextureRect" parent="CanvasLayer" node_paths=PackedStringArray("Manager")]
|
||||
z_index = 15
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture2D_2sbp3")
|
||||
script = ExtResource("13_prax6")
|
||||
Manager = NodePath("../../GameManager")
|
||||
|
||||
[node name="Watcher" parent="." instance=ExtResource("10_fsiss")]
|
||||
position = Vector2(116, -76)
|
||||
[node name="Label" type="Label" parent="CanvasLayer/WinScreen"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
offset_bottom = 81.0
|
||||
grow_horizontal = 2
|
||||
theme = ExtResource("14_g1c0r")
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "CONGRATULATIONS!"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="LivingArmor" parent="." instance=ExtResource("11_x3ep3")]
|
||||
position = Vector2(-70, -67)
|
||||
[node name="Label2" type="Label" parent="CanvasLayer/WinScreen"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 14
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_top = -11.5
|
||||
offset_bottom = 11.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("14_g1c0r")
|
||||
text = "It took you
|
||||
{} attempts
|
||||
and {}
|
||||
to finish the game."
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="pressure_plate" parent="." instance=ExtResource("12_ynt5e")]
|
||||
position = Vector2(31, 51)
|
||||
|
||||
[node name="spikes" parent="." instance=ExtResource("13_w1hk1")]
|
||||
position = Vector2(-40, 112)
|
||||
Enabled = true
|
||||
SpikesTimeout = 0.5
|
||||
|
||||
[node name="spikes2" parent="." instance=ExtResource("13_w1hk1")]
|
||||
position = Vector2(-8, 112)
|
||||
Enabled = true
|
||||
SpikesTimeout = 0.5
|
||||
StartOffset = 0.25
|
||||
|
||||
[node name="spikes3" parent="." instance=ExtResource("13_w1hk1")]
|
||||
position = Vector2(24, 112)
|
||||
Enabled = true
|
||||
SpikesTimeout = 0.5
|
||||
StartOffset = 0.5
|
||||
|
||||
[node name="Wretched" parent="." instance=ExtResource("16_ejflu")]
|
||||
position = Vector2(-120, 42)
|
||||
|
||||
[node name="Wretched2" parent="." instance=ExtResource("16_ejflu")]
|
||||
position = Vector2(-139, -39)
|
||||
|
||||
[node name="TestPlayZone" parent="." node_paths=PackedStringArray("TopLeftCorner", "BottomRightCorner", "PlayerSpawnPoint") instance=ExtResource("17_mxxy2")]
|
||||
position = Vector2(79, 99)
|
||||
TopLeftCorner = NodePath("TopLeft")
|
||||
BottomRightCorner = NodePath("BottomRight")
|
||||
PlayerSpawnPoint = NodePath("SpawnPoint")
|
||||
|
||||
[node name="TopLeft" type="Node2D" parent="TestPlayZone"]
|
||||
|
||||
[node name="BottomRight" type="Node2D" parent="TestPlayZone"]
|
||||
position = Vector2(97, 67)
|
||||
|
||||
[node name="SpawnPoint" type="Node2D" parent="TestPlayZone"]
|
||||
position = Vector2(56, 34)
|
||||
[node name="Label3" type="Label" parent="CanvasLayer/WinScreen"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 12
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -52.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
theme = ExtResource("14_g1c0r")
|
||||
text = "Thank you for playing! :)"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[connection signal="timeout" from="CanvasLayer/DeathScreen/Timer" to="CanvasLayer/DeathScreen" method="Timeout"]
|
||||
[connection signal="ZoneEntered" from="TestPlayZone" to="GameManager" method="SetCurrentZone"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue