Main menu, ZX Spectrum-like font, Death screen, Fixed typo, Game Manager
This commit is contained in:
parent
602df1ed1d
commit
b0caf99373
24 changed files with 497 additions and 17 deletions
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=22 format=3 uid="uid://dhn7yt46fyac8"]
|
||||
[gd_scene load_steps=26 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"]
|
||||
|
@ -10,9 +11,10 @@
|
|||
[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" uid="uid://bpusphyhhg074" path="res://prefabs/enemies/living_armor.tscn" id="11_x3ep3"]
|
||||
[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/DeathScreen.cs" id="15_12mhe"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_o5byr"]
|
||||
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.0824742, 0.273684), -10.2105, 0.0, 0, 0, Vector2(0.242268, 0.494737), -5.10526, 0.0, 0, 0, Vector2(0.396907, 0.736842), -7.6579, 0.0, 0, 0, Vector2(0.737113, 1), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
|
||||
|
@ -24,7 +26,7 @@ light_mode = 2
|
|||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_m680d"]
|
||||
shader = ExtResource("5_64d71")
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_y74yf"]
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_psi2l"]
|
||||
viewport_path = NodePath("FlashlightViewport")
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_prnh4"]
|
||||
|
@ -35,12 +37,25 @@ radius = 16.0
|
|||
[sub_resource type="ViewportTexture" id="ViewportTexture_nnmvo"]
|
||||
viewport_path = NodePath("FlashlightViewport")
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_cy0nu"]
|
||||
interpolation_mode = 1
|
||||
offsets = PackedFloat32Array(0)
|
||||
colors = PackedColorArray(0, 0, 0, 1)
|
||||
|
||||
[sub_resource type="GradientTexture2D" id="GradientTexture2D_2sbp3"]
|
||||
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="."]
|
||||
script = ExtResource("1_ij566")
|
||||
|
||||
[node name="Sounds" type="Node" parent="."]
|
||||
|
||||
[node name="CrankSound" type="AudioStreamPlayer" parent="Sounds"]
|
||||
|
@ -107,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_y74yf")
|
||||
texture = SubResource("ViewportTexture_psi2l")
|
||||
script = ExtResource("6_slohe")
|
||||
LightViewport = NodePath("../../FlashlightViewport")
|
||||
|
||||
|
@ -146,6 +161,27 @@ anchor_bottom = 1.0
|
|||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="DeathScreen" type="TextureRect" parent="CanvasLayer" node_paths=PackedStringArray("Camera")]
|
||||
visible = false
|
||||
z_index = 10
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
texture = SubResource("GradientTexture2D_2sbp3")
|
||||
script = ExtResource("15_12mhe")
|
||||
Camera = NodePath("../../PlayerCamera")
|
||||
|
||||
[node name="Timer" type="Timer" parent="CanvasLayer/DeathScreen"]
|
||||
wait_time = 3.0
|
||||
|
||||
[node name="PlayerSprite" type="TextureRect" parent="CanvasLayer/DeathScreen"]
|
||||
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
|
||||
|
@ -191,8 +227,4 @@ Enabled = true
|
|||
SpikesTimeout = 0.5
|
||||
StartOffset = 0.5
|
||||
|
||||
[connection signal="ButtonPressed" from="pressure_plate" to="spikes" method="Off"]
|
||||
[connection signal="ButtonPressed" from="pressure_plate" to="spikes2" method="Off"]
|
||||
[connection signal="ButtonPressed" from="pressure_plate" to="spikes3" method="Off"]
|
||||
[connection signal="ButtonUnpressed" from="pressure_plate" to="spikes" method="On"]
|
||||
[connection signal="ButtonUnpressed" from="pressure_plate" to="spikes3" method="On"]
|
||||
[connection signal="timeout" from="CanvasLayer/DeathScreen/Timer" to="CanvasLayer/DeathScreen" method="Timeout"]
|
||||
|
|
48
scenes/menu.tscn
Normal file
48
scenes/menu.tscn
Normal file
|
@ -0,0 +1,48 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://c7w8oqlobjae0"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/Menu.cs" id="1_dlrmp"]
|
||||
[ext_resource type="AudioStream" uid="uid://ilvpdkvibr7c" path="res://sounds/thunderclap.ogg" id="2_nviw8"]
|
||||
[ext_resource type="Theme" uid="uid://daxgxg7c8v0ih" path="res://themes/zx_theme.tres" id="3_d3ur4"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_6kcty"]
|
||||
resource_name = "intro_animation"
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_mjata"]
|
||||
_data = {
|
||||
"intro_animation": SubResource("Animation_6kcty")
|
||||
}
|
||||
|
||||
[node name="Menu" type="Node2D"]
|
||||
script = ExtResource("1_dlrmp")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_mjata")
|
||||
}
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 2.0
|
||||
one_shot = true
|
||||
|
||||
[node name="Thunderclap" type="AudioStreamPlayer2D" parent="."]
|
||||
stream = ExtResource("2_nviw8")
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="Label" type="Label" parent="CanvasLayer"]
|
||||
anchors_preset = 12
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -26.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
rotation = -0.001216
|
||||
theme = ExtResource("3_d3ur4")
|
||||
text = "Press Start or Enter"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="ChangeScene"]
|
Loading…
Add table
Add a link
Reference in a new issue