2024-01-14 12:22:14 +01:00

11 lines
223 B
GDScript

extends Node
const PLAYER = preload("res://player/Player.tscn")
var udp := PacketPeerUDP.new()
func _ready():
udp.connect_to_host("127.0.0.1", 4242)
var player = PLAYER.instantiate()
add_child(player)
print("Ready.")