Skip to content

Commit

Permalink
added menu scene
Browse files Browse the repository at this point in the history
  • Loading branch information
Matvey Sivachinski authored and Matvey Sivachinski committed Jan 29, 2024
1 parent 1b52ca4 commit 2cd601b
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Menu.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extends Node2D

func _on_play_pressed():
get_tree().change_scene_to_file("res://prototypes/game-shadows-of-surveillance/levels/game-shadows-of-surveillance.tscn")


func _on_quit_pressed():
get_tree().quit()
36 changes: 36 additions & 0 deletions Menu.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[gd_scene load_steps=4 format=3 uid="uid://dljda0ivhil8u"]

[ext_resource type="Texture2D" uid="uid://bauf77n1ppfno" path="res://background.png" id="1_0mdtr"]
[ext_resource type="Script" path="res://Menu.gd" id="1_m24er"]

[sub_resource type="SystemFont" id="SystemFont_vi34g"]

[node name="MainMenu" type="Node2D"]
script = ExtResource("1_m24er")

[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(594, 325)
scale = Vector2(0.662946, 0.632139)
texture = ExtResource("1_0mdtr")

[node name="MarginContainer" type="MarginContainer" parent="."]
offset_left = 464.0
offset_top = 210.0
offset_right = 802.0
offset_bottom = 455.0

[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
layout_mode = 2
alignment = 1

[node name="Play" type="Button" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
theme_override_fonts/font = SubResource("SystemFont_vi34g")
text = "Play"

[node name="Quit" type="Button" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
text = "Quit"

[connection signal="pressed" from="MarginContainer/VBoxContainer/Play" to="." method="_on_play_pressed"]
[connection signal="pressed" from="MarginContainer/VBoxContainer/Quit" to="." method="_on_quit_pressed"]
Binary file modified background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ config_version=5
[application]

config/name="pronto"
run/main_scene="res://prototypes/game-shadows-of-surveillance/levels/game-shadows-of-surveillance.tscn"
run/main_scene="res://Menu.tscn"
config/features=PackedStringArray("4.2", "Forward Plus")
run/low_processor_mode=true
config/icon="res://icon.svg"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"Matvey Sivashinski"
],
"description": "You are a brilliant scientist who just discovered time travel. Unfortunately, during your first test, something goes wrong and your mind is split into two parts, one part travels to the future and one is stuck in the present. \nIn this coop split screen game, your goal is to somehow recombine the two parts of your mind. But be careful: In the future, some things have changed...",
"time": "2024-01-22",
"time": "2024-01-29",
"title": "Shadows of Surveillance"
}
Binary file modified prototypes/game-shadows-of-surveillance/levels/thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2cd601b

Please sign in to comment.