0
0
Fork 0

Add the InGame view to the app

This commit is contained in:
Oliver-Akins 2020-12-10 15:18:54 -07:00
parent d9e7cd6c1b
commit 238c112859

View file

@ -2,6 +2,7 @@
<div id="app" class="maximize">
<CreateJoin v-if="gameState == `login`" />
<GameLobby v-else-if="gameState == `lobby`" />
<InGame v-else-if="gameState == `in-game`" />
<Attributions />
</div>
</template>
@ -10,6 +11,7 @@
import AttributionsBar from "./components/Attributions";
import CreateJoinGame from "./views/CreateJoin";
import GameLobby from "./views/Lobby";
import InGame from "./views/InGame";
export default {
name: `App`,
@ -17,6 +19,7 @@ export default {
"Attributions": AttributionsBar,
"CreateJoin": CreateJoinGame,
"GameLobby": GameLobby,
"InGame": InGame,
},
computed: {
gameState() {