Explorar el Código

Added random images to our own cdn to prevent mishaps with image loading example.

Mikael Säker hace 7 años
padre
commit
0647f26351

BIN
assets/random_images/1.png


BIN
assets/random_images/10.png


BIN
assets/random_images/2.png


BIN
assets/random_images/3.png


BIN
assets/random_images/4.png


BIN
assets/random_images/5.png


BIN
assets/random_images/6.png


BIN
assets/random_images/7.png


BIN
assets/random_images/8.png


BIN
assets/random_images/9.png


+ 1 - 1
examples/gui/load_texture/load_texture.gui_script

@@ -27,7 +27,7 @@ local function start_load_random(self)
 	if self.texture_url then -- <4>
 		gui.delete_texture(self.texture_url) 
 	end
-	self.texture_url = "https://picsum.photos/"..math.random(100, 600)..".png"
+	self.texture_url = "https://storage.googleapis.com/defold-examples/random_images/"..math.random(1, 10)..".png"
 	http.request(self.texture_url, "GET", on_load_finish) -- <5>
 	gui.set_text(self.text, "Loading...") -- <6>
 end

+ 1 - 0
publish.sh

@@ -34,3 +34,4 @@ java -jar "$BOB" --debug --archive --platform js-web resolve distclean build bun
 echo "Publishing build..."
 $GSUTIL -m rsync -rd "$BUILDWEB" gs://defold-examples
 $GSUTIL -m rsync -rd "$BUILDHTML5" gs://defold-examples/app
+$GSUTIL -m rsync -rd "assets/random_images" gs://defold-examples/random_images