Client.tscn 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. [gd_scene load_steps=9 format=2]
  2. [ext_resource path="res://Debug.tscn" type="PackedScene" id=1]
  3. [ext_resource path="res://PowerMenu.tscn" type="PackedScene" id=2]
  4. [ext_resource path="res://Client.gd" type="Script" id=3]
  5. [ext_resource path="res://Input.gd" type="Script" id=4]
  6. [ext_resource path="res://ping.gd" type="Script" id=5]
  7. [ext_resource path="res://projectiles.gd" type="Script" id=6]
  8. [ext_resource path="res://enemiessprite.gd" type="Script" id=7]
  9. [ext_resource path="res://font/tiny.tres" type="DynamicFont" id=8]
  10. [node name="Client" type="Node" groups=["client"]]
  11. script = ExtResource( 3 )
  12. [node name="Input" type="Node" parent="."]
  13. script = ExtResource( 4 )
  14. [node name="players" type="Node" parent="."]
  15. [node name="enemies" type="Node" parent="."]
  16. script = ExtResource( 7 )
  17. [node name="projectiles" type="Node" parent="."]
  18. script = ExtResource( 6 )
  19. [node name="Debug" parent="." instance=ExtResource( 1 )]
  20. [node name="ping" type="Label" parent="Debug"]
  21. margin_left = 12.1612
  22. margin_top = 260.304
  23. margin_right = 52.1612
  24. margin_bottom = 281.304
  25. custom_fonts/font = ExtResource( 8 )
  26. text = "ping..."
  27. script = ExtResource( 5 )
  28. [node name="Timer" type="Timer" parent="Debug/ping"]
  29. wait_time = 0.5
  30. autostart = true
  31. [node name="Hud" type="CanvasLayer" parent="."]
  32. [node name="HBoxContainer" type="HBoxContainer" parent="Hud"]
  33. anchor_right = 1.0
  34. margin_right = 1.0
  35. margin_bottom = 60.0
  36. __meta__ = {
  37. "_edit_use_anchors_": false
  38. }
  39. [node name="PowerMenu" parent="." instance=ExtResource( 2 )]
  40. [node name="Chat" type="CanvasLayer" parent="."]
  41. layer = 7
  42. [node name="LineEdit" type="LineEdit" parent="Chat"]
  43. modulate = Color( 1, 1, 1, 0.627451 )
  44. margin_left = 480.0
  45. margin_top = 320.0
  46. margin_right = 620.0
  47. margin_bottom = 344.0
  48. align = 2
  49. placeholder_text = "....message"
  50. [node name="RichTextLabel" type="RichTextLabel" parent="Chat"]
  51. margin_left = 480.0
  52. margin_top = 220.0
  53. margin_right = 620.0
  54. margin_bottom = 315.0
  55. [node name="ColorRect" type="ColorRect" parent="Chat/RichTextLabel"]
  56. anchor_right = 1.0
  57. anchor_bottom = 1.0
  58. color = Color( 0, 0, 0, 0.207843 )
  59. [connection signal="timeout" from="Debug/ping/Timer" to="Debug/ping" method="_on_Timer_timeout"]
  60. [connection signal="text_entered" from="Chat/LineEdit" to="." method="chat_messages"]