codename-routes/godot/world/StateApi.gd

14 lines
259 B
GDScript
Raw Normal View History

2022-05-01 20:23:01 +00:00
extends Node
2022-05-04 14:46:58 +00:00
2022-05-06 22:17:56 +00:00
export var xsize = 256
export var ysize = 256
2022-05-08 14:45:53 +00:00
export var zsize = 6
2022-05-04 14:46:58 +00:00
2022-05-01 20:23:01 +00:00
func _ready():
StateServer.generate_world(xsize, ysize, zsize)
print(StateServer.get_tile_at(0,0,0))
2022-05-04 14:46:58 +00:00
func respawn_tilemaps(amount: int):
2022-05-08 14:45:53 +00:00
$Tilemaps.respawn_tilemaps(amount)
2022-05-05 09:13:29 +00:00