-Add UI (Health bars, Resources UI, HUD Interface, Weapon U, Zoombie Invasion progress Indicator)

-Refactor code structure for improved readability and maintainability
This commit is contained in:
24Play-Mykyta-Slobodianiuk
2026-06-08 18:33:28 +03:00
parent d6fc6be717
commit 78d85c3799
31 changed files with 6308 additions and 624 deletions
+16 -2
View File
@@ -1,15 +1,29 @@
import { defineConfig } from "vite";
import { defineConfigTemplate} from "@24tools/ads_common";
import { defineConfigTemplate } from "@24tools/ads_common";
import { dependencies } from "./package.json";
const rootDev = "src";
const rootBuild = "src";
export default defineConfig((config) => {
return defineConfigTemplate({
// The template builds the full config (plugins, build, base server.hmr…).
const templateConfig = defineConfigTemplate({
rootDev,
rootBuild,
config,
dependenciesArr: Object.keys(dependencies),
});
return {
...templateConfig,
server: {
...templateConfig.server, // keep the template's settings (hmr, etc.)
// host:true → listen on 0.0.0.0 (all network interfaces), not just
// localhost. Vite then prints a "Network:" URL you can open on a phone
// on the same Wi-Fi. Needs the PC firewall to allow incoming port 5173.
host: true,
port: 5173,
strictPort: true, // fail loudly instead of silently hopping to another port
},
};
});