123456789101112131415161718192021222324252627282930313233343536373839404142 |
- extends Spatial
- # Declare member variables here. Examples:
- # var a = 2
- # var b = "text"
- var tileGenScene = preload("res://TileGenerator.tscn")
- var minlat = 0
- var maxlat = 6
- var minlon = 0
- var maxlon = 3
- var curlat = 0
- var curlon = 0
- func _ready():
- curlat = minlat
- curlon = minlon
- func _process(delta):
- if curlat < maxlat:
- if curlon < maxlon:
- var moontile = tileGenScene.instance()
- moontile.init(curlat,curlon)
- #moontile.scale=Vector3(1000,1000,1000)
- $Tiles.add_child(moontile)
- .get_node("UI/3").text="LatLon=="+str(Common.latLonToGlobal(curlat,curlon))
- curlon += 1
- else:
- curlat +=1
- curlon = 0
- if curlat >= maxlat:
- print("loading complete")
- # Called every frame. 'delta' is the elapsed time since the previous frame.
- #func _process(delta):
- # pass
|