random world generation lmao (it is just entirely random)

This commit is contained in:
zoe 2022-05-08 20:40:33 +02:00
parent f2d449a827
commit 61f952664d
2 changed files with 4 additions and 3 deletions

View file

@ -24,7 +24,8 @@ func update_tiles(tile_positions: PoolVector3Array):
if !StateServer.is_tile_hidden(int(tile.x), int(tile.y), int(tile.z)):
tilemaps[tile.z].set_tile_graphics(Vector2(tile.x, tile.y),
get_tile_at(tile))
else: print("hidden tile hehe")
for map in tilemaps:
map.update_dirty_quadrants()
func _on_StateServer_request_init():
call_deferred("respawn_tilemaps")