mirror of
https://git.kittycat.homes/zoe/codename-routes.git
synced 2024-08-15 03:18:26 +00:00
8 lines
238 B
GDScript
8 lines
238 B
GDScript
extends TileMap
|
|
|
|
func set_tile_graphics(pos: Vector2, id: int):
|
|
if id == 0: set_cellv(pos, -1)
|
|
set_cellv(pos,0,false,false,false,get_atlas_vec_for_id(id))
|
|
|
|
func get_atlas_vec_for_id(id: int) -> Vector2:
|
|
return Vector2(randi() % 4, id)
|