Skip to content

Commit

Permalink
Update random-texture.js
Browse files Browse the repository at this point in the history
  • Loading branch information
elioqoshi authored Sep 3, 2017
1 parent 111acc6 commit 0db4ff9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/random-texture.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ AFRAME.registerComponent('random-texture', {

function getRandomTexture() {
var textures = [
"https://cdn.glitch.com/a9cf685c-2976-4393-9e68-47d675fe9b0d%2Fbrick.png?1504356125032",
"https://cdn.glitch.com/a9cf685c-2976-4393-9e68-47d675fe9b0d%2Fcobblestone.png?1504356131091",
"https://cdn.glitch.com/a9cf685c-2976-4393-9e68-47d675fe9b0d%2Fplanks_oak.png?1504356138770",
"https://cdn.glitch.com/a9cf685c-2976-4393-9e68-47d675fe9b0d%2Fcrafting_table_top.png?1504356138979",
"https://cdn.glitch.com/a9cf685c-2976-4393-9e68-47d675fe9b0d%2Fglass_light_blue.png?1504356139198"
"https://raw.githubusercontent.com/OpenLabsHackerspace/a-craft/master/textures/brick.png",
"https://raw.githubusercontent.com/OpenLabsHackerspace/a-craft/master/textures/cobblestone.png",
"https://raw.githubusercontent.com/OpenLabsHackerspace/a-craft/master/textures/planks_oak.png",
"https://raw.githubusercontent.com/OpenLabsHackerspace/a-craft/master/textures/crafting_table_top.png",
"https://raw.githubusercontent.com/OpenLabsHackerspace/a-craft/master/textures/glass_light_blue.png"
];
var texture = textures[Math.floor(Math.random() * textures.length)];
return texture;
Expand Down

0 comments on commit 0db4ff9

Please sign in to comment.