feat: update npmrc
This commit is contained in:
+3
-3
@@ -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",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ConfigUiParamsCategories } from "@24tools/ads_common";
|
||||
import { ConfigUiParamsCategories } from "@hitplay/ads_common";
|
||||
|
||||
export const analytics: ConfigUiParamsCategories[] = [
|
||||
{
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ConfigUiParamsCategories } from "@24tools/ads_common";
|
||||
import { ConfigUiParamsCategories } from "@hitplay/ads_common";
|
||||
|
||||
export const globalSettings: ConfigUiParamsCategories[] = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ConfigUiParamsCategories } from "@24tools/ads_common";
|
||||
import { ConfigUiParamsCategories } from "@hitplay/ads_common";
|
||||
|
||||
export const installBanner: ConfigUiParamsCategories[] = [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ConfigUiParamsCategories } from "@24tools/ads_common";
|
||||
import { ConfigUiParamsCategories } from "@hitplay/ads_common";
|
||||
|
||||
export const sounds: ConfigUiParamsCategories[] = [
|
||||
{
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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<Type> from @24tools/playable_template (same pattern as UpdateController, JoystickC).
|
||||
* Uses EasyEvent<Type> from @hitplay/playable_template (same pattern as UpdateController, JoystickC).
|
||||
* Subscribe: event.addDelegate(callback)
|
||||
* Emit: event.Invoke(data)
|
||||
*/
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import { FontFamily, formFontFamily } from "@24tools/ads_common";
|
||||
import { FontFamily, formFontFamily } from "@hitplay/ads_common";
|
||||
|
||||
export const customFont: Promise<FontFamily> = formFontFamily("PassionOne", "./PassionOne-Black.otf");
|
||||
|
||||
+2
-2
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
Vendored
+2
-2
@@ -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 {
|
||||
|
||||
-4949
File diff suppressed because one or more lines are too long
@@ -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);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { templateUpdater } = require("@24tools/ads_common");
|
||||
const { templateUpdater } = require("@hitplay/ads_common");
|
||||
const { resolve } = require("path");
|
||||
|
||||
templateUpdater(resolve(__dirname, "../"));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const { createBuildFor24ADS } = require("@24tools/ads_common");
|
||||
const { createBuildFor24ADS } = require("@hitplay/ads_common");
|
||||
const { resolve } = require("path");
|
||||
|
||||
createBuildFor24ADS(resolve(__dirname, "../"));
|
||||
|
||||
+1
-1
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user