main.tscn 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. [gd_scene load_steps=12 format=2]
  2. [ext_resource path="res://Login.gd" type="Script" id=1]
  3. [ext_resource path="res://envarg.gd" type="Script" id=2]
  4. [ext_resource path="res://Database.gd" type="Script" id=3]
  5. [ext_resource path="res://art/Untitledcxz.png" type="Texture" id=10]
  6. [ext_resource path="res://Textures.gd" type="Script" id=11]
  7. [ext_resource path="res://Camera2D.gd" type="Script" id=13]
  8. [sub_resource type="AtlasTexture" id=1]
  9. atlas = ExtResource( 10 )
  10. region = Rect2( 0, 0, 112, 113 )
  11. [sub_resource type="AtlasTexture" id=2]
  12. atlas = ExtResource( 10 )
  13. region = Rect2( 112, 0, 112, 113 )
  14. [sub_resource type="AtlasTexture" id=3]
  15. atlas = ExtResource( 10 )
  16. region = Rect2( 224, 0, 112, 113 )
  17. [sub_resource type="AtlasTexture" id=4]
  18. atlas = ExtResource( 10 )
  19. region = Rect2( 336, 0, 112, 113 )
  20. [sub_resource type="SpriteFrames" id=5]
  21. animations = [ {
  22. "frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ) ],
  23. "loop": true,
  24. "name": "default",
  25. "speed": 5.0
  26. } ]
  27. [node name="Node" type="Node"]
  28. [node name="Textures" type="Node" parent="."]
  29. script = ExtResource( 11 )
  30. [node name="Goblin1" type="Viewport" parent="Textures"]
  31. size = Vector2( 64, 64 )
  32. own_world = true
  33. transparent_bg = true
  34. render_target_v_flip = true
  35. [node name="Goblin" type="AnimatedSprite" parent="Textures/Goblin1"]
  36. modulate = Color( 0, 0.811765, 1, 1 )
  37. frames = SubResource( 5 )
  38. playing = true
  39. offset = Vector2( 32, 32 )
  40. [node name="Goblin2" type="Viewport" parent="Textures"]
  41. size = Vector2( 64, 64 )
  42. own_world = true
  43. transparent_bg = true
  44. render_target_v_flip = true
  45. [node name="Goblin" type="AnimatedSprite" parent="Textures/Goblin2"]
  46. frames = SubResource( 5 )
  47. frame = 3
  48. speed_scale = 0.8
  49. playing = true
  50. offset = Vector2( 32, 32 )
  51. [node name="Goblin3" type="Viewport" parent="Textures"]
  52. size = Vector2( 64, 64 )
  53. own_world = true
  54. transparent_bg = true
  55. render_target_v_flip = true
  56. [node name="Goblin" type="AnimatedSprite" parent="Textures/Goblin3"]
  57. modulate = Color( 1, 0, 0, 1 )
  58. frames = SubResource( 5 )
  59. frame = 1
  60. speed_scale = 1.2
  61. playing = true
  62. offset = Vector2( 32, 32 )
  63. [node name="Goblin4" type="Viewport" parent="Textures"]
  64. size = Vector2( 64, 64 )
  65. own_world = true
  66. transparent_bg = true
  67. render_target_v_flip = true
  68. [node name="Goblin" type="AnimatedSprite" parent="Textures/Goblin4"]
  69. modulate = Color( 1, 0, 0.984314, 1 )
  70. frames = SubResource( 5 )
  71. frame = 3
  72. speed_scale = 0.9
  73. playing = true
  74. offset = Vector2( 32, 32 )
  75. [node name="Database" type="Node" parent="."]
  76. script = ExtResource( 3 )
  77. [node name="Login" type="Node" parent="."]
  78. script = ExtResource( 1 )
  79. [node name="directconnect" type="Control" parent="Login"]
  80. anchor_right = 1.0
  81. anchor_bottom = 1.0
  82. margin_left = 180.0
  83. margin_right = -180.0
  84. [node name="VBoxContainer" type="VBoxContainer" parent="Login/directconnect"]
  85. anchor_right = 1.0
  86. anchor_bottom = 1.0
  87. alignment = 1
  88. [node name="HBoxContainer" type="HBoxContainer" parent="Login/directconnect/VBoxContainer"]
  89. margin_top = 144.0
  90. margin_right = 280.0
  91. margin_bottom = 168.0
  92. alignment = 1
  93. [node name="LineEdit2" type="LineEdit" parent="Login/directconnect/VBoxContainer/HBoxContainer"]
  94. margin_right = 218.0
  95. margin_bottom = 24.0
  96. size_flags_horizontal = 3
  97. size_flags_vertical = 3
  98. text = "127.0.0.1"
  99. align = 1
  100. expand_to_text_length = true
  101. placeholder_text = "IP Adress"
  102. [node name="LineEdit" type="LineEdit" parent="Login/directconnect/VBoxContainer/HBoxContainer"]
  103. margin_left = 222.0
  104. margin_right = 280.0
  105. margin_bottom = 24.0
  106. text = "8081"
  107. align = 1
  108. placeholder_text = "Port"
  109. [node name="Button" type="Button" parent="Login/directconnect/VBoxContainer"]
  110. margin_top = 172.0
  111. margin_right = 280.0
  112. margin_bottom = 192.0
  113. text = "connnect"
  114. [node name="Button2" type="Button" parent="Login/directconnect/VBoxContainer"]
  115. margin_top = 196.0
  116. margin_right = 280.0
  117. margin_bottom = 216.0
  118. text = "create server"
  119. [node name="Authority" type="Node" parent="."]
  120. [node name="Camera2D" type="Camera2D" parent="."]
  121. position = Vector2( 320, 180 )
  122. current = true
  123. script = ExtResource( 13 )
  124. [node name="envarg" type="Node" parent="."]
  125. script = ExtResource( 2 )
  126. [connection signal="button_down" from="Login/directconnect/VBoxContainer/Button" to="Login" method="_on_Button_button_down"]
  127. [connection signal="button_down" from="Login/directconnect/VBoxContainer/Button2" to="Login" method="_on_Button2_button_down"]