Files
godot-demo-projects/networking/multiplayer_bomber/world.tscn
Hugo Locurcio bac1e69164 Use static typing in all demos (#1063)
This leads to code that is easier to understand and runs
faster thanks to GDScript's typed instructions.

The untyped declaration warning is now enabled on all projects
where type hints were added. All projects currently run without
any untyped declration warnings.

Dodge the Creeps and Squash the Creeps demos intentionally don't
use type hints to match the documentation, where type hints haven't
been adopted yet (given its beginner focus).
2024-06-01 12:12:18 +02:00

316 lines
14 KiB
Plaintext

[gd_scene load_steps=6 format=3 uid="uid://by3f5o7dyoqx4"]
[ext_resource type="TileSet" uid="uid://do2l6lpuotti8" path="res://tileset.tres" id="1"]
[ext_resource type="PackedScene" uid="uid://bao3yernlglws" path="res://rock.tscn" id="2"]
[ext_resource type="Script" path="res://score.gd" id="3"]
[ext_resource type="FontFile" uid="uid://knb8u535cfkw" path="res://montserrat.otf" id="4"]
[ext_resource type="Script" path="res://bomb_spawner.gd" id="6_ac5ja"]
[node name="World" type="Node2D"]
[node name="TileMap" type="TileMap" parent="."]
tile_set = ExtResource("1")
rendering_quadrant_size = 48
format = 2
layer_0/tile_data = PackedInt32Array(0, 0, 0, 65536, 0, 0, 131072, 0, 0, 196608, 0, 0, 262144, 0, 0, 327680, 0, 0, 393216, 0, 0, 458752, 0, 0, 524288, 0, 0, 589824, 0, 0, 655360, 0, 0, 720896, 0, 0, 786432, 0, 0, 1, 0, 0, 65537, 65536, 0, 131073, 65536, 0, 196609, 65536, 0, 262145, 65536, 0, 327681, 65536, 0, 393217, 65536, 0, 458753, 65536, 0, 524289, 65536, 0, 589825, 65536, 0, 655361, 65536, 0, 720897, 65536, 0, 786433, 0, 0, 2, 0, 0, 65538, 65536, 0, 131074, 0, 0, 196610, 65536, 0, 262146, 0, 0, 327682, 65536, 0, 393218, 0, 0, 458754, 65536, 0, 524290, 0, 0, 589826, 65536, 0, 655362, 0, 0, 720898, 65536, 0, 786434, 0, 0, 3, 0, 0, 65539, 65536, 0, 131075, 65536, 0, 196611, 65536, 0, 262147, 65536, 0, 327683, 65536, 0, 393219, 65536, 0, 458755, 65536, 0, 524291, 0, 0, 589827, 65536, 0, 655363, 65536, 0, 720899, 65536, 0, 786435, 0, 0, 4, 0, 0, 65540, 65536, 0, 131076, 0, 0, 196612, 0, 0, 262148, 0, 0, 327684, 65536, 0, 393220, 0, 0, 458756, 65536, 0, 524292, 0, 0, 589828, 65536, 0, 655364, 0, 0, 720900, 65536, 0, 786436, 0, 0, 5, 0, 0, 65541, 65536, 0, 131077, 65536, 0, 196613, 65536, 0, 262149, 65536, 0, 327685, 65536, 0, 393221, 65536, 0, 458757, 65536, 0, 524293, 65536, 0, 589829, 65536, 0, 655365, 65536, 0, 720901, 65536, 0, 786437, 0, 0, 6, 0, 0, 65542, 65536, 0, 131078, 0, 0, 196614, 65536, 0, 262150, 0, 0, 327686, 0, 0, 393222, 0, 0, 458758, 65536, 0, 524294, 0, 0, 589830, 65536, 0, 655366, 0, 0, 720902, 65536, 0, 786438, 0, 0, 7, 0, 0, 65543, 65536, 0, 131079, 65536, 0, 196615, 65536, 0, 262151, 65536, 0, 327687, 65536, 0, 393223, 65536, 0, 458759, 65536, 0, 524295, 65536, 0, 589831, 65536, 0, 655367, 65536, 0, 720903, 65536, 0, 786439, 0, 0, 8, 0, 0, 65544, 65536, 0, 131080, 0, 0, 196616, 65536, 0, 262152, 0, 0, 327688, 65536, 0, 393224, 0, 0, 458760, 65536, 0, 524296, 0, 0, 589832, 65536, 0, 655368, 0, 0, 720904, 65536, 0, 786440, 0, 0, 9, 0, 0, 65545, 65536, 0, 131081, 65536, 0, 196617, 65536, 0, 262153, 65536, 0, 327689, 65536, 0, 393225, 65536, 0, 458761, 65536, 0, 524297, 65536, 0, 589833, 65536, 0, 655369, 65536, 0, 720905, 65536, 0, 786441, 0, 0, 10, 0, 0, 65546, 65536, 0, 131082, 0, 0, 196618, 0, 0, 262154, 0, 0, 327690, 65536, 0, 393226, 0, 0, 458762, 65536, 0, 524298, 0, 0, 589834, 65536, 0, 655370, 0, 0, 720906, 65536, 0, 786442, 0, 0, 11, 0, 0, 65547, 65536, 0, 131083, 0, 0, 196619, 65536, 0, 262155, 65536, 0, 327691, 65536, 0, 393227, 65536, 0, 458763, 65536, 0, 524299, 65536, 0, 589835, 65536, 0, 655371, 65536, 0, 720907, 65536, 0, 786443, 0, 0, 12, 0, 0, 65548, 65536, 0, 131084, 0, 0, 196620, 65536, 0, 262156, 0, 0, 327692, 65536, 0, 393228, 0, 0, 458764, 65536, 0, 524300, 0, 0, 589836, 65536, 0, 655372, 0, 0, 720908, 65536, 0, 786444, 0, 0, 13, 0, 0, 65549, 65536, 0, 131085, 0, 0, 196621, 65536, 0, 262157, 65536, 0, 327693, 65536, 0, 393229, 0, 0, 458765, 65536, 0, 524301, 0, 0, 589837, 65536, 0, 655373, 65536, 0, 720909, 65536, 0, 786445, 0, 0, 14, 0, 0, 65550, 65536, 0, 131086, 0, 0, 196622, 65536, 0, 262158, 0, 0, 327694, 65536, 0, 393230, 0, 0, 458766, 65536, 0, 524302, 0, 0, 589838, 65536, 0, 655374, 0, 0, 720910, 65536, 0, 786446, 0, 0, 15, 0, 0, 65551, 65536, 0, 131087, 65536, 0, 196623, 65536, 0, 262159, 65536, 0, 327695, 65536, 0, 393231, 0, 0, 458767, 65536, 0, 524303, 65536, 0, 589839, 65536, 0, 655375, 65536, 0, 720911, 65536, 0, 786447, 0, 0, 16, 0, 0, 65552, 65536, 0, 131088, 0, 0, 196624, 65536, 0, 262160, 0, 0, 327696, 65536, 0, 393232, 0, 0, 458768, 65536, 0, 524304, 0, 0, 589840, 65536, 0, 655376, 0, 0, 720912, 65536, 0, 786448, 0, 0, 17, 0, 0, 65553, 65536, 0, 131089, 65536, 0, 196625, 65536, 0, 262161, 65536, 0, 327697, 65536, 0, 393233, 65536, 0, 458769, 65536, 0, 524305, 65536, 0, 589841, 65536, 0, 655377, 65536, 0, 720913, 65536, 0, 786449, 0, 0, 18, 0, 0, 65554, 65536, 0, 131090, 0, 0, 196626, 65536, 0, 262162, 0, 0, 327698, 0, 0, 393234, 0, 0, 458770, 65536, 0, 524306, 0, 0, 589842, 65536, 0, 655378, 0, 0, 720914, 65536, 0, 786450, 0, 0, 19, 0, 0, 65555, 65536, 0, 131091, 65536, 0, 196627, 65536, 0, 262163, 65536, 0, 327699, 65536, 0, 393235, 65536, 0, 458771, 65536, 0, 524307, 65536, 0, 589843, 65536, 0, 655379, 65536, 0, 720915, 65536, 0, 786451, 0, 0, 20, 0, 0, 65556, 0, 0, 131092, 0, 0, 196628, 0, 0, 262164, 0, 0, 327700, 0, 0, 393236, 0, 0, 458772, 0, 0, 524308, 0, 0, 589844, 0, 0, 655380, 0, 0, 720916, 0, 0, 786452, 0, 0, 21, 0, 0, 65557, 0, 0, 131093, 0, 0, 196629, 0, 0, 262165, 0, 0, 327701, 0, 0, 393237, 0, 0, 458773, 0, 0, 524309, 0, 0, 589845, 0, 0, 655381, 0, 0, 720917, 0, 0, 786453, 0, 0)
[node name="SpawnPoints" type="Node2D" parent="."]
[node name="0" type="Marker2D" parent="SpawnPoints"]
position = Vector2(72, 72)
[node name="1" type="Marker2D" parent="SpawnPoints"]
position = Vector2(264, 216)
[node name="2" type="Marker2D" parent="SpawnPoints"]
position = Vector2(72, 456)
[node name="3" type="Marker2D" parent="SpawnPoints"]
position = Vector2(360, 552)
[node name="4" type="Marker2D" parent="SpawnPoints"]
position = Vector2(840, 360)
[node name="5" type="Marker2D" parent="SpawnPoints"]
position = Vector2(456, 264)
[node name="6" type="Marker2D" parent="SpawnPoints"]
position = Vector2(696, 264)
[node name="7" type="Marker2D" parent="SpawnPoints"]
position = Vector2(744, 456)
[node name="8" type="Marker2D" parent="SpawnPoints"]
position = Vector2(312, 456)
[node name="9" type="Marker2D" parent="SpawnPoints"]
position = Vector2(696, 72)
[node name="10" type="Marker2D" parent="SpawnPoints"]
position = Vector2(504, 72)
[node name="11" type="Marker2D" parent="SpawnPoints"]
position = Vector2(936, 72)
[node name="Rocks" type="Node2D" parent="."]
[node name="Rock0" parent="Rocks" instance=ExtResource("2")]
position = Vector2(120, 72)
[node name="Rock1" parent="Rocks" instance=ExtResource("2")]
position = Vector2(264, 168)
[node name="Rock2" parent="Rocks" instance=ExtResource("2")]
position = Vector2(264, 120)
[node name="Rock3" parent="Rocks" instance=ExtResource("2")]
position = Vector2(216, 72)
[node name="Rock4" parent="Rocks" instance=ExtResource("2")]
position = Vector2(264, 72)
[node name="Rock5" parent="Rocks" instance=ExtResource("2")]
position = Vector2(312, 72)
[node name="Rock6" parent="Rocks" instance=ExtResource("2")]
position = Vector2(552, 168)
[node name="Rock7" parent="Rocks" instance=ExtResource("2")]
position = Vector2(600, 168)
[node name="Rock8" parent="Rocks" instance=ExtResource("2")]
position = Vector2(552, 216)
[node name="Rock9" parent="Rocks" instance=ExtResource("2")]
position = Vector2(264, 312)
[node name="Rock10" parent="Rocks" instance=ExtResource("2")]
position = Vector2(120, 360)
[node name="Rock11" parent="Rocks" instance=ExtResource("2")]
position = Vector2(168, 360)
[node name="Rock12" parent="Rocks" instance=ExtResource("2")]
position = Vector2(216, 360)
[node name="Rock13" parent="Rocks" instance=ExtResource("2")]
position = Vector2(120, 264)
[node name="Rock14" parent="Rocks" instance=ExtResource("2")]
position = Vector2(168, 216)
[node name="Rock15" parent="Rocks" instance=ExtResource("2")]
position = Vector2(72, 360)
[node name="Rock16" parent="Rocks" instance=ExtResource("2")]
position = Vector2(72, 312)
[node name="Rock17" parent="Rocks" instance=ExtResource("2")]
position = Vector2(72, 264)
[node name="Rock18" parent="Rocks" instance=ExtResource("2")]
position = Vector2(360, 360)
[node name="Rock19" parent="Rocks" instance=ExtResource("2")]
position = Vector2(408, 360)
[node name="Rock20" parent="Rocks" instance=ExtResource("2")]
position = Vector2(504, 360)
[node name="Rock21" parent="Rocks" instance=ExtResource("2")]
position = Vector2(600, 360)
[node name="Rock22" parent="Rocks" instance=ExtResource("2")]
position = Vector2(648, 360)
[node name="Rock23" parent="Rocks" instance=ExtResource("2")]
position = Vector2(504, 456)
[node name="Rock24" parent="Rocks" instance=ExtResource("2")]
position = Vector2(552, 456)
[node name="Rock25" parent="Rocks" instance=ExtResource("2")]
position = Vector2(552, 408)
[node name="Rock26" parent="Rocks" instance=ExtResource("2")]
position = Vector2(360, 456)
[node name="Rock27" parent="Rocks" instance=ExtResource("2")]
position = Vector2(360, 504)
[node name="Rock28" parent="Rocks" instance=ExtResource("2")]
position = Vector2(264, 504)
[node name="Rock29" parent="Rocks" instance=ExtResource("2")]
position = Vector2(264, 552)
[node name="Rock30" parent="Rocks" instance=ExtResource("2")]
position = Vector2(168, 456)
[node name="Rock31" parent="Rocks" instance=ExtResource("2")]
position = Vector2(168, 504)
[node name="Rock32" parent="Rocks" instance=ExtResource("2")]
position = Vector2(72, 552)
[node name="Rock33" parent="Rocks" instance=ExtResource("2")]
position = Vector2(120, 552)
[node name="Rock34" parent="Rocks" instance=ExtResource("2")]
position = Vector2(504, 552)
[node name="Rock35" parent="Rocks" instance=ExtResource("2")]
position = Vector2(600, 552)
[node name="Rock36" parent="Rocks" instance=ExtResource("2")]
position = Vector2(648, 552)
[node name="Rock37" parent="Rocks" instance=ExtResource("2")]
position = Vector2(648, 504)
[node name="Rock38" parent="Rocks" instance=ExtResource("2")]
position = Vector2(456, 216)
[node name="Rock39" parent="Rocks" instance=ExtResource("2")]
position = Vector2(360, 216)
[node name="Rock40" parent="Rocks" instance=ExtResource("2")]
position = Vector2(360, 168)
[node name="Rock41" parent="Rocks" instance=ExtResource("2")]
position = Vector2(456, 120)
[node name="Rock42" parent="Rocks" instance=ExtResource("2")]
position = Vector2(456, 408)
[node name="Rock43" parent="Rocks" instance=ExtResource("2")]
position = Vector2(456, 456)
[node name="Rock44" parent="Rocks" instance=ExtResource("2")]
position = Vector2(456, 504)
[node name="Rock45" parent="Rocks" instance=ExtResource("2")]
position = Vector2(600, 264)
[node name="Rock46" parent="Rocks" instance=ExtResource("2")]
position = Vector2(600, 72)
[node name="Rock47" parent="Rocks" instance=ExtResource("2")]
position = Vector2(408, 72)
[node name="Rock48" parent="Rocks" instance=ExtResource("2")]
position = Vector2(792, 168)
[node name="Rock49" parent="Rocks" instance=ExtResource("2")]
position = Vector2(744, 168)
[node name="Rock50" parent="Rocks" instance=ExtResource("2")]
position = Vector2(744, 264)
[node name="Rock51" parent="Rocks" instance=ExtResource("2")]
position = Vector2(792, 264)
[node name="Rock52" parent="Rocks" instance=ExtResource("2")]
position = Vector2(744, 360)
[node name="Rock53" parent="Rocks" instance=ExtResource("2")]
position = Vector2(744, 408)
[node name="Rock54" parent="Rocks" instance=ExtResource("2")]
position = Vector2(792, 552)
[node name="Rock55" parent="Rocks" instance=ExtResource("2")]
position = Vector2(840, 552)
[node name="Rock56" parent="Rocks" instance=ExtResource("2")]
position = Vector2(840, 504)
[node name="Rock57" parent="Rocks" instance=ExtResource("2")]
position = Vector2(840, 312)
[node name="Rock58" parent="Rocks" instance=ExtResource("2")]
position = Vector2(840, 264)
[node name="Rock59" parent="Rocks" instance=ExtResource("2")]
position = Vector2(840, 216)
[node name="Rock60" parent="Rocks" instance=ExtResource("2")]
position = Vector2(840, 120)
[node name="Rock61" parent="Rocks" instance=ExtResource("2")]
position = Vector2(792, 72)
[node name="Rock62" parent="Rocks" instance=ExtResource("2")]
position = Vector2(840, 72)
[node name="Rock63" parent="Rocks" instance=ExtResource("2")]
position = Vector2(936, 216)
[node name="Rock64" parent="Rocks" instance=ExtResource("2")]
position = Vector2(936, 264)
[node name="Rock65" parent="Rocks" instance=ExtResource("2")]
position = Vector2(936, 408)
[node name="Rock66" parent="Rocks" instance=ExtResource("2")]
position = Vector2(888, 456)
[node name="Rock67" parent="Rocks" instance=ExtResource("2")]
position = Vector2(936, 456)
[node name="Rock68" parent="Rocks" instance=ExtResource("2")]
position = Vector2(792, 456)
[node name="Rock69" parent="Rocks" instance=ExtResource("2")]
position = Vector2(840, 456)
[node name="Players" type="Node2D" parent="."]
[node name="ColorRect" type="ColorRect" parent="."]
offset_right = 1056.0
offset_bottom = 48.0
color = Color(0, 0, 0, 0.501961)
[node name="Score" type="HBoxContainer" parent="."]
offset_right = 1024.0
offset_bottom = 40.0
size_flags_horizontal = 2
size_flags_vertical = 2
script = ExtResource("3")
[node name="Winner" type="Label" parent="."]
visible = false
offset_right = 1031.0
offset_bottom = 617.0
size_flags_horizontal = 2
size_flags_vertical = 0
theme_override_constants/shadow_offset_x = 2
theme_override_constants/shadow_offset_y = 2
theme_override_fonts/font = ExtResource("4")
text = "THE WINNER IS:
YOU"
[node name="ExitGame" type="Button" parent="Winner"]
layout_mode = 0
offset_left = 384.0
offset_top = 408.0
offset_right = 649.0
offset_bottom = 469.0
size_flags_horizontal = 2
size_flags_vertical = 2
theme_override_fonts/font = ExtResource("4")
text = "EXIT GAME"
[node name="Camera2D" type="Camera2D" parent="."]
offset = Vector2(512, 300)
[node name="PlayerSpawner" type="MultiplayerSpawner" parent="."]
_spawnable_scenes = PackedStringArray("res://player.tscn")
spawn_path = NodePath("../Players")
[node name="BombSpawner" type="MultiplayerSpawner" parent="."]
spawn_path = NodePath("..")
script = ExtResource("6_ac5ja")
[connection signal="pressed" from="Winner/ExitGame" to="Score" method="_on_exit_game_pressed"]