prefetch beat data + get access to beat info early

This commit is contained in:
Kevin Ngo
2018-10-17 00:18:50 -07:00
parent f0785650c5
commit ed09fc568a
4 changed files with 101 additions and 79 deletions

View File

@@ -29,6 +29,7 @@ AFRAME.registerState({
image: '',
isLoading: false,
isBeatsPreloaded: false,
numBeats: 0,
songName: '',
songSubName: '',
songLength: 0
@@ -46,7 +47,6 @@ AFRAME.registerState({
menuDifficulties: [],
menuSelectedChallenge: {
author: '',
bpm: 0,
difficulty: '',
downloads: '',
downloadsText: '',
@@ -218,7 +218,6 @@ AFRAME.registerState({
state.menuSelectedChallenge.id = '';
state.isSearching = false;
state.challenge.isLoading = true;
state.isSongLoading = true;
},