mirror of
https://git.kittycat.homes/zoe/codename-routes.git
synced 2024-08-15 03:18:26 +00:00
dont render tiles that are hidden
This commit is contained in:
parent
5b58f246a0
commit
1de09f7014
5 changed files with 21 additions and 2 deletions
Binary file not shown.
|
@ -21,8 +21,9 @@ func get_tile_at(pos: Vector3) -> String:
|
|||
|
||||
func update_tiles(tile_positions: PoolVector3Array):
|
||||
for tile in tile_positions:
|
||||
tilemaps[tile.z].set_tile_graphics(Vector2(tile.x, tile.y),
|
||||
get_tile_at(tile))
|
||||
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))
|
||||
|
||||
func _on_StateServer_request_init():
|
||||
call_deferred("respawn_tilemaps")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue