diff --git a/Restart.gd b/Restart.gd new file mode 100644 index 00000000..49307581 --- /dev/null +++ b/Restart.gd @@ -0,0 +1,7 @@ +extends Node2D + +func _on_quit_pressed(): + get_tree().quit() + +func _on_restart_pressed(): + get_tree().change_scene_to_file("res://prototypes/game-shadows-of-surveillance/levels/game-shadows-of-surveillance.tscn") diff --git a/Restart.tscn b/Restart.tscn new file mode 100644 index 00000000..8b3e19ff --- /dev/null +++ b/Restart.tscn @@ -0,0 +1,37 @@ +[gd_scene load_steps=4 format=3 uid="uid://fe6tbssgpdo"] + +[ext_resource type="Script" path="res://Restart.gd" id="1_dmkts"] +[ext_resource type="Texture2D" uid="uid://bauf77n1ppfno" path="res://background.png" id="2_f6gj5"] + +[sub_resource type="SystemFont" id="SystemFont_vi34g"] + +[node name="RestartMenu" type="Node2D"] +script = ExtResource("1_dmkts") + +[node name="Sprite2D" type="Sprite2D" parent="."] +position = Vector2(594, 325) +scale = Vector2(0.662946, 0.632139) +texture = ExtResource("2_f6gj5") + +[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="Restart" type="Button" parent="MarginContainer/VBoxContainer"] +layout_mode = 2 +theme_override_fonts/font = SubResource("SystemFont_vi34g") +text = "Restart" + +[node name="Quit" type="Button" parent="MarginContainer/VBoxContainer"] +layout_mode = 2 +text = "Quit" + +[connection signal="pressed" from="MarginContainer/VBoxContainer/Restart" to="." method="_on_play_pressed"] +[connection signal="pressed" from="MarginContainer/VBoxContainer/Restart" to="." method="_on_restart_pressed"] +[connection signal="pressed" from="MarginContainer/VBoxContainer/Quit" to="." method="_on_quit_pressed"] diff --git a/Win.tscn b/Win.tscn new file mode 100644 index 00000000..bf57f996 --- /dev/null +++ b/Win.tscn @@ -0,0 +1,49 @@ +[gd_scene load_steps=5 format=3 uid="uid://by5ds7n3g1sv"] + +[ext_resource type="Script" path="res://Restart.gd" id="1_kwtlj"] +[ext_resource type="Texture2D" uid="uid://bauf77n1ppfno" path="res://background.png" id="2_qdldx"] + +[sub_resource type="LabelSettings" id="LabelSettings_u547s"] +font_size = 76 +outline_size = 3 +outline_color = Color(0, 0, 0, 1) +shadow_size = 5 +shadow_color = Color(0, 0, 0, 0.92549) + +[sub_resource type="SystemFont" id="SystemFont_vi34g"] + +[node name="RestartMenu" type="Node2D"] +script = ExtResource("1_kwtlj") + +[node name="Sprite2D" type="Sprite2D" parent="."] +position = Vector2(594, 325) +scale = Vector2(0.662946, 0.632139) +texture = ExtResource("2_qdldx") + +[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="Label" type="Label" parent="MarginContainer/VBoxContainer"] +layout_mode = 2 +text = "You Won" +label_settings = SubResource("LabelSettings_u547s") + +[node name="Restart" type="Button" parent="MarginContainer/VBoxContainer"] +layout_mode = 2 +theme_override_fonts/font = SubResource("SystemFont_vi34g") +text = "Restart" + +[node name="Quit" type="Button" parent="MarginContainer/VBoxContainer"] +layout_mode = 2 +text = "Quit" + +[connection signal="pressed" from="MarginContainer/VBoxContainer/Restart" to="." method="_on_play_pressed"] +[connection signal="pressed" from="MarginContainer/VBoxContainer/Restart" to="." method="_on_restart_pressed"] +[connection signal="pressed" from="MarginContainer/VBoxContainer/Quit" to="." method="_on_quit_pressed"] diff --git a/prototypes/game-shadows-of-surveillance/characters/drone.tscn b/prototypes/game-shadows-of-surveillance/characters/drone.tscn index 2332b6a4..1dd10476 100644 --- a/prototypes/game-shadows-of-surveillance/characters/drone.tscn +++ b/prototypes/game-shadows-of-surveillance/characters/drone.tscn @@ -11,7 +11,7 @@ [sub_resource type="CircleShape2D" id="CircleShape2D_kvhpb"] -[sub_resource type="Image" id="Image_laljb"] +[sub_resource type="Image" id="Image_ri0ew"] data = { "data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 233, 233, 233, 23, 224, 224, 224, 198, 225, 225, 225, 199, 224, 224, 224, 24, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 233, 233, 233, 23, 224, 224, 224, 213, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 215, 224, 224, 224, 24, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 103, 224, 224, 224, 255, 224, 224, 224, 212, 224, 224, 224, 209, 224, 224, 224, 255, 224, 224, 224, 107, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 103, 232, 232, 232, 22, 230, 230, 230, 20, 224, 224, 224, 105, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 233, 233, 233, 23, 225, 225, 225, 109, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 107, 224, 224, 224, 24, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 233, 233, 233, 23, 224, 224, 224, 213, 224, 224, 224, 255, 225, 225, 225, 108, 255, 255, 255, 0, 225, 225, 225, 76, 224, 224, 224, 229, 224, 224, 224, 228, 224, 224, 224, 74, 255, 255, 255, 0, 224, 224, 224, 105, 224, 224, 224, 255, 225, 225, 225, 215, 224, 224, 224, 24, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 197, 224, 224, 224, 255, 224, 224, 224, 211, 231, 231, 231, 21, 255, 255, 255, 0, 224, 224, 224, 229, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 228, 255, 255, 255, 0, 230, 230, 230, 20, 224, 224, 224, 208, 224, 224, 224, 255, 224, 224, 224, 201, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 195, 224, 224, 224, 255, 225, 225, 225, 215, 224, 224, 224, 24, 255, 255, 255, 0, 224, 224, 224, 228, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 227, 255, 255, 255, 0, 233, 233, 233, 23, 224, 224, 224, 213, 224, 224, 224, 255, 224, 224, 224, 198, 255, 255, 255, 0, 255, 255, 255, 0, 231, 231, 231, 21, 224, 224, 224, 210, 224, 224, 224, 255, 224, 224, 224, 107, 255, 255, 255, 0, 224, 224, 224, 74, 224, 224, 224, 228, 224, 224, 224, 227, 224, 224, 224, 72, 255, 255, 255, 0, 226, 226, 226, 103, 224, 224, 224, 255, 224, 224, 224, 212, 232, 232, 232, 22, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 231, 231, 231, 21, 224, 224, 224, 105, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 103, 232, 232, 232, 22, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 107, 224, 224, 224, 24, 232, 232, 232, 22, 225, 225, 225, 109, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 105, 224, 224, 224, 255, 225, 225, 225, 215, 224, 224, 224, 211, 224, 224, 224, 255, 225, 225, 225, 108, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 231, 231, 231, 21, 224, 224, 224, 210, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 212, 232, 232, 232, 22, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 231, 231, 231, 21, 224, 224, 224, 194, 224, 224, 224, 196, 232, 232, 232, 22, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0), "format": "RGBA8", @@ -21,7 +21,7 @@ data = { } [sub_resource type="ImageTexture" id="ImageTexture_1i6xe"] -image = SubResource("Image_laljb") +image = SubResource("Image_ri0ew") [sub_resource type="GDScript" id="GDScript_6kxwn"] script/source = "@tool @@ -113,7 +113,7 @@ deferred = false enabled = true trigger = "" -[sub_resource type="Image" id="Image_4gc6h"] +[sub_resource type="Image" id="Image_r6qqn"] data = { "data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 160, 230, 230, 230, 10, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 213, 225, 225, 225, 42, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 76, 224, 224, 224, 189, 224, 224, 224, 238, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 245, 224, 224, 224, 96, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 135, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 245, 226, 226, 226, 95, 255, 255, 255, 0, 255, 255, 255, 1, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 77, 224, 224, 224, 255, 224, 224, 224, 253, 225, 225, 225, 117, 224, 224, 224, 32, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 212, 225, 225, 225, 42, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 129, 225, 225, 225, 68, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 189, 224, 224, 224, 255, 224, 224, 224, 113, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 159, 230, 230, 230, 10, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 73, 224, 224, 224, 255, 225, 225, 225, 183, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 242, 224, 224, 224, 255, 224, 224, 224, 24, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 25, 224, 224, 224, 255, 224, 224, 224, 237, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 243, 224, 224, 224, 254, 233, 233, 233, 23, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 229, 229, 229, 29, 224, 224, 224, 255, 224, 224, 224, 236, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 188, 224, 224, 224, 255, 225, 225, 225, 68, 255, 255, 255, 0, 255, 255, 255, 0, 230, 230, 230, 10, 224, 224, 224, 160, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 120, 224, 224, 224, 255, 224, 224, 224, 181, 255, 255, 255, 0, 255, 255, 255, 0, 227, 227, 227, 71, 225, 225, 225, 126, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 43, 224, 224, 224, 213, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 34, 225, 225, 225, 124, 224, 224, 224, 254, 224, 224, 224, 255, 226, 226, 226, 70, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 96, 224, 224, 224, 245, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 225, 225, 225, 125, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 226, 226, 226, 95, 224, 224, 224, 245, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 237, 224, 224, 224, 185, 227, 227, 227, 71, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 225, 225, 225, 42, 224, 224, 224, 213, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 230, 230, 230, 10, 225, 225, 225, 159, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0), "format": "RGBA8", @@ -123,7 +123,7 @@ data = { } [sub_resource type="ImageTexture" id="ImageTexture_r1157"] -image = SubResource("Image_4gc6h") +image = SubResource("Image_r6qqn") [node name="Enemy" type="CharacterBody2D" groups=["enemy"]] position = Vector2(870, 309) diff --git a/prototypes/game-shadows-of-surveillance/characters/player2.tscn b/prototypes/game-shadows-of-surveillance/characters/player2.tscn index 446374ba..16a7341a 100644 --- a/prototypes/game-shadows-of-surveillance/characters/player2.tscn +++ b/prototypes/game-shadows-of-surveillance/characters/player2.tscn @@ -69,5 +69,7 @@ script = ExtResource("3_kwpqc") [node name="HealthBarBehavior" type="Node2D" parent="."] position = Vector2(0, -11.6279) script = ExtResource("5_oymb4") +max = 200 +current = 200 progress_gradient = SubResource("Gradient_53jmr") metadata/pronto_connections = [SubResource("Resource_xvx8k")] diff --git a/prototypes/game-shadows-of-surveillance/game_info.json b/prototypes/game-shadows-of-surveillance/game_info.json deleted file mode 100644 index 406333cd..00000000 --- a/prototypes/game-shadows-of-surveillance/game_info.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "authors": [ - "Ole Becker", - "David Schroschk", - "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", - "title": "Shadows of Surveillance" -} \ No newline at end of file diff --git a/prototypes/game-shadows-of-surveillance/levels/game_info.json b/prototypes/game-shadows-of-surveillance/levels/game_info.json index f706d021..2176007f 100644 --- a/prototypes/game-shadows-of-surveillance/levels/game_info.json +++ b/prototypes/game-shadows-of-surveillance/levels/game_info.json @@ -7,4 +7,4 @@ "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-02-05", "title": "Shadows of Surveillance" -} +} \ No newline at end of file diff --git a/prototypes/game-shadows-of-surveillance/levels/level.gd b/prototypes/game-shadows-of-surveillance/levels/level.gd new file mode 100644 index 00000000..3f14cdc5 --- /dev/null +++ b/prototypes/game-shadows-of-surveillance/levels/level.gd @@ -0,0 +1,15 @@ +extends Node2D + +var player +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + player = get_node("Player1") + if player: + if player.global_position.y > 1000: + player.queue_free() + get_tree().change_scene_to_file("res://Restart.tscn") diff --git a/prototypes/game-shadows-of-surveillance/levels/level.tscn b/prototypes/game-shadows-of-surveillance/levels/level.tscn index 04937268..d272440a 100644 --- a/prototypes/game-shadows-of-surveillance/levels/level.tscn +++ b/prototypes/game-shadows-of-surveillance/levels/level.tscn @@ -1,6 +1,7 @@ -[gd_scene load_steps=10 format=3 uid="uid://dyvtu758xr2so"] +[gd_scene load_steps=11 format=3 uid="uid://dyvtu758xr2so"] [ext_resource type="Texture2D" uid="uid://bhjxc5s34c3cu" path="res://prototypes/game-shadows-of-surveillance/assets/10.png" id="1_elldh"] +[ext_resource type="Script" path="res://prototypes/game-shadows-of-surveillance/levels/level.gd" id="1_g6fwj"] [ext_resource type="Script" path="res://prototypes/game-shadows-of-surveillance/scripts/LightSwitch.gd" id="2_4klox"] [ext_resource type="Script" path="res://addons/pronto/behaviors/PlaceholderBehavior.gd" id="3_euvp3"] [ext_resource type="TileSet" uid="uid://dp12gfueqor5q" path="res://tileset.tres" id="3_r5ys7"] @@ -13,14 +14,23 @@ size = Vector2(11, 29) [node name="Level" type="Node2D"] +script = ExtResource("1_g6fwj") [node name="Background" type="Sprite2D" parent="."] -position = Vector2(577, 323.5) +position = Vector2(1352, 113) scale = Vector2(2.5, 2.51) texture = ExtResource("1_elldh") +[node name="Background2" type="Sprite2D" parent="Background"] +position = Vector2(2304, 2.08165e-12) +texture = ExtResource("1_elldh") + +[node name="Background3" type="Sprite2D" parent="Background/Background2"] +position = Vector2(2304, 0) +texture = ExtResource("1_elldh") + [node name="LightSwitch" type="Area2D" parent="." groups=["button"]] -position = Vector2(466, 480) +position = Vector2(980, 541) scale = Vector2(0.99, 0.99) collision_layer = 2 collision_mask = 2 @@ -50,10 +60,10 @@ script = ExtResource("6_i4obq") [node name="TileMap" type="TileMap" parent="."] tile_set = ExtResource("3_r5ys7") format = 2 -layer_0/tile_data = PackedInt32Array(2424834, 524288, 6, 2424835, 589824, 6, 2424836, 589824, 6, 2424837, 589824, 6, 2424838, 589824, 6, 2424839, 589824, 6, 2424840, 589824, 6, 2424841, 589824, 6, 2424842, 589824, 6, 2424843, 589824, 6, 2424844, 589824, 6, 2424845, 589824, 6, 2424846, 589824, 6, 2424847, 589824, 6, 2424848, 589824, 6, 2424849, 589824, 6, 2490370, 524288, 7, 2555906, 524288, 7, 2621442, 524288, 7, 2490371, 589824, 7, 2555907, 589824, 7, 2621443, 589824, 7, 2621444, 589824, 7, 2621445, 589824, 7, 2621446, 589824, 7, 2621447, 589824, 7, 2621448, 589824, 7, 2621449, 589824, 7, 2621450, 589824, 7, 2621451, 589824, 7, 2621452, 589824, 7, 2621453, 589824, 7, 2621454, 589824, 7, 2621455, 589824, 7, 2621456, 589824, 7, 2621457, 589824, 7, 2621458, 589824, 7, 2555922, 589824, 7, 2490386, 589824, 7, 2490385, 589824, 7, 2490384, 589824, 7, 2490383, 589824, 7, 2490382, 589824, 7, 2490381, 589824, 7, 2490380, 589824, 7, 2490379, 589824, 7, 2490378, 589824, 7, 2490377, 589824, 7, 2490376, 589824, 7, 2490375, 589824, 7, 2490374, 589824, 7, 2490373, 589824, 7, 2490372, 589824, 7, 2555908, 589824, 7, 2555909, 589824, 7, 2555910, 589824, 7, 2555911, 589824, 7, 2555912, 589824, 7, 2555913, 589824, 7, 2555914, 589824, 7, 2555915, 589824, 7, 2555916, 589824, 7, 2555917, 589824, 7, 2555918, 589824, 7, 2555919, 589824, 7, 2555920, 589824, 7, 2555921, 589824, 7, 2424850, 589824, 6, 2490387, 655360, 7, 2424851, 655360, 6, 2555923, 655360, 7, 2621459, 655360, 7, 2228250, 589824, 6, 2228251, 589824, 6, 2228252, 589824, 6, 2228253, 589824, 6, 2228254, 589824, 6, 2228255, 589824, 6, 2228256, 589824, 6, 2228257, 589824, 6, 2228258, 589824, 6, 2228259, 589824, 6, 2228260, 589824, 6, 2228261, 589824, 6, 2228262, 589824, 6, 2228263, 589824, 6, 2228264, 589824, 6, 2228249, 524288, 6, 2293785, 524288, 7, 2359321, 524288, 7, 2424857, 524288, 7, 2490393, 524288, 7, 2555929, 524288, 7, 2621465, 524288, 7, 2293786, 589824, 7, 2359322, 589824, 7, 2424858, 589824, 7, 2490394, 589824, 7, 2555930, 589824, 7, 2621466, 589824, 7, 2293787, 589824, 7, 2293788, 589824, 7, 2293789, 589824, 7, 2293790, 589824, 7, 2293791, 589824, 7, 2293792, 589824, 7, 2293793, 589824, 7, 2293794, 589824, 7, 2293795, 589824, 7, 2293796, 589824, 7, 2293797, 589824, 7, 2293798, 589824, 7, 2293799, 589824, 7, 2293800, 589824, 7, 2359336, 589824, 7, 2424872, 589824, 7, 2490408, 589824, 7, 2555944, 589824, 7, 2621480, 589824, 7, 2621479, 589824, 7, 2621478, 589824, 7, 2621477, 589824, 7, 2621476, 589824, 7, 2621475, 589824, 7, 2621474, 589824, 7, 2621473, 589824, 7, 2621472, 589824, 7, 2621471, 589824, 7, 2621470, 589824, 7, 2621469, 589824, 7, 2621468, 589824, 7, 2621467, 589824, 7, 2555931, 589824, 7, 2490396, 589824, 7, 2424859, 589824, 7, 2490395, 589824, 7, 2359323, 589824, 7, 2424860, 589824, 7, 2555933, 589824, 7, 2490397, 589824, 7, 2424861, 589824, 7, 2359325, 589824, 7, 2359324, 589824, 7, 2555932, 589824, 7, 2359327, 589824, 7, 2424863, 589824, 7, 2490399, 589824, 7, 2555935, 589824, 7, 2555934, 589824, 7, 2490398, 589824, 7, 2424862, 589824, 7, 2359326, 589824, 7, 2359328, 589824, 7, 2424864, 589824, 7, 2490400, 589824, 7, 2555936, 589824, 7, 2490401, 589824, 7, 2424865, 589824, 7, 2359329, 589824, 7, 2555937, 589824, 7, 2555938, 589824, 7, 2490402, 589824, 7, 2424866, 589824, 7, 2359330, 589824, 7, 2490403, 589824, 7, 2424867, 589824, 7, 2359331, 589824, 7, 2555939, 589824, 7, 2555940, 589824, 7, 2490404, 589824, 7, 2424868, 589824, 7, 2359332, 589824, 7, 2555941, 589824, 7, 2490405, 589824, 7, 2424869, 589824, 7, 2359333, 589824, 7, 2555942, 589824, 7, 2490406, 589824, 7, 2424870, 589824, 7, 2359334, 589824, 7, 2555943, 589824, 7, 2490407, 589824, 7, 2424871, 589824, 7, 2359335, 589824, 7, 2228265, 655360, 6, 2293801, 655360, 7, 2359337, 655360, 7, 2424873, 655360, 7, 2490409, 655360, 7, 2555945, 655360, 7, 2621481, 655360, 7, 2686978, 524288, 8, 2686995, 655360, 8, 2686979, 589824, 8, 2686980, 589824, 8, 2686981, 589824, 8, 2686982, 589824, 8, 2686983, 589824, 8, 2686984, 589824, 8, 2686985, 589824, 8, 2686986, 589824, 8, 2686987, 589824, 8, 2686988, 589824, 8, 2686989, 589824, 8, 2686990, 589824, 8, 2686991, 589824, 8, 2686992, 589824, 8, 2686993, 589824, 8, 2686994, 589824, 8, 2687001, 524288, 8, 2687002, 589824, 8, 2687003, 589824, 8, 2687004, 589824, 8, 2687005, 589824, 8, 2687006, 589824, 8, 2687007, 589824, 8, 2687008, 589824, 8, 2687009, 589824, 8, 2687010, 589824, 8, 2687011, 589824, 8, 2687012, 589824, 8, 2687013, 589824, 8, 2687014, 589824, 8, 2687015, 589824, 8, 2687016, 589824, 8, 2687017, 655360, 8) +layer_0/tile_data = PackedInt32Array(2424834, 524288, 6, 2424835, 589824, 6, 2424836, 589824, 6, 2424837, 589824, 6, 2424838, 589824, 6, 2424839, 589824, 6, 2424840, 589824, 6, 2424841, 589824, 6, 2424842, 589824, 6, 2424843, 589824, 6, 2424844, 589824, 6, 2424845, 589824, 6, 2424846, 589824, 6, 2424847, 589824, 6, 2424848, 589824, 6, 2424849, 589824, 6, 2490370, 524288, 7, 2555906, 524288, 7, 2621442, 524288, 7, 2490371, 589824, 7, 2555907, 589824, 7, 2621443, 589824, 7, 2621444, 589824, 7, 2621445, 589824, 7, 2621446, 589824, 7, 2621447, 589824, 7, 2621448, 589824, 7, 2621449, 589824, 7, 2621450, 589824, 7, 2621451, 589824, 7, 2621452, 589824, 7, 2621453, 589824, 7, 2621454, 589824, 7, 2621455, 589824, 7, 2621456, 589824, 7, 2621457, 589824, 7, 2621458, 589824, 7, 2555922, 589824, 7, 2490386, 589824, 7, 2490385, 589824, 7, 2490384, 589824, 7, 2490383, 589824, 7, 2490382, 589824, 7, 2490381, 589824, 7, 2490380, 589824, 7, 2490379, 589824, 7, 2490378, 589824, 7, 2490377, 589824, 7, 2490376, 589824, 7, 2490375, 589824, 7, 2490374, 589824, 7, 2490373, 589824, 7, 2490372, 589824, 7, 2555908, 589824, 7, 2555909, 589824, 7, 2555910, 589824, 7, 2555911, 589824, 7, 2555912, 589824, 7, 2555913, 589824, 7, 2555914, 589824, 7, 2555915, 589824, 7, 2555916, 589824, 7, 2555917, 589824, 7, 2555918, 589824, 7, 2555919, 589824, 7, 2555920, 589824, 7, 2555921, 589824, 7, 2424850, 589824, 6, 2490387, 655360, 7, 2424851, 655360, 6, 2555923, 655360, 7, 2621459, 655360, 7, 2228250, 589824, 6, 2228251, 589824, 6, 2228252, 589824, 6, 2228253, 589824, 6, 2228254, 589824, 6, 2228255, 589824, 6, 2228256, 589824, 6, 2228257, 589824, 6, 2228258, 589824, 6, 2228259, 589824, 6, 2228260, 589824, 6, 2228261, 589824, 6, 2228262, 589824, 6, 2228263, 589824, 6, 2228264, 589824, 6, 2228249, 524288, 6, 2293785, 524288, 7, 2359321, 524288, 7, 2424857, 524288, 7, 2490393, 524288, 7, 2555929, 524288, 7, 2621465, 524288, 7, 2293786, 589824, 7, 2359322, 589824, 7, 2424858, 589824, 7, 2490394, 589824, 7, 2555930, 589824, 7, 2621466, 589824, 7, 2293787, 589824, 7, 2293788, 589824, 7, 2293789, 589824, 7, 2293790, 589824, 7, 2293791, 589824, 7, 2293792, 589824, 7, 2293793, 589824, 7, 2293794, 589824, 7, 2293795, 589824, 7, 2293796, 589824, 7, 2293797, 589824, 7, 2293798, 589824, 7, 2293799, 589824, 7, 2293800, 589824, 7, 2359336, 589824, 7, 2424872, 589824, 7, 2490408, 589824, 7, 2555944, 589824, 7, 2621480, 589824, 7, 2621479, 589824, 7, 2621478, 589824, 7, 2621477, 589824, 7, 2621476, 589824, 7, 2621475, 589824, 7, 2621474, 589824, 7, 2621473, 589824, 7, 2621472, 589824, 7, 2621471, 589824, 7, 2621470, 589824, 7, 2621469, 589824, 7, 2621468, 589824, 7, 2621467, 589824, 7, 2555931, 589824, 7, 2490396, 589824, 7, 2424859, 589824, 7, 2490395, 589824, 7, 2359323, 589824, 7, 2424860, 589824, 7, 2555933, 589824, 7, 2490397, 589824, 7, 2424861, 589824, 7, 2359325, 589824, 7, 2359324, 589824, 7, 2555932, 589824, 7, 2359327, 589824, 7, 2424863, 589824, 7, 2490399, 589824, 7, 2555935, 589824, 7, 2555934, 589824, 7, 2490398, 589824, 7, 2424862, 589824, 7, 2359326, 589824, 7, 2359328, 589824, 7, 2424864, 589824, 7, 2490400, 589824, 7, 2555936, 589824, 7, 2490401, 589824, 7, 2424865, 589824, 7, 2359329, 589824, 7, 2555937, 589824, 7, 2555938, 589824, 7, 2490402, 589824, 7, 2424866, 589824, 7, 2359330, 589824, 7, 2490403, 589824, 7, 2424867, 589824, 7, 2359331, 589824, 7, 2555939, 589824, 7, 2555940, 589824, 7, 2490404, 589824, 7, 2424868, 589824, 7, 2359332, 589824, 7, 2555941, 589824, 7, 2490405, 589824, 7, 2424869, 589824, 7, 2359333, 589824, 7, 2555942, 589824, 7, 2490406, 589824, 7, 2424870, 589824, 7, 2359334, 589824, 7, 2555943, 589824, 7, 2490407, 589824, 7, 2424871, 589824, 7, 2359335, 589824, 7, 2228265, 655360, 6, 2293801, 655360, 7, 2359337, 655360, 7, 2424873, 655360, 7, 2490409, 655360, 7, 2555945, 655360, 7, 2621481, 655360, 7, 2686978, 524288, 8, 2686995, 655360, 8, 2686979, 589824, 8, 2686980, 589824, 8, 2686981, 589824, 8, 2686982, 589824, 8, 2686983, 589824, 8, 2686984, 589824, 8, 2686985, 589824, 8, 2686986, 589824, 8, 2686987, 589824, 8, 2686988, 589824, 8, 2686989, 589824, 8, 2686990, 589824, 8, 2686991, 589824, 8, 2686992, 589824, 8, 2686993, 589824, 8, 2686994, 589824, 8, 2687001, 524288, 8, 2687002, 589824, 8, 2687003, 589824, 8, 2687004, 589824, 8, 2687005, 589824, 8, 2687006, 589824, 8, 2687007, 589824, 8, 2687008, 589824, 8, 2687009, 589824, 8, 2687010, 589824, 8, 2687011, 589824, 8, 2687012, 589824, 8, 2687013, 589824, 8, 2687014, 589824, 8, 2687015, 589824, 8, 2687016, 589824, 8, 2687017, 655360, 8, 2228272, 524288, 6, 2293808, 524288, 7, 2359344, 524288, 8, 2228273, 589824, 6, 2293809, 589824, 7, 2359345, 589824, 8, 2228274, 655360, 6, 2293810, 655360, 7, 2359346, 655360, 8, 2424886, 524288, 6, 2490422, 524288, 7, 2555958, 524288, 8, 2424887, 589824, 6, 2490423, 589824, 7, 2555959, 589824, 8, 2424888, 655360, 6, 2490424, 655360, 7, 2555960, 655360, 8, 2293820, 524288, 6, 2359356, 524288, 7, 2424892, 524288, 8, 2293821, 589824, 6, 2359357, 589824, 7, 2424893, 589824, 8, 2293822, 655360, 6, 2359358, 655360, 7, 2424894, 655360, 8, 2818117, 524288, 6, 2883653, 524288, 7, 2949189, 524288, 8, 2818118, 589824, 6, 2883654, 589824, 7, 2949190, 589824, 8, 2818119, 655360, 6, 2883655, 655360, 7, 2949191, 655360, 8, 2621515, 524288, 6, 2687051, 524288, 7, 2752587, 524288, 8, 2621516, 589824, 6, 2687052, 589824, 7, 2752588, 589824, 8, 2621517, 655360, 6, 2687053, 655360, 7, 2752589, 655360, 8, 2621527, 524288, 6, 2687063, 524288, 7, 2752599, 524288, 8, 2621528, 589824, 6, 2687064, 589824, 7, 2752600, 589824, 8, 2621529, 589824, 6, 2687065, 589824, 7, 2752601, 589824, 8, 2621530, 589824, 6, 2687066, 589824, 7, 2752602, 589824, 8, 2621531, 589824, 6, 2687067, 589824, 7, 2752603, 589824, 8, 2621532, 589824, 6, 2687068, 589824, 7, 2752604, 589824, 8, 2621533, 589824, 6, 2687069, 589824, 7, 2752605, 589824, 8, 2621534, 589824, 6, 2687070, 589824, 7, 2752606, 589824, 8, 2621535, 589824, 6, 2687071, 589824, 7, 2752607, 589824, 8, 2621536, 655360, 6, 2687072, 655360, 7, 2752608, 655360, 8, 2359398, 524288, 6, 2424934, 524288, 7, 2490470, 524288, 8, 2359399, 589824, 6, 2424935, 589824, 7, 2490471, 589824, 8, 2359400, 655360, 6, 2424936, 655360, 7, 2490472, 655360, 8, 3080306, 524288, 6, 3145842, 524288, 7, 3211378, 524288, 8, 3080307, 589824, 6, 3145843, 589824, 7, 3211379, 589824, 8, 3080308, 655360, 6, 3145844, 655360, 7, 3211380, 655360, 8, 2818169, 524288, 6, 2883705, 524288, 7, 2949241, 524288, 8, 2818170, 589824, 6, 2883706, 589824, 7, 2949242, 589824, 8, 2818171, 655360, 6, 2883707, 655360, 7, 2949243, 655360, 8, 2556033, 524288, 6, 2621569, 524288, 7, 2687105, 524288, 8, 2556034, 589824, 6, 2621570, 589824, 7, 2687106, 589824, 8, 2556035, 655360, 6, 2621571, 655360, 7, 2687107, 655360, 8, 3408000, 524288, 6, 3473536, 524288, 7, 3539072, 524288, 8, 3408001, 589824, 6, 3473537, 589824, 7, 3539073, 589824, 8, 3408002, 655360, 6, 3473538, 655360, 7, 3539074, 655360, 8, 3735671, 524288, 6, 3801207, 524288, 7, 3866743, 524288, 8, 3735672, 589824, 6, 3801208, 589824, 7, 3866744, 589824, 8, 3735673, 655360, 6, 3801209, 655360, 7, 3866745, 655360, 8, 3539049, 524288, 6, 3604585, 524288, 7, 3670121, 524288, 8, 3539050, 589824, 6, 3604586, 589824, 7, 3670122, 589824, 8, 3539051, 655360, 6, 3604587, 655360, 7, 3670123, 655360, 8, 3145811, 524288, 6, 3211347, 524288, 7, 3276883, 524288, 8, 3145812, 589824, 6, 3211348, 589824, 7, 3276884, 589824, 8, 3145813, 655360, 6, 3211349, 655360, 7, 3276885, 655360, 8, 2949200, 524288, 6, 3014736, 524288, 7, 3080272, 524288, 8, 2949201, 589824, 6, 3014737, 589824, 7, 3080273, 589824, 8, 2949202, 655360, 6, 3014738, 655360, 7, 3080274, 655360, 8, 3473507, 524288, 6, 3539043, 524288, 7, 3604579, 524288, 8, 3473508, 589824, 6, 3539044, 589824, 7, 3604580, 589824, 8, 3473509, 655360, 6, 3539045, 655360, 7, 3604581, 655360, 8, 3342429, 589824, 6, 3407965, 589824, 7, 3473501, 589824, 8, 3342430, 589824, 6, 3407966, 589824, 7, 3473502, 589824, 8, 3342431, 655360, 6, 3407967, 655360, 7, 3473503, 655360, 8, 3342427, 589824, 6, 3407963, 589824, 7, 3473499, 589824, 8, 3342428, 589824, 6, 3407964, 589824, 7, 3473500, 589824, 8, 3342426, 524288, 6, 3407962, 524288, 7, 3473498, 524288, 8, 2556045, 524288, 6, 2621581, 524288, 7, 2687117, 524288, 8, 2556046, 589824, 6, 2621582, 589824, 7, 2687118, 589824, 8, 2556047, 589824, 6, 2621583, 589824, 7, 2687119, 589824, 8, 2556048, 589824, 6, 2621584, 589824, 7, 2687120, 589824, 8, 2556049, 589824, 6, 2621585, 589824, 7, 2687121, 589824, 8, 2556050, 589824, 6, 2621586, 589824, 7, 2687122, 589824, 8, 2556051, 589824, 6, 2621587, 589824, 7, 2687123, 589824, 8, 2556052, 589824, 6, 2621588, 589824, 7, 2687124, 589824, 8, 2556053, 589824, 6, 2621589, 589824, 7, 2687125, 589824, 8, 2556054, 589824, 6, 2621590, 589824, 7, 2687126, 589824, 8, 2556055, 589824, 6, 2621591, 589824, 7, 2687127, 589824, 8, 2556056, 589824, 6, 2621592, 589824, 7, 2687128, 589824, 8, 2556057, 589824, 6, 2621593, 589824, 7, 2687129, 589824, 8, 2556058, 655360, 6, 2621594, 655360, 7, 2687130, 655360, 8, 2490522, 327680, 8) [node name="Rifle" type="Area2D" parent="." groups=["rifle"]] -position = Vector2(614, 525) +position = Vector2(1922, 888) rotation = 1.56983 [node name="Sprite2D" type="Sprite2D" parent="Rifle"] diff --git a/prototypes/game-shadows-of-surveillance/levels/level2.gd b/prototypes/game-shadows-of-surveillance/levels/level2.gd new file mode 100644 index 00000000..c72e67a0 --- /dev/null +++ b/prototypes/game-shadows-of-surveillance/levels/level2.gd @@ -0,0 +1,15 @@ +extends Node2D + +var player +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + player = get_node("Player2") + if player: + if player.global_position.y > 1000: + player.queue_free() + get_tree().change_scene_to_file("res://Restart.tscn") diff --git a/prototypes/game-shadows-of-surveillance/levels/level2.tscn b/prototypes/game-shadows-of-surveillance/levels/level2.tscn index 5795aabe..2e2b2a6c 100644 --- a/prototypes/game-shadows-of-surveillance/levels/level2.tscn +++ b/prototypes/game-shadows-of-surveillance/levels/level2.tscn @@ -1,12 +1,17 @@ -[gd_scene load_steps=6 format=3 uid="uid://nrfvxvrpbboq"] +[gd_scene load_steps=8 format=3 uid="uid://nrfvxvrpbboq"] +[ext_resource type="Script" path="res://prototypes/game-shadows-of-surveillance/levels/level2.gd" id="1_33jqr"] [ext_resource type="Texture2D" uid="uid://ej3g6agmjf0x" path="res://prototypes/game-shadows-of-surveillance/assets/6.png" id="1_j6sv0"] [ext_resource type="PackedScene" uid="uid://4j52c4ucysq5" path="res://Tilemap.tscn" id="2_llo4g"] [ext_resource type="TileSet" uid="uid://dp12gfueqor5q" path="res://tileset.tres" id="3_ko4tt"] [ext_resource type="PackedScene" uid="uid://ds24wbrnr7tta" path="res://prototypes/game-shadows-of-surveillance/characters/drone.tscn" id="4_m1bym"] [ext_resource type="PackedScene" uid="uid://dxp4mlvvs0g2" path="res://prototypes/game-shadows-of-surveillance/characters/player2.tscn" id="5_a7n2h"] +[sub_resource type="RectangleShape2D" id="RectangleShape2D_vrbx1"] +size = Vector2(16.5, 16.5) + [node name="Level2" type="Node2D"] +script = ExtResource("1_33jqr") [node name="Background" type="Sprite2D" parent="."] position = Vector2(578, 319) @@ -45,7 +50,7 @@ color = Color(0.14902, 0.109804, 0.215686, 1) [node name="TileMap" parent="." instance=ExtResource("2_llo4g")] tile_set = ExtResource("3_ko4tt") -layer_0/tile_data = PackedInt32Array(1966089, 0, 0, 1966090, 65536, 0, 1966091, 65536, 0, 1966092, 65536, 0, 1966093, 65536, 0, 1966094, 65536, 0, 1966095, 65536, 0, 1966096, 65536, 0, 1966097, 65536, 0, 1966098, 65536, 0, 1966099, 65536, 0, 1966100, 65536, 0, 1966101, 65536, 0, 1966102, 65536, 0, 1966103, 65536, 0, 1966104, 65536, 0, 1966105, 65536, 0, 1966106, 65536, 0, 1966107, 65536, 0, 1966108, 65536, 0, 1966109, 65536, 0, 1966110, 65536, 0, 2031646, 65536, 1, 2097182, 65536, 1, 2162718, 65536, 1, 2031625, 0, 1, 2097161, 0, 1, 2162697, 0, 1, 2031626, 65536, 1, 2031627, 65536, 1, 2097164, 65536, 1, 2097165, 65536, 1, 2097166, 65536, 1, 2097167, 65536, 1, 2097168, 65536, 1, 2162705, 65536, 1, 2162706, 65536, 1, 2162707, 65536, 1, 2162708, 65536, 1, 2162709, 65536, 1, 2162710, 65536, 1, 2162711, 65536, 1, 2162712, 65536, 1, 2162713, 65536, 1, 2162714, 65536, 1, 2162715, 65536, 1, 2162716, 65536, 1, 2162717, 65536, 1, 2097181, 65536, 1, 2031645, 65536, 1, 2031644, 65536, 1, 2031643, 65536, 1, 2031642, 65536, 1, 2031641, 65536, 1, 2031640, 65536, 1, 2031639, 65536, 1, 2031638, 65536, 1, 2031637, 65536, 1, 2031636, 65536, 1, 2031635, 65536, 1, 2097170, 65536, 1, 2097169, 65536, 1, 2097163, 65536, 1, 2031629, 65536, 1, 2031628, 65536, 1, 2031630, 65536, 1, 2031631, 65536, 1, 2031632, 65536, 1, 2031633, 65536, 1, 2031634, 65536, 1, 2097171, 65536, 1, 2097172, 65536, 1, 2097173, 65536, 1, 2097174, 65536, 1, 2097175, 65536, 1, 2097176, 65536, 1, 2097177, 65536, 1, 2097178, 65536, 1, 2097179, 65536, 1, 2097180, 65536, 1, 2162704, 65536, 1, 2162703, 65536, 1, 2097162, 65536, 1, 2162698, 65536, 1, 2162699, 65536, 1, 2162701, 65536, 1, 2162702, 65536, 1, 2162700, 65536, 1, 1966115, 65536, 0, 1966116, 65536, 0, 1966128, 65536, 0, 1966117, 65536, 0, 1966118, 65536, 0, 2031655, 65536, 1, 2031656, 65536, 1, 2031657, 65536, 1, 2031658, 65536, 1, 2031659, 65536, 1, 2031660, 65536, 1, 2031661, 65536, 1, 2031662, 65536, 1, 2031663, 65536, 1, 2031664, 65536, 1, 2031665, 65536, 1, 2031666, 65536, 1, 1966119, 65536, 0, 1966120, 65536, 0, 1966121, 65536, 0, 1966122, 65536, 0, 1966123, 65536, 0, 1966124, 65536, 0, 1966125, 65536, 0, 1966126, 65536, 0, 1966127, 65536, 0, 1966129, 65536, 0, 1966130, 65536, 0, 1966131, 65536, 0, 1966132, 65536, 0, 1966133, 65536, 0, 1966134, 65536, 0, 1966135, 65536, 0, 1966136, 65536, 0, 1966137, 65536, 0, 1966138, 65536, 0, 1966139, 65536, 0, 2031652, 65536, 1, 2031653, 65536, 1, 2031654, 65536, 1, 2031667, 65536, 1, 2031668, 65536, 1, 2031669, 65536, 1, 2031670, 65536, 1, 2031671, 65536, 1, 2031672, 65536, 1, 2031673, 65536, 1, 2031674, 65536, 1, 2097210, 65536, 1, 2162746, 65536, 1, 2162745, 65536, 1, 2162744, 65536, 1, 2097207, 65536, 1, 2097206, 65536, 1, 2097205, 65536, 1, 2097204, 65536, 1, 2097203, 65536, 1, 2097202, 65536, 1, 2097201, 65536, 1, 2097200, 65536, 1, 2097199, 65536, 1, 2097198, 65536, 1, 2097197, 65536, 1, 2097196, 65536, 1, 2097195, 65536, 1, 2097194, 65536, 1, 2097193, 65536, 1, 2097192, 65536, 1, 2097191, 65536, 1, 2097190, 65536, 1, 2097189, 65536, 1, 2097188, 65536, 1, 2097187, 65536, 1, 2162723, 65536, 1, 2162724, 65536, 1, 2162725, 65536, 1, 2162726, 65536, 1, 2162727, 65536, 1, 2162732, 65536, 1, 2162733, 65536, 1, 2162734, 65536, 1, 2162735, 65536, 1, 2162736, 65536, 1, 2162737, 65536, 1, 2162738, 65536, 1, 2162739, 65536, 1, 2162740, 65536, 1, 2162741, 65536, 1, 2162742, 65536, 1, 2162743, 65536, 1, 2097209, 65536, 1, 2097208, 65536, 1, 2162731, 65536, 1, 2162730, 65536, 1, 2162729, 65536, 1, 2162728, 65536, 1, 2031675, 65536, 1, 2097211, 65536, 1, 2162747, 65536, 1, 2031651, 65536, 1, 2228259, 65536, 1, 2031676, 131072, 1, 2097212, 131072, 1, 2162748, 131072, 1, 2228284, 131072, 2, 1966140, 131072, 0, 2228254, 65536, 1, 2293790, 0, 2, 2293791, 65536, 2, 2293792, 65536, 2, 2293793, 65536, 2, 2293794, 65536, 2, 2293795, 131072, 2, 2228233, 0, 2, 2228234, 65536, 2, 2228235, 65536, 2, 2228236, 65536, 2, 2228237, 65536, 2, 2228238, 65536, 2, 2228239, 65536, 2, 2228240, 65536, 2, 2228241, 65536, 2, 2228242, 65536, 2, 2228243, 65536, 2, 2228244, 65536, 2, 2228245, 65536, 2, 2228246, 65536, 2, 2228247, 65536, 2, 2228248, 65536, 2, 2228249, 65536, 2, 2228250, 65536, 2, 2228251, 65536, 2, 2228252, 65536, 2, 2228253, 65536, 2, 2228260, 65536, 2, 2228261, 65536, 2, 2228262, 65536, 2, 2228263, 65536, 2, 2228264, 65536, 2, 2228265, 65536, 2, 2228266, 65536, 2, 2228267, 65536, 2, 2228268, 65536, 2, 2228269, 65536, 2, 2228270, 65536, 2, 2228271, 65536, 2, 2228272, 65536, 2, 2228273, 65536, 2, 2228274, 65536, 2, 2228275, 65536, 2, 2228276, 65536, 2, 2228277, 65536, 2, 2228278, 65536, 2, 2228279, 65536, 2, 2228280, 65536, 2, 2228281, 65536, 2, 2228282, 65536, 2, 2228283, 65536, 2) +layer_0/tile_data = PackedInt32Array(1966089, 0, 0, 1966090, 65536, 0, 1966091, 65536, 0, 1966092, 65536, 0, 1966093, 65536, 0, 1966094, 65536, 0, 1966095, 65536, 0, 1966096, 65536, 0, 1966097, 65536, 0, 1966098, 65536, 0, 1966099, 65536, 0, 1966100, 65536, 0, 1966101, 65536, 0, 1966102, 65536, 0, 1966103, 65536, 0, 1966104, 65536, 0, 1966105, 65536, 0, 1966106, 65536, 0, 1966107, 65536, 0, 1966108, 65536, 0, 1966109, 65536, 0, 1966110, 65536, 0, 2031646, 65536, 1, 2097182, 65536, 1, 2162718, 65536, 1, 2031625, 0, 1, 2097161, 0, 1, 2162697, 0, 1, 2031626, 65536, 1, 2031627, 65536, 1, 2097164, 65536, 1, 2097165, 65536, 1, 2097166, 65536, 1, 2097167, 65536, 1, 2097168, 65536, 1, 2162705, 65536, 1, 2162706, 65536, 1, 2162707, 65536, 1, 2162708, 65536, 1, 2162709, 65536, 1, 2162710, 65536, 1, 2162711, 65536, 1, 2162712, 65536, 1, 2162713, 65536, 1, 2162714, 65536, 1, 2162715, 65536, 1, 2162716, 65536, 1, 2162717, 65536, 1, 2097181, 65536, 1, 2031645, 65536, 1, 2031644, 65536, 1, 2031643, 65536, 1, 2031642, 65536, 1, 2031641, 65536, 1, 2031640, 65536, 1, 2031639, 65536, 1, 2031638, 65536, 1, 2031637, 65536, 1, 2031636, 65536, 1, 2031635, 65536, 1, 2097170, 65536, 1, 2097169, 65536, 1, 2097163, 65536, 1, 2031629, 65536, 1, 2031628, 65536, 1, 2031630, 65536, 1, 2031631, 65536, 1, 2031632, 65536, 1, 2031633, 65536, 1, 2031634, 65536, 1, 2097171, 65536, 1, 2097172, 65536, 1, 2097173, 65536, 1, 2097174, 65536, 1, 2097175, 65536, 1, 2097176, 65536, 1, 2097177, 65536, 1, 2097178, 65536, 1, 2097179, 65536, 1, 2097180, 65536, 1, 2162704, 65536, 1, 2162703, 65536, 1, 2097162, 65536, 1, 2162698, 65536, 1, 2162699, 65536, 1, 2162701, 65536, 1, 2162702, 65536, 1, 2162700, 65536, 1, 1966115, 65536, 0, 1966116, 65536, 0, 1966128, 65536, 0, 1966117, 65536, 0, 1966118, 65536, 0, 2031655, 65536, 1, 2031656, 65536, 1, 2031657, 65536, 1, 2031658, 65536, 1, 2031659, 65536, 1, 2031660, 65536, 1, 2031661, 65536, 1, 2031662, 65536, 1, 2031663, 65536, 1, 2031664, 65536, 1, 2031665, 65536, 1, 2031666, 65536, 1, 1966119, 65536, 0, 1966120, 65536, 0, 1966121, 65536, 0, 1966122, 65536, 0, 1966123, 65536, 0, 1966124, 65536, 0, 1966125, 65536, 0, 1966126, 65536, 0, 1966127, 65536, 0, 1966129, 65536, 0, 1966130, 65536, 0, 1966131, 65536, 0, 1966132, 65536, 0, 1966133, 65536, 0, 1966134, 65536, 0, 1966135, 65536, 0, 1966136, 65536, 0, 1966137, 65536, 0, 1966138, 65536, 0, 1966139, 65536, 0, 2031652, 65536, 1, 2031653, 65536, 1, 2031654, 65536, 1, 2031667, 65536, 1, 2031668, 65536, 1, 2031669, 65536, 1, 2031670, 65536, 1, 2031671, 65536, 1, 2031672, 65536, 1, 2031673, 65536, 1, 2031674, 65536, 1, 2097210, 65536, 1, 2162746, 65536, 1, 2162745, 65536, 1, 2162744, 65536, 1, 2097207, 65536, 1, 2097206, 65536, 1, 2097205, 65536, 1, 2097204, 65536, 1, 2097203, 65536, 1, 2097202, 65536, 1, 2097201, 65536, 1, 2097200, 65536, 1, 2097199, 65536, 1, 2097198, 65536, 1, 2097197, 65536, 1, 2097196, 65536, 1, 2097195, 65536, 1, 2097194, 65536, 1, 2097193, 65536, 1, 2097192, 65536, 1, 2097191, 65536, 1, 2097190, 65536, 1, 2097189, 65536, 1, 2097188, 65536, 1, 2097187, 65536, 1, 2162723, 65536, 1, 2162724, 65536, 1, 2162725, 65536, 1, 2162726, 65536, 1, 2162727, 65536, 1, 2162732, 65536, 1, 2162733, 65536, 1, 2162734, 65536, 1, 2162735, 65536, 1, 2162736, 65536, 1, 2162737, 65536, 1, 2162738, 65536, 1, 2162739, 65536, 1, 2162740, 65536, 1, 2162741, 65536, 1, 2162742, 65536, 1, 2162743, 65536, 1, 2097209, 65536, 1, 2097208, 65536, 1, 2162731, 65536, 1, 2162730, 65536, 1, 2162729, 65536, 1, 2162728, 65536, 1, 2031675, 65536, 1, 2097211, 65536, 1, 2162747, 65536, 1, 2031651, 65536, 1, 2228259, 65536, 1, 2031676, 131072, 1, 2097212, 131072, 1, 2162748, 131072, 1, 2228284, 131072, 2, 1966140, 131072, 0, 2228254, 65536, 1, 2293790, 0, 2, 2293791, 65536, 2, 2293792, 65536, 2, 2293793, 65536, 2, 2293794, 65536, 2, 2293795, 131072, 2, 2228233, 0, 2, 2228234, 65536, 2, 2228235, 65536, 2, 2228236, 65536, 2, 2228237, 65536, 2, 2228238, 65536, 2, 2228239, 65536, 2, 2228240, 65536, 2, 2228241, 65536, 2, 2228242, 65536, 2, 2228243, 65536, 2, 2228244, 65536, 2, 2228245, 65536, 2, 2228246, 65536, 2, 2228247, 65536, 2, 2228248, 65536, 2, 2228249, 65536, 2, 2228250, 65536, 2, 2228251, 65536, 2, 2228252, 65536, 2, 2228253, 65536, 2, 2228260, 65536, 2, 2228261, 65536, 2, 2228262, 65536, 2, 2228263, 65536, 2, 2228264, 65536, 2, 2228265, 65536, 2, 2228266, 65536, 2, 2228267, 65536, 2, 2228268, 65536, 2, 2228269, 65536, 2, 2228270, 65536, 2, 2228271, 65536, 2, 2228272, 65536, 2, 2228273, 65536, 2, 2228274, 65536, 2, 2228275, 65536, 2, 2228276, 65536, 2, 2228277, 65536, 2, 2228278, 65536, 2, 2228279, 65536, 2, 2228280, 65536, 2, 2228281, 65536, 2, 2228282, 65536, 2, 2228283, 65536, 2, 2031681, 0, 0, 2097217, 0, 1, 2162753, 0, 2, 2031682, 65536, 0, 2097218, 65536, 1, 2162754, 65536, 2, 2031683, 131072, 0, 2097219, 131072, 1, 2162755, 131072, 2, 2031690, 0, 0, 2097226, 0, 1, 2162762, 0, 2, 2031691, 65536, 0, 2097227, 65536, 1, 2162763, 65536, 2, 2031692, 131072, 0, 2097228, 131072, 1, 2162764, 131072, 2, 2031698, 0, 0, 2097234, 0, 1, 2162770, 0, 2, 2031699, 65536, 0, 2097235, 65536, 1, 2162771, 65536, 2, 2031700, 131072, 0, 2097236, 131072, 1, 2162772, 131072, 2, 2031708, 0, 0, 2097244, 0, 1, 2162780, 0, 2, 2031709, 65536, 0, 2097245, 65536, 1, 2162781, 65536, 2, 2031710, 131072, 0, 2097246, 131072, 1, 2162782, 131072, 2, 1769570, 0, 0, 1835106, 0, 1, 1900642, 0, 2, 1769571, 65536, 0, 1835107, 65536, 1, 1900643, 65536, 2, 1769572, 65536, 0, 1835108, 65536, 1, 1900644, 65536, 2, 1769573, 65536, 0, 1835109, 65536, 1, 1900645, 65536, 2, 1769574, 65536, 0, 1835110, 65536, 1, 1900646, 65536, 2, 1769575, 65536, 0, 1835111, 65536, 1, 1900647, 65536, 2, 1769576, 65536, 0, 1835112, 65536, 1, 1900648, 65536, 2, 1769577, 65536, 0, 1835113, 65536, 1, 1900649, 65536, 2, 1769578, 65536, 0, 1835114, 65536, 1, 1900650, 65536, 2, 1769579, 65536, 0, 1835115, 65536, 1, 1900651, 65536, 2, 1769580, 65536, 0, 1835116, 65536, 1, 1900652, 65536, 2, 1769581, 65536, 0, 1835117, 65536, 1, 1900653, 65536, 2, 1769582, 131072, 0, 1835118, 131072, 1, 1900654, 131072, 2, 2228342, 0, 0, 2293878, 0, 1, 2359414, 0, 2, 2228343, 65536, 0, 2293879, 65536, 1, 2359415, 65536, 2, 2228344, 65536, 0, 2293880, 65536, 1, 2359416, 65536, 2, 2228345, 65536, 0, 2293881, 65536, 1, 2359417, 65536, 2, 2228346, 65536, 0, 2293882, 65536, 1, 2359418, 65536, 2, 2228347, 65536, 0, 2293883, 65536, 1, 2359419, 65536, 2, 2228348, 65536, 0, 2293884, 65536, 1, 2359420, 65536, 2, 2228349, 65536, 0, 2293885, 65536, 1, 2359421, 65536, 2, 2228350, 65536, 0, 2293886, 65536, 1, 2359422, 65536, 2, 2228351, 65536, 0, 2293887, 65536, 1, 2359423, 65536, 2, 2228352, 65536, 0, 2293888, 65536, 1, 2359424, 65536, 2, 2228353, 65536, 0, 2293889, 65536, 1, 2359425, 65536, 2, 2228354, 65536, 0, 2293890, 65536, 1, 2359426, 65536, 2, 2228355, 65536, 0, 2293891, 65536, 1, 2359427, 65536, 2, 2228356, 65536, 0, 2293892, 65536, 1, 2359428, 65536, 2, 2228357, 65536, 0, 2293893, 65536, 1, 2359429, 65536, 2, 2228358, 65536, 0, 2293894, 65536, 1, 2359430, 65536, 2, 2228359, 65536, 0, 2293895, 65536, 1, 2359431, 65536, 2, 2228360, 131072, 0, 2293896, 131072, 1, 2359432, 131072, 2, 2097291, 0, 0, 2162827, 0, 1, 2228363, 0, 2, 2097292, 65536, 0, 2162828, 65536, 1, 2228364, 65536, 2, 2097293, 131072, 0, 2162829, 131072, 1, 2228365, 131072, 2, 1966226, 0, 0, 2031762, 0, 1, 2097298, 0, 2, 1966227, 65536, 0, 2031763, 65536, 1, 2097299, 65536, 2, 1966228, 131072, 0, 2031764, 131072, 1, 2097300, 131072, 2, 1835160, 0, 0, 1900696, 0, 1, 1966232, 0, 2, 1835161, 65536, 0, 1900697, 65536, 1, 1966233, 65536, 2, 1835162, 131072, 0, 1900698, 131072, 1, 1966234, 131072, 2, 1638559, 0, 0, 1704095, 0, 1, 1769631, 0, 2, 1638560, 65536, 0, 1704096, 65536, 1, 1769632, 65536, 2, 1638561, 131072, 0, 1704097, 131072, 1, 1769633, 131072, 2, 1441958, 0, 0, 1507494, 0, 1, 1573030, 0, 2, 1441959, 65536, 0, 1507495, 65536, 1, 1573031, 65536, 2, 1441960, 65536, 0, 1507496, 65536, 1, 1573032, 65536, 2, 1441961, 65536, 0, 1507497, 65536, 1, 1573033, 65536, 2, 1441962, 65536, 0, 1507498, 65536, 1, 1573034, 65536, 2, 1441963, 65536, 0, 1507499, 65536, 1, 1573035, 65536, 2, 1441964, 65536, 0, 1507500, 65536, 1, 1573036, 65536, 2, 1441965, 65536, 0, 1507501, 65536, 1, 1573037, 65536, 2, 1441966, 65536, 0, 1507502, 65536, 1, 1573038, 65536, 2, 1441967, 65536, 0, 1507503, 65536, 1, 1573039, 65536, 2, 1441968, 65536, 0, 1507504, 65536, 1, 1573040, 65536, 2, 1441969, 131072, 0, 1507505, 131072, 1, 1573041, 131072, 2, 1376432, 917504, 11) [node name="drone2" parent="." instance=ExtResource("4_m1bym")] position = Vector2(932, -32) @@ -56,3 +61,15 @@ scale = Vector2(1.5, 1.5) [node name="drone" parent="." instance=ExtResource("4_m1bym")] position = Vector2(236, -6) + +[node name="drone3" parent="." instance=ExtResource("4_m1bym")] +position = Vector2(2285, 254) + +[node name="Goal" type="Area2D" parent="."] +position = Vector2(2822, 343) + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Goal"] +position = Vector2(0.75, -0.25) +shape = SubResource("RectangleShape2D_vrbx1") + +[connection signal="body_entered" from="Goal" to="Player2" method="_on_goal_body_entered"] diff --git a/prototypes/game-shadows-of-surveillance/levels/thumbnail.png b/prototypes/game-shadows-of-surveillance/levels/thumbnail.png index 8f392bfa..5fa407c7 100644 Binary files a/prototypes/game-shadows-of-surveillance/levels/thumbnail.png and b/prototypes/game-shadows-of-surveillance/levels/thumbnail.png differ diff --git a/prototypes/game-shadows-of-surveillance/scripts/drone.gd b/prototypes/game-shadows-of-surveillance/scripts/drone.gd index 403bb09b..b17f5f02 100644 --- a/prototypes/game-shadows-of-surveillance/scripts/drone.gd +++ b/prototypes/game-shadows-of-surveillance/scripts/drone.gd @@ -43,12 +43,11 @@ func _physics_process(delta): if player: var distanceToPlayer = position.distance_to(player.position) - if distanceToPlayer > 200: + if distanceToPlayer < 1000: shootingTimer += delta if shootingTimer > shootingCooldown: shoot() shootingTimer = 0 - print("shoot") move_and_slide() func shoot(): diff --git a/prototypes/game-shadows-of-surveillance/scripts/player2.gd b/prototypes/game-shadows-of-surveillance/scripts/player2.gd index 5137a139..67c953f6 100644 --- a/prototypes/game-shadows-of-surveillance/scripts/player2.gd +++ b/prototypes/game-shadows-of-surveillance/scripts/player2.gd @@ -32,9 +32,15 @@ func _physics_process(delta): func die(): queue_free() + get_tree().change_scene_to_file("res://Restart.tscn") func shoot(): var b = bullet_scene.instantiate() var direction = (get_global_mouse_position() - global_position).normalized() b.setup(direction, $Marker2D.global_position) owner.add_child(b) + + +func _on_goal_body_entered(body): + if body.is_in_group("player"): + get_tree().change_scene_to_file("res://Win.tscn")