godot-webrtc-mplayer-testing/screens/game.tscn

147 lines
694 KiB
Plaintext
Raw Permalink Normal View History

2021-12-21 16:40:58 -06:00
[gd_scene load_steps=8 format=2]
2021-11-15 15:43:33 -06:00
2021-12-07 16:19:54 -06:00
[ext_resource path="res://scripts/screens/game.gd" type="Script" id=1]
2021-12-15 16:14:36 -06:00
[ext_resource path="res://assets/theme.tres" type="Theme" id=2]
2021-12-17 17:10:56 -06:00
[ext_resource path="res://assets/tileset.tres" type="TileSet" id=3]
[ext_resource path="res://assets/img/Parallax80.png" type="Texture" id=4]
[ext_resource path="res://objects/slime.tscn" type="PackedScene" id=5]
2021-12-21 16:40:58 -06:00
[ext_resource path="res://objects/player.tscn" type="PackedScene" id=6]
2021-12-17 17:10:56 -06:00
[sub_resource type="StyleBoxFlat" id=1]
bg_color = Color( 0, 0, 0, 0.498039 )
[node name="game" type="Control"]
theme = ExtResource( 2 )
2021-11-15 15:43:33 -06:00
script = ExtResource( 1 )
2021-12-17 17:10:56 -06:00
__meta__ = {
"_edit_use_anchors_": false
}
camera = NodePath("camera")
menu = NodePath("uicontainer/menu")
2021-12-21 16:40:58 -06:00
players = NodePath("nav/objects/players")
objects = NodePath("nav/objects")
nav = NodePath("nav")
2021-11-15 15:43:33 -06:00
2021-12-15 16:50:12 -06:00
[node name="bg" type="ParallaxBackground" parent="."]
[node name="bglayer" type="ParallaxLayer" parent="bg"]
2021-12-17 17:10:56 -06:00
motion_scale = Vector2( 0.1, 0.1 )
2021-12-15 16:50:12 -06:00
[node name="image" type="Sprite" parent="bg/bglayer"]
2021-12-17 17:10:56 -06:00
position = Vector2( 50, 14 )
scale = Vector2( 4, 4 )
texture = ExtResource( 4 )
2021-12-15 16:50:12 -06:00
2021-12-21 16:40:58 -06:00
[node name="nav" type="Navigation2D" parent="."]
[node name="tiles" type="TileMap" parent="nav"]
2021-12-17 17:10:56 -06:00
scale = Vector2( 4, 4 )
tile_set = ExtResource( 3 )
2021-12-15 16:50:12 -06:00
cell_size = Vector2( 16, 16 )
format = 1
2021-12-17 17:10:56 -06:00
tile_data = PoolIntArray( -7405665, 2, 0, -7405664, 2, 0, -7405663, 2, 0, -7405662, 2, 0, -7405661, 2, 0, -7405660, 2, 0, -7405659, 2, 0, -7405658, 2, 0, -7405657, 2, 0, -7405656, 2, 0, -7405655, 2, 0, -7405654, 2, 0, -7405653, 2, 0, -7405652, 2, 0, -7405651, 2, 0, -7405650, 2, 0, -7405649, 2, 0, -7405648, 2, 0, -7405647, 2, 0, -7405646, 2, 0, -7405645, 2, 0, -7405644, 2, 0, -7405643, 2, 0, -7405642, 2, 0, -7405641, 2, 0, -7405640, 2, 0, -7405639, 2, 0, -7405638, 2, 0, -7405637, 2, 0, -7405636, 2, 0, -7405635, 2, 0, -7405634, 2, 0, -7405633, 2, 0, -7405632, 2, 0, -7405631, 2, 0, -7405630, 2, 0, -7405629, 2, 0, -7405628, 2, 0, -7405627, 2, 0, -7405626, 2, 0, -7405625, 2, 0, -7405624, 2, 0, -7405623, 2, 0, -7405622, 2, 0, -7405621, 2, 0, -7405620, 2, 0, -7405619, 2, 0, -7405618, 2, 0, -7405617, 2, 0, -7405616, 2, 0, -7405615, 2, 0, -7405614, 2, 0, -7405613, 2, 0, -7405612, 2, 0, -7405611, 2, 0, -7405610, 2, 0, -7405609, 2, 0, -7405608, 2, 0, -7405607, 2, 0, -7405606, 2, 0, -7405605, 2, 0, -7405604, 2, 0, -7405603, 2, 0, -7405602, 2, 0, -7405601, 2, 0, -7405600, 2, 0, -7405599, 2, 0, -7405598, 2, 0, -7405597, 2, 0, -7405596, 2, 0, -7405595, 2, 0, -7405594, 2, 0, -7405593, 2, 0, -7405592, 2, 0, -7405591, 2, 0, -7405590, 2, 0, -7405589, 2, 0, -7405588, 2, 0, -7405587, 2, 0, -7405586, 2, 0, -7405585, 2, 0, -7405584, 2, 0, -7405583, 2, 0, -7405582, 2, 0, -7405581, 2, 0, -7405580, 2, 0, -7405579, 2, 0, -7405578, 2, 0, -7405577, 2, 0, -7405576, 2, 0, -7405575, 2, 0, -7405574, 2, 0, -7405573, 2, 0, -7405572, 2, 0, -7405571, 2, 0, -7405570, 2, 0, -7405569, 2, 0, -7471104, 2, 0, -7471103, 2, 0, -7471102, 2, 0, -7471101, 2, 0, -7471100, 2, 0, -7471099, 2, 0, -7471098, 2, 0, -7471097, 2, 0, -7471096, 2, 0, -7471095, 2, 0, -7471094, 2, 0, -7471093, 2, 0, -7471092, 2, 0, -7471091, 2, 0, -7471090, 2, 0, -7471089, 2, 0, -7471088, 2, 0, -7471087, 2, 0, -7471086, 2, 0, -7471085, 2, 0, -7471084, 2, 0, -7471083, 2, 0, -7471082, 2, 0, -7471081, 2, 0, -7471080, 2, 0, -7471079, 2, 0, -7471078, 2, 0, -7471077, 2, 0, -7471076, 2, 0, -7471075, 2, 0, -7471074, 2, 0, -7471073, 2, 0, -7471072, 2, 0, -7471071, 2, 0, -7471070, 2, 0, -7471069, 2, 0, -7471068, 2, 0, -7471067, 2, 0, -7471066, 2, 0, -7471065, 2, 0, -7471064, 2, 0, -7471063, 2, 0, -7471062, 2, 0, -7471061, 2, 0, -7471060, 2, 0, -7471059, 2, 0, -7471058, 2, 0, -7471057, 2, 0, -7471056, 2, 0, -7471055, 2, 0, -7471054, 2, 0, -7471053, 2, 0, -7471052, 2, 0, -7471051, 2, 0, -7471050, 2, 0, -7471049, 2, 0, -7471048, 2, 0, -7471047, 2, 0, -7471046, 2, 0, -7471045, 2, 0, -7471044, 2, 0, -7471043, 2, 0, -7471042, 2, 0, -7471041, 2, 0, -7471040, 2, 0, -7471039, 2, 0, -7471038, 2, 0, -7471037, 2, 0, -7471036, 2, 0, -7471035, 2, 0, -7471034, 2, 0, -7471033, 2, 0, -7471032, 2, 0, -7471031, 2, 0, -7471030, 2, 0, -7471029, 2, 0, -7471028, 2, 0, -7471027, 2, 0, -7471026, 2, 0, -7471025, 2, 0, -7471024, 2, 0, -7471023, 2, 0, -7471022, 2, 0, -7471021, 2, 0, -7471020, 2, 0, -7471019, 2, 0, -7471018, 2, 0, -7471017, 2, 0, -7471016, 2, 0, -7471015, 2, 0, -7471014, 2, 0, -7471013, 2, 0, -7471012, 2, 0, -7471011, 2, 0, -7471010, 2, 0, -7471009, 2, 0, -7471008, 2, 0, -7471007, 2, 0, -7471006, 2, 0, -7471005, 2, 0, -7471004, 2, 0, -7471003, 2, 0, -7471002, 2, 0, -7471001, 2, 0, -7471000, 2, 0, -7470999, 2, 0, -7470998, 2, 0, -7340129, 2, 0, -7340128, 2, 0, -7340127, 2, 0, -7340126, 2, 0, -7340125, 2, 0, -7340124, 2, 0, -7340123, 2, 0, -7340122, 2, 0, -7340121, 2, 0, -7340120, 2, 0, -7340119, 2, 0, -7340118, 2, 0, -7340117, 2, 0, -7340116, 2, 0, -7340115, 2, 0, -7340114, 2, 0, -7340113, 2, 0, -7340112, 2, 0, -7340111, 2, 0, -7340110, 2, 0, -7340109, 2, 0, -7340108, 2, 0, -7340107, 2, 0, -7340106, 2, 0, -7340105, 2, 0, -7340104, 2, 0, -7340103, 2, 0, -7340102, 2, 0, -7340101, 2, 0, -7340100, 2, 0, -7340099, 2, 0, -7340098, 2, 0, -7340097, 2, 0, -7340096, 2, 0, -7340095, 2, 0, -7340094, 2, 0, -7340093, 2, 0, -7340092, 2, 0, -7340091, 2, 0, -7340090, 2, 0, -7340089, 2, 0, -7340088, 2, 0, -7340087, 2, 0, -7340086, 2, 0, -7340085, 2, 0, -7340084, 2, 0, -7340083, 2, 0, -7340082, 2, 0, -7340081, 2, 0, -7340080, 2, 0, -7340
2021-12-15 16:50:12 -06:00
2021-12-21 16:40:58 -06:00
[node name="objects" type="YSort" parent="nav"]
[node name="players" type="YSort" parent="nav/objects"]
2021-12-15 16:50:12 -06:00
2021-12-21 16:40:58 -06:00
[node name="player" parent="nav/objects/players" instance=ExtResource( 6 )]
position = Vector2( -260, -247 )
weight = null
max_speed = null
friction = null
speed = null
mana_per_sec = null
health_per_sec = null
health = null
max_health = null
mana = null
max_mana = null
2021-12-15 16:50:12 -06:00
2021-12-21 16:40:58 -06:00
[node name="slime" parent="nav/objects" instance=ExtResource( 5 )]
2021-12-17 17:10:56 -06:00
position = Vector2( 57, -78 )
[node name="camera" type="Camera2D" parent="."]
current = true
2021-12-15 16:14:36 -06:00
drag_margin_left = 0.0
drag_margin_top = 0.0
drag_margin_right = 0.0
drag_margin_bottom = 0.0
2021-12-17 17:10:56 -06:00
editor_draw_screen = false
2021-12-15 16:14:36 -06:00
editor_draw_limits = true
2021-12-17 17:10:56 -06:00
[node name="uicontainer" type="CanvasLayer" parent="."]
[node name="ui" type="MarginContainer" parent="uicontainer"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 20.0
margin_top = 20.0
margin_right = -20.0
margin_bottom = -20.0
theme = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="v" type="VBoxContainer" parent="uicontainer/ui"]
margin_right = 1240.0
margin_bottom = 680.0
[node name="menu_button" type="Button" parent="uicontainer/ui/v"]
margin_right = 44.0
margin_bottom = 27.0
size_flags_horizontal = 0
size_flags_vertical = 0
text = "Menu"
2021-12-15 16:14:36 -06:00
2021-12-17 17:10:56 -06:00
[node name="menu" type="PopupDialog" parent="uicontainer"]
2021-12-15 16:14:36 -06:00
anchor_right = 1.0
anchor_bottom = 1.0
2021-12-17 17:10:56 -06:00
size_flags_horizontal = 7
size_flags_vertical = 7
2021-12-15 16:14:36 -06:00
theme = ExtResource( 2 )
2021-12-17 17:10:56 -06:00
custom_styles/panel = SubResource( 1 )
2021-12-15 16:14:36 -06:00
__meta__ = {
"_edit_use_anchors_": false
}
2021-12-17 17:10:56 -06:00
[node name="c" type="CenterContainer" parent="uicontainer/menu"]
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 7
size_flags_vertical = 7
__meta__ = {
"_edit_use_anchors_": false
}
2021-12-15 16:14:36 -06:00
2021-12-17 17:10:56 -06:00
[node name="v" type="VBoxContainer" parent="uicontainer/menu/c"]
margin_left = 565.0
margin_top = 308.0
margin_right = 715.0
margin_bottom = 412.0
custom_constants/separation = 4
2021-11-15 15:43:33 -06:00
__meta__ = {
"_edit_use_anchors_": false
}
2021-12-17 17:10:56 -06:00
[node name="leave" type="Button" parent="uicontainer/menu/c/v"]
margin_right = 150.0
margin_bottom = 50.0
rect_min_size = Vector2( 150, 50 )
2021-11-15 15:43:33 -06:00
text = "Leave Game"
2021-12-17 17:10:56 -06:00
[node name="close" type="Button" parent="uicontainer/menu/c/v"]
margin_top = 54.0
margin_right = 150.0
margin_bottom = 104.0
rect_min_size = Vector2( 150, 50 )
text = "Close"
2021-11-15 15:43:33 -06:00
__meta__ = {
"_edit_use_anchors_": false
}
2021-12-17 17:10:56 -06:00
[connection signal="pressed" from="uicontainer/ui/v/menu_button" to="." method="_on_menu_button_pressed"]
[connection signal="pressed" from="uicontainer/menu/c/v/leave" to="." method="_on_leave_pressed"]
[connection signal="pressed" from="uicontainer/menu/c/v/close" to="." method="_on_close_pressed"]