12345678910111213141516171819202122232425 |
- extends Reference
- var filePrexif = "user://colorTiles"
- # Called when the node enters the scene tree for the first time.
- func _ready():
- pass # Replace with function body.
- func loadTexture(lat, lon):
- lat =int(lat)
- lon = int(lon)
- var texName = getTexName(lat, lon)
- print(texName)
- var tex = load(texName)
- return tex
-
- func getTexName(lat, lon):
- return "%s/m-%s-%s.png" % [filePrexif, lat, lon]
- # Called every frame. 'delta' is the elapsed time since the previous frame.
- #func _process(delta):
- # pass
|