Tutorial show coins
This commit is contained in:
parent
dec10acdb5
commit
cc4755cf9d
|
@ -24,6 +24,9 @@ function main() {
|
||||||
|
|
||||||
xhr.onreadystatechange = function() {
|
xhr.onreadystatechange = function() {
|
||||||
if (xhr.readyState == 4 && xhr.status == 200) {
|
if (xhr.readyState == 4 && xhr.status == 200) {
|
||||||
|
coins.forEach(function(elt) {
|
||||||
|
elt.mesh.visible = true;
|
||||||
|
});
|
||||||
init(JSON.parse(xhr.responseText));
|
init(JSON.parse(xhr.responseText));
|
||||||
onWindowResize();
|
onWindowResize();
|
||||||
setInterval(render, 20);
|
setInterval(render, 20);
|
||||||
|
|
Loading…
Reference in New Issue