mirror of
https://git.kittycat.homes/zoe/codename-routes.git
synced 2024-08-15 03:18:26 +00:00
hooray! simplex noise
This commit is contained in:
parent
c2c9d9b3e3
commit
b6fbb204f1
10 changed files with 189 additions and 108 deletions
|
@ -2,7 +2,7 @@ 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))
|
||||
set_cellv(pos,id,false,false,false,get_variant())
|
||||
|
||||
func get_atlas_vec_for_id(id: int) -> Vector2:
|
||||
return Vector2(randi() % 4, id)
|
||||
func get_variant() -> Vector2:
|
||||
return Vector2(randi() % 4, 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue