[gd_scene load_steps=10 format=2]

[ext_resource path="res://Client.gd" type="Script" id=1]
[ext_resource path="res://Server.gd" type="Script" id=2]
[ext_resource path="res://Database.gd" type="Script" id=3]
[ext_resource path="res://ping.gd" type="Script" id=4]
[ext_resource path="res://Input.gd" type="Script" id=5]
[ext_resource path="res://spawner.gd" type="Script" id=6]
[ext_resource path="res://enemiessprite.gd" type="Script" id=7]
[ext_resource path="res://font/tiny.tres" type="DynamicFont" id=8]

[sub_resource type="GDScript" id=1]
script/source = "extends Node

var enabled = false

func _physics_process(delta):
	if enabled:
		var input = ''
		if Input.is_action_pressed(\"s\"):
			input =(\"ui_down\")
		if Input.is_action_pressed(\"w\"):
			input =(\"ui_up\")
		if Input.is_action_pressed(\"a\"):
			input =(\"ui_left\")
		if Input.is_action_pressed(\"d\"):
			input =(\"ui_right\")
		get_parent().send_input(input)
"

[node name="Node" type="Node"]

[node name="Server" type="Node" parent="."]
script = ExtResource( 2 )
database = NodePath("../Database")

[node name="players" type="Node" parent="Server"]

[node name="enemies" type="Node" parent="Server"]
script = ExtResource( 6 )

[node name="dmgbox" type="Node" parent="Server"]

[node name="Client" type="Node" parent="."]
script = ExtResource( 1 )

[node name="ping" type="Label" parent="Client"]
margin_left = 12.1612
margin_top = 331.474
margin_right = 52.1612
margin_bottom = 345.474
custom_fonts/font = ExtResource( 8 )
text = "ping..."
script = ExtResource( 4 )
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Input" type="Node" parent="Client"]
script = ExtResource( 5 )

[node name="players" type="Node" parent="Client"]

[node name="enemies" type="Node" parent="Client"]
script = ExtResource( 7 )

[node name="Hud" type="CanvasLayer" parent="Client"]

[node name="HBoxContainer" type="HBoxContainer" parent="Client/Hud"]
anchor_right = 1.0
margin_right = 1.0
margin_bottom = 60.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="Client2" type="Node" parent="."]
script = ExtResource( 1 )

[node name="Input" type="Node" parent="Client2"]
script = SubResource( 1 )

[node name="Database" type="Node" parent="."]
script = ExtResource( 3 )

[node name="Login" type="Node" parent="."]

[node name="Authority" type="Node" parent="."]
