Generate basic world & recieve data on client

This commit is contained in:
2020-08-16 18:53:39 -04:00
parent abfb0f4284
commit fb43cb1fb7
16 changed files with 237 additions and 8 deletions

View File

@ -0,0 +1,15 @@
extends Node
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
ServerConnection.connect("tile_update", self, "on_tile_update")
yield(ServerConnection.join_world_async(), "completed")
func on_tile_update(tile_data):
print(tile_data)