Add main game view

This commit is contained in:
Oliver-Akins 2020-10-22 23:35:46 -06:00
parent 8d1b24b363
commit b7df92a06e

View file

@ -28,10 +28,16 @@
@go-to="go_to"
@alert="alert = $event"
/>
<In-Game
v-else-if="state == 'in-game'"
@go-to="go_to"
@alert="alert = $event"
/>
</div>
</template>
<script>
import GameView from './views/Game';
import GameLobby from './views/Lobby';
import JoinHost from './views/JoinHost';
import GameCodeEntry from './views/GameCode';
@ -44,6 +50,7 @@ export default {
'Game-Code': GameCodeEntry,
'Join-Or-Host': JoinHost,
'Game-Lobby': GameLobby,
'In-Game': GameView,
},
data() {return {
/*
@ -64,6 +71,7 @@ export default {
players in the game so far, and updates as new players join.
If the player is the host, they can kick players and start the
game.
in-game - The main processing for all the game.
*/
state: `game-type`,
alert: {