Add the multiplayer lobby view to the state list
This commit is contained in:
parent
9bc5fd1ad1
commit
11cdf71203
1 changed files with 3 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
||||||
import Particles from "svelte-particles";
|
import Particles from "svelte-particles";
|
||||||
|
|
||||||
// View imports
|
// View imports
|
||||||
|
import MultiplayerLobby from "./views/lobby/multiplayer.svelte";
|
||||||
import Home from "./views/home.svelte";
|
import Home from "./views/home.svelte";
|
||||||
|
|
||||||
// Store imports
|
// Store imports
|
||||||
|
|
@ -18,6 +19,8 @@ import { state } from "./stores";
|
||||||
<!-- The state the game is in -->
|
<!-- The state the game is in -->
|
||||||
{#if $state == "main-menu"}
|
{#if $state == "main-menu"}
|
||||||
<Home />
|
<Home />
|
||||||
|
{:else if $state == "multiplayer-lobby"}
|
||||||
|
<MultiplayerLobby />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue