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