+
Loading...
Please wait while we load the assets.
@@ -14,61 +14,11 @@
diff --git a/src/stores/gameStore.ts b/src/stores/gameStore.ts
index 33b47ad..3697758 100644
--- a/src/stores/gameStore.ts
+++ b/src/stores/gameStore.ts
@@ -20,7 +20,8 @@ export const useGameStore = defineStore('game', {
fogDensity: 0.5
} as WorldSettings,
game: {
- isAssetsLoaded: false,
+ isLoading: false,
+ isLoaded: false, // isLoaded is currently being used to determine if the player has interacted with the game
loadedAssets: [] as AssetDataT[],
isPlayerDraggingCamera: false,
isCameraFollowingCharacter: false
@@ -112,7 +113,7 @@ export const useGameStore = defineStore('game', {
this.user = null
this.character = null
- this.game.isAssetsLoaded = false
+ this.game.isLoaded = false
this.game.loadedAssets = []
this.game.isPlayerDraggingCamera = false
this.game.isCameraFollowingCharacter = false
diff --git a/vite.config.ts b/vite.config.ts
index b4c7711..e52c1e4 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -2,12 +2,14 @@ import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue';
import VueDevTools from 'vite-plugin-vue-devtools'
+import viteCompression from 'vite-plugin-compression';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
VueDevTools(),
+ viteCompression()
],
resolve: {
alias: {