feat: added opening screen to flatscreen game
This commit is contained in:
parent
3b32e295e1
commit
ad0c352b34
1 changed files with 30 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=20 format=3 uid="uid://o3ri154wpbrx"]
|
||||
[gd_scene load_steps=23 format=3 uid="uid://o3ri154wpbrx"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://btcmnw6q6g0h0" path="res://objects/pinned_photo.tscn" id="1_7cefc"]
|
||||
[ext_resource type="PackedScene" uid="uid://kk4ecpjc4puc" path="res://scenes/results_ui.tscn" id="1_thvsl"]
|
||||
|
|
@ -12,6 +12,7 @@
|
|||
[ext_resource type="Texture2D" uid="uid://dyagjhgq52sht" path="res://assets/photo-images/Envelope_Front.png" id="5_r41gl"]
|
||||
[ext_resource type="Texture2D" uid="uid://be1xto717rt6n" path="res://assets/photo-images/Murder_Suspect_File.png" id="6_xic1t"]
|
||||
[ext_resource type="AudioStream" uid="uid://b1e65rh58ff4r" path="res://assets/sound/Searchin theme solo.mp3" id="12_r41gl"]
|
||||
[ext_resource type="Texture2D" uid="uid://dsote57os8rr4" path="res://assets/photo-images/Start_Screen.png" id="13_xic1t"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_thvsl"]
|
||||
script/source = "extends Node2D
|
||||
|
|
@ -73,6 +74,22 @@ func _on_any_slot_selection_changed(_new_value: int) -> void:
|
|||
update_can_send()
|
||||
"
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_r41gl"]
|
||||
script/source = "extends Area2D
|
||||
|
||||
func _unhandled_input(event : InputEvent) -> void:
|
||||
if not event.is_class(\"InputEventMouseButton\"):
|
||||
return
|
||||
var button : InputEventMouseButton = event
|
||||
if button.button_index == MOUSE_BUTTON_LEFT:
|
||||
get_viewport().set_input_as_handled()
|
||||
queue_free();
|
||||
|
||||
"
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_r41gl"]
|
||||
size = Vector2(1992, 1138)
|
||||
|
||||
[node name="Workspace" type="Node2D"]
|
||||
script = SubResource("GDScript_thvsl")
|
||||
conclusion_screen = ExtResource("1_thvsl")
|
||||
|
|
@ -230,6 +247,18 @@ volume_db = -13.79
|
|||
autoplay = true
|
||||
parameters/looping = true
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
script = SubResource("GDScript_r41gl")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Area2D"]
|
||||
position = Vector2(968, 543)
|
||||
scale = Vector2(1.0489583, 1.0925926)
|
||||
texture = ExtResource("13_xic1t")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
position = Vector2(970, 544)
|
||||
shape = SubResource("RectangleShape2D_r41gl")
|
||||
|
||||
[connection signal="selection_changed" from="Handin/WeaponSlot" to="Handin/SubmitButton" method="_on_any_slot_selection_changed"]
|
||||
[connection signal="selection_changed" from="Handin/MotiveSlot" to="Handin/SubmitButton" method="_on_any_slot_selection_changed"]
|
||||
[connection signal="selection_changed" from="Handin/MurdererSlot" to="Handin/SubmitButton" method="_on_any_slot_selection_changed"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue