123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337 |
- [gd_scene load_steps=9 format=2]
- [ext_resource path="res://greeting_screen.gd" type="Script" id=1]
- [ext_resource path="res://MAIN.gd" type="Script" id=2]
- [ext_resource path="res://spawner.gd" type="Script" id=3]
- [ext_resource path="res://Register.gd" type="Script" id=4]
- [ext_resource path="res://Login.gd" type="Script" id=5]
- [ext_resource path="res://status_label.gd" type="Script" id=6]
- [ext_resource path="res://brick3.gd" type="Script" id=7]
- [ext_resource path="res://quitbutton.gd" type="Script" id=8]
- [node name="MAIN" type="Node2D"]
- script = ExtResource( 2 )
- [node name="UI" type="CanvasLayer" parent="."]
- [node name="STATUS" type="Label" parent="UI"]
- margin_right = 40.0
- margin_bottom = 14.0
- script = ExtResource( 6 )
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="greeting_screen" type="Node2D" parent="UI"]
- script = ExtResource( 1 )
- [node name="PanelContainer" type="PanelContainer" parent="UI/greeting_screen"]
- margin_left = 460.0
- margin_top = 268.0
- margin_right = 502.0
- margin_bottom = 302.0
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="HBoxContainer" type="HBoxContainer" parent="UI/greeting_screen/PanelContainer"]
- margin_left = 7.0
- margin_top = 7.0
- margin_right = 115.0
- margin_bottom = 27.0
- [node name="register" type="Button" parent="UI/greeting_screen/PanelContainer/HBoxContainer"]
- margin_right = 61.0
- margin_bottom = 20.0
- text = "register"
- [node name="login" type="Button" parent="UI/greeting_screen/PanelContainer/HBoxContainer"]
- margin_left = 65.0
- margin_right = 108.0
- margin_bottom = 20.0
- text = "login"
- [node name="Register" type="Node2D" parent="UI/greeting_screen"]
- visible = false
- script = ExtResource( 4 )
- [node name="PanelContainer" type="PanelContainer" parent="UI/greeting_screen/Register"]
- margin_left = 386.0
- margin_top = 236.0
- margin_right = 689.0
- margin_bottom = 354.0
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="VBoxContainer" type="VBoxContainer" parent="UI/greeting_screen/Register/PanelContainer"]
- margin_left = 7.0
- margin_top = 7.0
- margin_right = 296.0
- margin_bottom = 111.0
- [node name="done" type="Label" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer"]
- visible = false
- modulate = Color( 0.141176, 0.901961, 0.101961, 1 )
- margin_right = 289.0
- margin_bottom = 14.0
- text = "Done!"
- [node name="error" type="Label" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer"]
- visible = false
- modulate = Color( 0.929412, 0.360784, 0.0784314, 1 )
- margin_right = 289.0
- margin_bottom = 14.0
- text = "ERROR!"
- [node name="username" type="HBoxContainer" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer"]
- margin_right = 289.0
- margin_bottom = 24.0
- [node name="Label" type="Label" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer/username"]
- margin_top = 5.0
- margin_right = 72.0
- margin_bottom = 19.0
- text = "username: "
- [node name="edit" type="LineEdit" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer/username"]
- margin_left = 76.0
- margin_right = 276.0
- margin_bottom = 24.0
- rect_min_size = Vector2( 200, 0 )
- text = "coolperson"
- [node name="homeserver" type="HBoxContainer" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer"]
- margin_top = 28.0
- margin_right = 289.0
- margin_bottom = 52.0
- [node name="Label" type="Label" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer/homeserver"]
- margin_top = 5.0
- margin_right = 85.0
- margin_bottom = 19.0
- text = "homeserver: "
- [node name="edit" type="LineEdit" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer/homeserver"]
- margin_left = 89.0
- margin_right = 289.0
- margin_bottom = 24.0
- rect_min_size = Vector2( 200, 0 )
- text = "http://127.0.0.1:6167"
- [node name="password" type="HBoxContainer" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer"]
- margin_top = 56.0
- margin_right = 289.0
- margin_bottom = 80.0
- [node name="Label" type="Label" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer/password"]
- margin_top = 5.0
- margin_right = 68.0
- margin_bottom = 19.0
- text = "password: "
- [node name="edit" type="LineEdit" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer/password"]
- margin_left = 72.0
- margin_right = 272.0
- margin_bottom = 24.0
- rect_min_size = Vector2( 200, 0 )
- text = "password"
- secret = true
- [node name="HBoxContainer" type="HBoxContainer" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer"]
- margin_top = 84.0
- margin_right = 289.0
- margin_bottom = 104.0
- [node name="register" type="Button" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer/HBoxContainer"]
- margin_right = 64.0
- margin_bottom = 20.0
- text = "Register"
- [node name="back" type="Button" parent="UI/greeting_screen/Register/PanelContainer/VBoxContainer/HBoxContainer"]
- margin_right = 64.0
- margin_bottom = 20.0
- text = "back"
- [node name="Login" type="Node2D" parent="UI/greeting_screen"]
- visible = false
- script = ExtResource( 5 )
- [node name="PanelContainer" type="PanelContainer" parent="UI/greeting_screen/Login"]
- margin_left = 386.0
- margin_top = 236.0
- margin_right = 689.0
- margin_bottom = 354.0
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="VBoxContainer" type="VBoxContainer" parent="UI/greeting_screen/Login/PanelContainer"]
- margin_left = 7.0
- margin_top = 7.0
- margin_right = 296.0
- margin_bottom = 111.0
- [node name="done" type="Label" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer"]
- visible = false
- modulate = Color( 0.141176, 0.901961, 0.101961, 1 )
- margin_right = 289.0
- margin_bottom = 14.0
- text = "Done!"
- [node name="error" type="Label" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer"]
- visible = false
- modulate = Color( 0.929412, 0.360784, 0.0784314, 1 )
- margin_right = 289.0
- margin_bottom = 14.0
- text = "ERROR!"
- [node name="username" type="HBoxContainer" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer"]
- margin_right = 289.0
- margin_bottom = 24.0
- [node name="Label" type="Label" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer/username"]
- margin_top = 5.0
- margin_right = 72.0
- margin_bottom = 19.0
- text = "username: "
- [node name="edit" type="LineEdit" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer/username"]
- margin_left = 76.0
- margin_right = 276.0
- margin_bottom = 24.0
- rect_min_size = Vector2( 200, 0 )
- text = "coolperson"
- [node name="homeserver" type="HBoxContainer" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer"]
- margin_top = 28.0
- margin_right = 289.0
- margin_bottom = 52.0
- [node name="Label" type="Label" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer/homeserver"]
- margin_top = 5.0
- margin_right = 85.0
- margin_bottom = 19.0
- text = "homeserver: "
- [node name="edit" type="LineEdit" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer/homeserver"]
- margin_left = 89.0
- margin_right = 289.0
- margin_bottom = 24.0
- rect_min_size = Vector2( 200, 0 )
- text = "http://127.0.0.1:6167"
- [node name="password" type="HBoxContainer" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer"]
- margin_top = 56.0
- margin_right = 289.0
- margin_bottom = 80.0
- [node name="Label" type="Label" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer/password"]
- margin_top = 5.0
- margin_right = 68.0
- margin_bottom = 19.0
- text = "password: "
- [node name="edit" type="LineEdit" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer/password"]
- margin_left = 72.0
- margin_right = 272.0
- margin_bottom = 24.0
- rect_min_size = Vector2( 200, 0 )
- text = "password"
- secret = true
- [node name="HBoxContainer" type="HBoxContainer" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer"]
- margin_top = 84.0
- margin_right = 289.0
- margin_bottom = 104.0
- [node name="login" type="Button" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer/HBoxContainer"]
- margin_right = 43.0
- margin_bottom = 20.0
- text = "Login"
- [node name="back" type="Button" parent="UI/greeting_screen/Login/PanelContainer/VBoxContainer/HBoxContainer"]
- margin_left = 47.0
- margin_right = 88.0
- margin_bottom = 20.0
- text = "back"
- [node name="Button" type="Button" parent="UI"]
- margin_left = 868.0
- margin_top = 16.0
- margin_right = 905.0
- margin_bottom = 36.0
- text = "quit"
- script = ExtResource( 8 )
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="playscene" type="Node2D" parent="."]
- [node name="spawner" type="Node2D" parent="playscene"]
- position = Vector2( 426, 102 )
- script = ExtResource( 3 )
- [node name="Polygon2D" type="Polygon2D" parent="playscene/spawner"]
- color = Color( 0, 0, 0, 1 )
- polygon = PoolVector2Array( -39.5171, -61.9826, -27.5171, 46.0174, 94.4829, 22.0174, 74.4829, -39.9826 )
- [node name="Polygon2D" type="Polygon2D" parent="playscene"]
- position = Vector2( 712.505, 424.94 )
- color = Color( 1, 0.537255, 0, 1 )
- offset = Vector2( -346.505, -284.94 )
- polygon = PoolVector2Array( -126, -280, -366, -28, -122, 292, 410, 302, 454, 68, 454, -264, 592, -276, 570, 346, -140, 384, -468, 142, -432, -100, -248, -230, -160, -312, 40, -330, 458, -318, 436, -254, 242.831, -270.922 )
- [node name="ground" type="StaticBody2D" parent="playscene/Polygon2D"]
- [node name="Polygon2D2" type="CollisionPolygon2D" parent="playscene/Polygon2D/ground"]
- visible = false
- position = Vector2( -342, -284 )
- polygon = PoolVector2Array( -126, -280, -366, -28, -122, 292, 410, 302, 454, 68, 454, -264, 592, -276, 570, 346, -140, 384, -468, 142, -432, -100, -248, -230, -160, -312, 40, -330, 458, -318, 436, -254 )
- [node name="brick" type="RigidBody2D" parent="playscene"]
- position = Vector2( 446, 400 )
- [node name="polygon_of_doom2" type="CollisionPolygon2D" parent="playscene/brick"]
- position = Vector2( -36, 32 )
- polygon = PoolVector2Array( -7.51709, -61.9826, -11.5171, -3.98257, 94.4829, -1.98257, 82.4829, -61.9826 )
- [node name="polygon_of_doom" type="Polygon2D" parent="playscene/brick/polygon_of_doom2"]
- position = Vector2( 32.4829, -29.9826 )
- color = Color( 0, 1, 0.976471, 1 )
- offset = Vector2( -36.4829, 29.9826 )
- polygon = PoolVector2Array( -7.51709, -61.9826, -11.5171, -3.98257, 94.4829, -1.98257, 82.4829, -61.9826 )
- [node name="brick2" type="RigidBody2D" parent="playscene"]
- position = Vector2( 434, 334 )
- [node name="polygon_of_doom2" type="CollisionPolygon2D" parent="playscene/brick2"]
- position = Vector2( -36, 32 )
- polygon = PoolVector2Array( -7.51709, -61.9826, -11.5171, -3.98257, 94.4829, -1.98257, 82.4829, -61.9826 )
- [node name="polygon_of_doom" type="Polygon2D" parent="playscene/brick2/polygon_of_doom2"]
- position = Vector2( 32.4829, -29.9826 )
- color = Color( 0, 1, 0.976471, 1 )
- offset = Vector2( -36.4829, 29.9826 )
- polygon = PoolVector2Array( -7.51709, -61.9826, -11.5171, -3.98257, 94.4829, -1.98257, 82.4829, -61.9826 )
- [node name="brick3" type="RigidBody2D" parent="playscene"]
- position = Vector2( 398, 260 )
- contacts_reported = 2
- contact_monitor = true
- can_sleep = false
- script = ExtResource( 7 )
- [node name="polygon_of_doom2" type="CollisionPolygon2D" parent="playscene/brick3"]
- position = Vector2( -36, 32 )
- polygon = PoolVector2Array( -7.51709, -61.9826, -11.5171, -3.98257, 94.4829, -1.98257, 82.4829, -61.9826 )
- [node name="polygon_of_doom" type="Polygon2D" parent="playscene/brick3/polygon_of_doom2"]
- position = Vector2( 32.4829, -29.9826 )
- color = Color( 0.0313726, 1, 0, 1 )
- offset = Vector2( -36.4829, 29.9826 )
- polygon = PoolVector2Array( -7.51709, -61.9826, -11.5171, -3.98257, 94.4829, -1.98257, 82.4829, -61.9826 )
- [node name="client" type="Node2D" parent="."]
|