diff --git a/package.json b/package.json index c3439f1..219bc99 100644 --- a/package.json +++ b/package.json @@ -10,11 +10,11 @@ "export": "node templateLibs/export.cjs", "preview": "vite preview", "build": "node templateLibs/zip.cjs", - "update": "npm i @24tools/ads_common@latest @24tools/playable_template@latest && node templateLibs/update.cjs" + "update": "npm i @hitplay/ads_common@latest @hitplay/playable_template@latest && node templateLibs/update.cjs" }, "dependencies": { - "@24tools/ads_common": "^0.15.6", - "@24tools/playable_template": "^0.15.5", + "@hitplay/ads_common": "^0.15.12", + "@hitplay/playable_template": "^0.15.9", "@tweenjs/tween.js": "^25.0.0", "bytebrew-web-sdk": "^1.0.1", "cannon-es": "^0.20.0", diff --git a/src/configUIParams/analytics.ts b/src/configUIParams/analytics.ts index 2ed3e68..a983b9d 100644 --- a/src/configUIParams/analytics.ts +++ b/src/configUIParams/analytics.ts @@ -1,4 +1,4 @@ -import { ConfigUiParamsCategories } from "@24tools/ads_common"; +import { ConfigUiParamsCategories } from "@hitplay/ads_common"; export const analytics: ConfigUiParamsCategories[] = [ { diff --git a/src/configUIParams/configUIParams.ts b/src/configUIParams/configUIParams.ts index a61e27d..86e7041 100644 --- a/src/configUIParams/configUIParams.ts +++ b/src/configUIParams/configUIParams.ts @@ -1,4 +1,4 @@ -import { ConfigUiParamsCategories } from "@24tools/ads_common"; +import { ConfigUiParamsCategories } from "@hitplay/ads_common"; import { sounds } from "./sounds"; //@ts-ignore import { analytics } from "./analytics"; diff --git a/src/configUIParams/globalSettings.ts b/src/configUIParams/globalSettings.ts index 26391f8..51feea9 100644 --- a/src/configUIParams/globalSettings.ts +++ b/src/configUIParams/globalSettings.ts @@ -1,4 +1,4 @@ -import { ConfigUiParamsCategories } from "@24tools/ads_common"; +import { ConfigUiParamsCategories } from "@hitplay/ads_common"; export const globalSettings: ConfigUiParamsCategories[] = [ { diff --git a/src/configUIParams/installBanner.ts b/src/configUIParams/installBanner.ts index 0c1d004..7da7891 100644 --- a/src/configUIParams/installBanner.ts +++ b/src/configUIParams/installBanner.ts @@ -1,4 +1,4 @@ -import { ConfigUiParamsCategories } from "@24tools/ads_common"; +import { ConfigUiParamsCategories } from "@hitplay/ads_common"; export const installBanner: ConfigUiParamsCategories[] = [ { diff --git a/src/configUIParams/sounds.ts b/src/configUIParams/sounds.ts index e5559a5..0926069 100644 --- a/src/configUIParams/sounds.ts +++ b/src/configUIParams/sounds.ts @@ -1,4 +1,4 @@ -import { ConfigUiParamsCategories } from "@24tools/ads_common"; +import { ConfigUiParamsCategories } from "@hitplay/ads_common"; export const sounds: ConfigUiParamsCategories[] = [ { diff --git a/src/controllers/CameraC.ts b/src/controllers/CameraC.ts index a5fbd34..b173ef7 100644 --- a/src/controllers/CameraC.ts +++ b/src/controllers/CameraC.ts @@ -1,4 +1,4 @@ -import { CameraC_internal, Helper, Template } from "@24tools/playable_template"; +import { CameraC_internal, Helper, Template } from "@hitplay/playable_template"; import { PerspectiveCamera } from "three"; export class CameraC extends CameraC_internal { diff --git a/src/controllers/FollowCameraC.ts b/src/controllers/FollowCameraC.ts index f6e1926..560b76e 100644 --- a/src/controllers/FollowCameraC.ts +++ b/src/controllers/FollowCameraC.ts @@ -1,4 +1,4 @@ -import { CameraC_internal } from "@24tools/playable_template"; +import { CameraC_internal } from "@hitplay/playable_template"; import { Object3D, Vector3 } from "three"; import { GameLoop } from "../core/GameLoop"; diff --git a/src/controllers/HealthBarC.ts b/src/controllers/HealthBarC.ts index 064b581..ba455ab 100644 --- a/src/controllers/HealthBarC.ts +++ b/src/controllers/HealthBarC.ts @@ -1,6 +1,6 @@ import { Box3, DoubleSide, Group, Material, Mesh, Object3D, Vector3 } from "three"; import * as TWEEN from "@tweenjs/tween.js"; -import { CameraC_internal } from "@24tools/playable_template"; +import { CameraC_internal } from "@hitplay/playable_template"; import { ThreeC } from "./ThreeC"; import { GameEvents } from "../core/GameEvents"; import { GameLoop } from "../core/GameLoop"; diff --git a/src/controllers/LootC.ts b/src/controllers/LootC.ts index 04d599e..cf2f6f2 100644 --- a/src/controllers/LootC.ts +++ b/src/controllers/LootC.ts @@ -1,6 +1,6 @@ import { Sprite, SpriteMaterial, Texture, TextureLoader, SRGBColorSpace, Vector3 } from "three"; import * as TWEEN from "@tweenjs/tween.js"; -import { CameraC_internal } from "@24tools/playable_template"; +import { CameraC_internal } from "@hitplay/playable_template"; import { ThreeC } from "./ThreeC"; import { TestSceneC } from "./TestSceneC"; // for groundY (ground level) import { GameEvents } from "../core/GameEvents"; diff --git a/src/controllers/PayZoneC.ts b/src/controllers/PayZoneC.ts index d71001f..cade2ef 100644 --- a/src/controllers/PayZoneC.ts +++ b/src/controllers/PayZoneC.ts @@ -1,6 +1,6 @@ import { Object3D, Raycaster, Vector3 } from "three"; import * as TWEEN from "@tweenjs/tween.js"; -import { CameraC_internal } from "@24tools/playable_template"; +import { CameraC_internal } from "@hitplay/playable_template"; import { Trigger } from "./TriggerC"; import { TestSceneC } from "./TestSceneC"; import { LootC } from "./LootC"; diff --git a/src/controllers/PhysicsC.ts b/src/controllers/PhysicsC.ts index c86cfd6..71f3901 100644 --- a/src/controllers/PhysicsC.ts +++ b/src/controllers/PhysicsC.ts @@ -1,4 +1,4 @@ -import { Physics_internal } from "@24tools/playable_template"; +import { Physics_internal } from "@hitplay/playable_template"; import { Box3, Object3D, Vector3 } from "three"; import { Body, Box, Quaternion, Sphere, Vec3 } from "cannon-es"; diff --git a/src/controllers/PlayerC.ts b/src/controllers/PlayerC.ts index 496d46a..f9b1d09 100644 --- a/src/controllers/PlayerC.ts +++ b/src/controllers/PlayerC.ts @@ -1,4 +1,4 @@ -import { CameraC_internal, JoystickC, ThreeC_internal } from "@24tools/playable_template"; +import { CameraC_internal, JoystickC, ThreeC_internal } from "@hitplay/playable_template"; import { AnimationAction, AnimationMixer, LoopOnce, Mesh, Object3D, Raycaster, Vector3 } from "three"; import { Body } from "cannon-es"; import { PhysicsBody, PhysicsLayer } from "./PhysicsC"; diff --git a/src/controllers/TestSceneC.ts b/src/controllers/TestSceneC.ts index 0f4a65c..01d84ba 100644 --- a/src/controllers/TestSceneC.ts +++ b/src/controllers/TestSceneC.ts @@ -1,5 +1,5 @@ import { ThreeC } from "./ThreeC"; -import { InputC } from "@24tools/playable_template"; +import { InputC } from "@hitplay/playable_template"; import { Box3, Mesh, Object3D, Vector3 } from "three"; import { Body, Box, Vec3 } from "cannon-es"; import { PhysicsBody, PhysicsC, PhysicsLayer } from "./PhysicsC"; diff --git a/src/controllers/ThreeC.ts b/src/controllers/ThreeC.ts index 6854ba8..b018322 100644 --- a/src/controllers/ThreeC.ts +++ b/src/controllers/ThreeC.ts @@ -1,5 +1,5 @@ -import { ColorFormat } from "@24tools/ads_common"; -import { ThreeC_internal, Template } from "@24tools/playable_template"; +import { ColorFormat } from "@hitplay/ads_common"; +import { ThreeC_internal, Template } from "@hitplay/playable_template"; import { AmbientLight, DirectionalLight } from "three"; import { Color } from "three/src/math/Color"; diff --git a/src/core/GameEvents.ts b/src/core/GameEvents.ts index bfd28cf..b9f384f 100644 --- a/src/core/GameEvents.ts +++ b/src/core/GameEvents.ts @@ -1,4 +1,4 @@ -import { EasyEvent } from "@24tools/playable_template"; +import { EasyEvent } from "@hitplay/playable_template"; import { Vector3 } from "three"; import type { Crate } from "../controllers/LootableC"; @@ -6,7 +6,7 @@ import type { Crate } from "../controllers/LootableC"; * Centralized event system. Controllers emit events instead of calling each other directly. * This decouples systems and makes it easy to add new listeners (e.g., sound, particles, analytics). * - * Uses EasyEvent from @24tools/playable_template (same pattern as UpdateController, JoystickC). + * Uses EasyEvent from @hitplay/playable_template (same pattern as UpdateController, JoystickC). * Subscribe: event.addDelegate(callback) * Emit: event.Invoke(data) */ diff --git a/src/core/GameLoop.ts b/src/core/GameLoop.ts index 9fecb0b..b5dcba9 100644 --- a/src/core/GameLoop.ts +++ b/src/core/GameLoop.ts @@ -1,4 +1,4 @@ -import { UpdateController } from "@24tools/playable_template"; +import { UpdateController } from "@hitplay/playable_template"; /** * Centralized game loop. Instead of each controller registering separately with UpdateController, diff --git a/src/fonts/customFont.ts b/src/fonts/customFont.ts index 3ab82e5..0681c55 100644 --- a/src/fonts/customFont.ts +++ b/src/fonts/customFont.ts @@ -1,3 +1,3 @@ -import { FontFamily, formFontFamily } from "@24tools/ads_common"; +import { FontFamily, formFontFamily } from "@hitplay/ads_common"; export const customFont: Promise = formFontFamily("PassionOne", "./PassionOne-Black.otf"); diff --git a/src/index.ts b/src/index.ts index 0f32294..06ab6fb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import { formConfigForPlayable, formConfigUI, formConfigUIParams, TemplateType } from "@24tools/ads_common"; +import { formConfigForPlayable, formConfigUI, formConfigUIParams, TemplateType } from "@hitplay/ads_common"; import { resources } from "./resources/resources"; import { resizeCb } from "./templateConfig/resizeCb"; import { gameRedirectedCb } from "./templateConfig/gameRedirectedCb"; @@ -7,7 +7,7 @@ import { beforeResourcesLoadedCb } from "./templateConfig/beforeResourcesLoadedC import { afterResourcesLoadedCb } from "./templateConfig/afterResourcesLoadedCb"; import { customFont } from "./fonts/customFont"; import { configUIParams } from "./configUIParams/configUIParams"; -import { Template, Template3d } from "@24tools/playable_template"; +import { Template, Template3d } from "@hitplay/playable_template"; import { firstClickCb } from "./templateConfig/firstClickCb"; Template.set24ADSControls(); diff --git a/src/resources/images/images.ts b/src/resources/images/images.ts index 3be1700..ce8b831 100644 --- a/src/resources/images/images.ts +++ b/src/resources/images/images.ts @@ -1,4 +1,4 @@ -import { ConvertToBase64WhenRelease } from "@24tools/ads_common"; +import { ConvertToBase64WhenRelease } from "@hitplay/ads_common"; const woodIconUrl = ConvertToBase64WhenRelease("./Icon_Wood.webp"); const zombieHeadUrl = ConvertToBase64WhenRelease("./Icon_Zombie_Head.webp"); // invasion bar + death end-card diff --git a/src/resources/meshes/meshes.ts b/src/resources/meshes/meshes.ts index b00e04d..320158f 100644 --- a/src/resources/meshes/meshes.ts +++ b/src/resources/meshes/meshes.ts @@ -1,5 +1,5 @@ -import { ConvertToBase64WhenRelease } from "@24tools/ads_common"; -import { ConvertResourceType, Template3d } from "@24tools/playable_template"; +import { ConvertToBase64WhenRelease } from "@hitplay/ads_common"; +import { ConvertResourceType, Template3d } from "@hitplay/playable_template"; export const meshes : ConvertResourceType = { diff --git a/src/resources/resources.ts b/src/resources/resources.ts index 3f3816a..f5060f7 100644 --- a/src/resources/resources.ts +++ b/src/resources/resources.ts @@ -1,4 +1,4 @@ -import { ConvertResourcesType } from "@24tools/playable_template"; +import { ConvertResourcesType } from "@hitplay/playable_template"; import { meshes } from "./meshes/meshes"; import { sounds } from "./sounds/sounds"; import { vfx_json } from "./vfx/vfx_json";1 diff --git a/src/resources/sounds/sounds.ts b/src/resources/sounds/sounds.ts index 0e260cc..a4015fa 100644 --- a/src/resources/sounds/sounds.ts +++ b/src/resources/sounds/sounds.ts @@ -1,5 +1,5 @@ -// import { ConvertToBase64WhenRelease } from "@24tools/ads_common"; -import { ConvertResourceType } from "@24tools/playable_template"; +// import { ConvertToBase64WhenRelease } from "@hitplay/ads_common"; +import { ConvertResourceType } from "@hitplay/playable_template"; export const sounds : ConvertResourceType = { diff --git a/src/resources/vfx/VfxManager.ts b/src/resources/vfx/VfxManager.ts index 684def4..be9dd54 100644 --- a/src/resources/vfx/VfxManager.ts +++ b/src/resources/vfx/VfxManager.ts @@ -1,6 +1,6 @@ import { BatchedRenderer, QuarksLoader, QuarksUtil } from "three.quarks"; import { Object3D, Euler, Vector3 } from "three"; -import { ResourcesC } from "@24tools/playable_template"; +import { ResourcesC } from "@hitplay/playable_template"; import { ThreeC } from "../../controllers/ThreeC"; import { GameLoop } from "../../core/GameLoop"; diff --git a/src/resources/vfx/vfx_json.ts b/src/resources/vfx/vfx_json.ts index 18bf1fb..061ea38 100644 --- a/src/resources/vfx/vfx_json.ts +++ b/src/resources/vfx/vfx_json.ts @@ -1,5 +1,5 @@ -import { ConvertToBase64WhenRelease } from "@24tools/ads_common"; -import { ConvertResourceType, Template3d } from "@24tools/playable_template"; +import { ConvertToBase64WhenRelease } from "@hitplay/ads_common"; +import { ConvertResourceType, Template3d } from "@hitplay/playable_template"; import { QuarksLoader } from "three.quarks"; export const vfx_json: ConvertResourceType = { diff --git a/src/templateConfig/afterResourcesLoadedCb.ts b/src/templateConfig/afterResourcesLoadedCb.ts index 53e678a..ffbd216 100644 --- a/src/templateConfig/afterResourcesLoadedCb.ts +++ b/src/templateConfig/afterResourcesLoadedCb.ts @@ -4,7 +4,7 @@ import { PlayerC } from "../controllers/PlayerC"; import { LootableC } from "../controllers/LootableC"; import { TriggerC } from "../controllers/TriggerC"; import { CombatC } from "../controllers/CombatC"; -import { JoystickC, SoundC, Template } from "@24tools/playable_template"; +import { JoystickC, SoundC, Template } from "@hitplay/playable_template"; import { LootC } from "../controllers/LootC"; import { PayZoneC } from "../controllers/PayZoneC"; import { HudC } from "../controllers/HudC"; diff --git a/src/templateConfig/beforeResourcesLoadedCb.ts b/src/templateConfig/beforeResourcesLoadedCb.ts index 51c3814..0533f66 100644 --- a/src/templateConfig/beforeResourcesLoadedCb.ts +++ b/src/templateConfig/beforeResourcesLoadedCb.ts @@ -7,7 +7,7 @@ import { ThreeC_internal, FilterScene, InstallBanner, -} from "@24tools/playable_template"; +} from "@hitplay/playable_template"; import { CameraC } from "../controllers/CameraC"; import { ThreeC } from "../controllers/ThreeC"; import { Color } from "three"; diff --git a/src/templateConfig/resizeCb.ts b/src/templateConfig/resizeCb.ts index 6205af7..2340509 100644 --- a/src/templateConfig/resizeCb.ts +++ b/src/templateConfig/resizeCb.ts @@ -1,4 +1,4 @@ -import { Template3d } from "@24tools/playable_template"; +import { Template3d } from "@hitplay/playable_template"; import { CameraC } from "../controllers/CameraC"; import { FollowCameraC } from "../controllers/FollowCameraC"; diff --git a/src/types/global.d.ts b/src/types/global.d.ts index 4194feb..d0bfb46 100644 --- a/src/types/global.d.ts +++ b/src/types/global.d.ts @@ -1,5 +1,5 @@ -import type { ConvertResourcesType, RedirectOptions, screenSize } from '@24tools/playable_template'; -import { ConfigCreative } from '@24tools/ads_common'; +import type { ConvertResourcesType, RedirectOptions, screenSize } from '@hitplay/playable_template'; +import { ConfigCreative } from '@hitplay/ads_common'; declare global { interface Window extends Window { diff --git a/stats.html b/stats.html deleted file mode 100644 index 2ac8330..0000000 --- a/stats.html +++ /dev/null @@ -1,4949 +0,0 @@ - - - - - - - - Rollup Visualizer - - - -
- - - - - diff --git a/templateLibs/export.cjs b/templateLibs/export.cjs index ea1e26e..23d3a99 100644 --- a/templateLibs/export.cjs +++ b/templateLibs/export.cjs @@ -1,6 +1,6 @@ #!/usr/bin/env node -const { localExporter } = require("@24tools/ads_common"); +const { localExporter } = require("@hitplay/ads_common"); const { resolve } = require("path"); localExporter(resolve(__dirname, "../")).parse(process.argv); diff --git a/templateLibs/update.cjs b/templateLibs/update.cjs index c5ff4e1..87676f3 100644 --- a/templateLibs/update.cjs +++ b/templateLibs/update.cjs @@ -1,4 +1,4 @@ -const { templateUpdater } = require("@24tools/ads_common"); +const { templateUpdater } = require("@hitplay/ads_common"); const { resolve } = require("path"); templateUpdater(resolve(__dirname, "../")); diff --git a/templateLibs/zip.cjs b/templateLibs/zip.cjs index 471caf5..3aae9f8 100644 --- a/templateLibs/zip.cjs +++ b/templateLibs/zip.cjs @@ -1,4 +1,4 @@ -const { createBuildFor24ADS } = require("@24tools/ads_common"); +const { createBuildFor24ADS } = require("@hitplay/ads_common"); const { resolve } = require("path"); createBuildFor24ADS(resolve(__dirname, "../")); diff --git a/vite.config.js b/vite.config.js index 00db309..aaa3f40 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,5 +1,5 @@ import { defineConfig } from "vite"; -import { defineConfigTemplate } from "@24tools/ads_common"; +import { defineConfigTemplate } from "@hitplay/ads_common"; import { dependencies } from "./package.json"; const rootDev = "src";