codename-routes/godot/world/terrain.gd
2022-05-01 01:28:31 +02:00

13 lines
239 B
GDScript

extends TileMap
var width = 256
var height = 256
# Called when the node enters the scene tree for the first time.
func _ready():
fill()
func fill():
for x in width:
for y in height:
set_cell(x,y,0,false,false,false,Vector2(1,0))