Add main game view
This commit is contained in:
parent
8d1b24b363
commit
b7df92a06e
1 changed files with 8 additions and 0 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue