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

90 lines
3 KiB
Plaintext
Raw Normal View History

2021-12-15 16:50:12 -06:00
[gd_scene load_steps=6 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-15 16:50:12 -06:00
[ext_resource path="res://assets/img/spaced-dungeon-tileset.png" type="Texture" id=3]
[sub_resource type="NavigationPolygon" id=2]
vertices = PoolVector2Array( 16, 17, 0, 17, 0, 0, 16, 0 )
polygons = [ PoolIntArray( 0, 1, 2, 3 ) ]
[sub_resource type="TileSet" id=1]
0/name = "spaced-dungeon-tileset.png 0"
0/texture = ExtResource( 3 )
0/tex_offset = Vector2( 0, 0 )
0/modulate = Color( 1, 1, 1, 1 )
0/region = Rect2( 18, 36, 16, 17 )
0/tile_mode = 0
0/occluder_offset = Vector2( 0, 0 )
0/navigation_offset = Vector2( 0, 0 )
0/navigation = SubResource( 2 )
0/shape_offset = Vector2( 0, 0 )
0/shape_transform = Transform2D( 1, 0, 0, 1, 0, 0 )
0/shape_one_way = false
0/shape_one_way_margin = 0.0
0/shapes = [ ]
0/z_index = 0
2021-11-15 15:43:33 -06:00
[node name="game" type="Node2D"]
2021-11-15 15:43:33 -06:00
script = ExtResource( 1 )
2021-12-15 16:50:12 -06:00
[node name="bg" type="ParallaxBackground" parent="."]
[node name="bglayer" type="ParallaxLayer" parent="bg"]
motion_scale = Vector2( 0.5, 0.5 )
[node name="image" type="Sprite" parent="bg/bglayer"]
texture = ExtResource( 3 )
[node name="tiles" type="TileMap" parent="."]
tile_set = SubResource( 1 )
cell_size = Vector2( 16, 16 )
format = 1
tile_data = PoolIntArray( -851970, 0, 0, -851969, 0, 0, -917504, 0, 0, -786434, 0, 0, -786433, 0, 0, -851968, 0, 0, -720898, 0, 0, -720897, 0, 0, -786432, 0, 0, -655362, 0, 0, -655361, 0, 0, -720896, 0, 0, -720895, 0, 0, -589826, 0, 0, -589825, 0, 0, -655360, 0, 0, -655359, 0, 0, -524290, 0, 0, -524289, 0, 0, -589824, 0, 0, -458754, 0, 0, -458753, 0, 0, -524288, 0, 0, -393218, 0, 0, -393217, 0, 0, -458752, 0, 0, -327682, 0, 0, -327681, 0, 0, -393216, 0, 0, -262145, 0, 0, -327680, 0, 0, -196609, 0, 0, -262144, 0, 0, -131073, 0, 0, -196608, 0, 0, -65537, 0, 0, -131072, 0, 0, -1, 0, 0, -65536, 0, 0, 65535, 0, 0, 0, 0, 0 )
[node name="objects" type="YSort" parent="."]
[node name="players" type="YSort" parent="objects"]
[node name="camera" type="Camera2D" parent="."]
2021-12-15 16:14:36 -06:00
offset = Vector2( 100, 0 )
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
editor_draw_limits = true
2021-12-15 16:14:36 -06:00
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="ui" type="MarginContainer" parent="CanvasLayer"]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="v" type="VBoxContainer" parent="CanvasLayer/ui"]
margin_right = 1024.0
margin_bottom = 600.0
[node name="Label" type="Label" parent="CanvasLayer/ui/v"]
margin_right = 1024.0
margin_bottom = 21.0
2021-11-15 15:43:33 -06:00
text = "You are playing the game"
__meta__ = {
"_edit_use_anchors_": false
}
2021-12-15 16:14:36 -06:00
[node name="Button" type="Button" parent="CanvasLayer/ui/v"]
margin_top = 25.0
margin_right = 1024.0
margin_bottom = 52.0
2021-11-15 15:43:33 -06:00
text = "Leave Game"
__meta__ = {
"_edit_use_anchors_": false
}
2021-12-15 16:14:36 -06:00
[connection signal="pressed" from="CanvasLayer/ui/v/Button" to="." method="_on_Button_pressed"]