main.tscn 4.3 KB

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