mirror of
https://git.kittycat.homes/zoe/codename-routes.git
synced 2024-08-15 03:18:26 +00:00
clean up a bit
This commit is contained in:
parent
3c5bbd204e
commit
59ddadb46a
7 changed files with 39 additions and 19 deletions
16
godot/world/Tilemaps.gd
Normal file
16
godot/world/Tilemaps.gd
Normal file
|
@ -0,0 +1,16 @@
|
|||
extends Node
|
||||
|
||||
var Tilemap = preload("res://world/Tilemap.tscn")
|
||||
var tilemaps = []
|
||||
|
||||
func respawn_tilemaps(amount: int):
|
||||
tilemaps = []
|
||||
for i in range(0, amount + 1):
|
||||
var map = Tilemap.instance()
|
||||
map.position.y -= i * map.cell_size.y
|
||||
map.z_index = i
|
||||
add_child(map)
|
||||
tilemaps.push_back(map)
|
||||
|
||||
func is_tile_in_view(pos: Vector2):
|
||||
pass
|
Loading…
Add table
Add a link
Reference in a new issue