feat: update npmrc
This commit is contained in:
+3
-3
@@ -10,11 +10,11 @@
|
|||||||
"export": "node templateLibs/export.cjs",
|
"export": "node templateLibs/export.cjs",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"build": "node templateLibs/zip.cjs",
|
"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": {
|
"dependencies": {
|
||||||
"@24tools/ads_common": "^0.15.6",
|
"@hitplay/ads_common": "^0.15.12",
|
||||||
"@24tools/playable_template": "^0.15.5",
|
"@hitplay/playable_template": "^0.15.9",
|
||||||
"@tweenjs/tween.js": "^25.0.0",
|
"@tweenjs/tween.js": "^25.0.0",
|
||||||
"bytebrew-web-sdk": "^1.0.1",
|
"bytebrew-web-sdk": "^1.0.1",
|
||||||
"cannon-es": "^0.20.0",
|
"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[] = [
|
export const analytics: ConfigUiParamsCategories[] = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { ConfigUiParamsCategories } from "@24tools/ads_common";
|
import { ConfigUiParamsCategories } from "@hitplay/ads_common";
|
||||||
import { sounds } from "./sounds";
|
import { sounds } from "./sounds";
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
import { analytics } from "./analytics";
|
import { analytics } from "./analytics";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { ConfigUiParamsCategories } from "@24tools/ads_common";
|
import { ConfigUiParamsCategories } from "@hitplay/ads_common";
|
||||||
|
|
||||||
export const globalSettings: ConfigUiParamsCategories[] = [
|
export const globalSettings: ConfigUiParamsCategories[] = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { ConfigUiParamsCategories } from "@24tools/ads_common";
|
import { ConfigUiParamsCategories } from "@hitplay/ads_common";
|
||||||
|
|
||||||
export const installBanner: ConfigUiParamsCategories[] = [
|
export const installBanner: ConfigUiParamsCategories[] = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { ConfigUiParamsCategories } from "@24tools/ads_common";
|
import { ConfigUiParamsCategories } from "@hitplay/ads_common";
|
||||||
|
|
||||||
export const sounds: ConfigUiParamsCategories[] = [
|
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";
|
import { PerspectiveCamera } from "three";
|
||||||
|
|
||||||
export class CameraC extends CameraC_internal {
|
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 { Object3D, Vector3 } from "three";
|
||||||
import { GameLoop } from "../core/GameLoop";
|
import { GameLoop } from "../core/GameLoop";
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Box3, DoubleSide, Group, Material, Mesh, Object3D, Vector3 } from "three";
|
import { Box3, DoubleSide, Group, Material, Mesh, Object3D, Vector3 } from "three";
|
||||||
import * as TWEEN from "@tweenjs/tween.js";
|
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 { ThreeC } from "./ThreeC";
|
||||||
import { GameEvents } from "../core/GameEvents";
|
import { GameEvents } from "../core/GameEvents";
|
||||||
import { GameLoop } from "../core/GameLoop";
|
import { GameLoop } from "../core/GameLoop";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Sprite, SpriteMaterial, Texture, TextureLoader, SRGBColorSpace, Vector3 } from "three";
|
import { Sprite, SpriteMaterial, Texture, TextureLoader, SRGBColorSpace, Vector3 } from "three";
|
||||||
import * as TWEEN from "@tweenjs/tween.js";
|
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 { ThreeC } from "./ThreeC";
|
||||||
import { TestSceneC } from "./TestSceneC"; // for groundY (ground level)
|
import { TestSceneC } from "./TestSceneC"; // for groundY (ground level)
|
||||||
import { GameEvents } from "../core/GameEvents";
|
import { GameEvents } from "../core/GameEvents";
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Object3D, Raycaster, Vector3 } from "three";
|
import { Object3D, Raycaster, Vector3 } from "three";
|
||||||
import * as TWEEN from "@tweenjs/tween.js";
|
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 { Trigger } from "./TriggerC";
|
||||||
import { TestSceneC } from "./TestSceneC";
|
import { TestSceneC } from "./TestSceneC";
|
||||||
import { LootC } from "./LootC";
|
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 { Box3, Object3D, Vector3 } from "three";
|
||||||
import { Body, Box, Quaternion, Sphere, Vec3 } from "cannon-es";
|
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 { AnimationAction, AnimationMixer, LoopOnce, Mesh, Object3D, Raycaster, Vector3 } from "three";
|
||||||
import { Body } from "cannon-es";
|
import { Body } from "cannon-es";
|
||||||
import { PhysicsBody, PhysicsLayer } from "./PhysicsC";
|
import { PhysicsBody, PhysicsLayer } from "./PhysicsC";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ThreeC } from "./ThreeC";
|
import { ThreeC } from "./ThreeC";
|
||||||
import { InputC } from "@24tools/playable_template";
|
import { InputC } from "@hitplay/playable_template";
|
||||||
import { Box3, Mesh, Object3D, Vector3 } from "three";
|
import { Box3, Mesh, Object3D, Vector3 } from "three";
|
||||||
import { Body, Box, Vec3 } from "cannon-es";
|
import { Body, Box, Vec3 } from "cannon-es";
|
||||||
import { PhysicsBody, PhysicsC, PhysicsLayer } from "./PhysicsC";
|
import { PhysicsBody, PhysicsC, PhysicsLayer } from "./PhysicsC";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ColorFormat } from "@24tools/ads_common";
|
import { ColorFormat } from "@hitplay/ads_common";
|
||||||
import { ThreeC_internal, Template } from "@24tools/playable_template";
|
import { ThreeC_internal, Template } from "@hitplay/playable_template";
|
||||||
import { AmbientLight, DirectionalLight } from "three";
|
import { AmbientLight, DirectionalLight } from "three";
|
||||||
import { Color } from "three/src/math/Color";
|
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 { Vector3 } from "three";
|
||||||
import type { Crate } from "../controllers/LootableC";
|
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.
|
* 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).
|
* 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)
|
* Subscribe: event.addDelegate(callback)
|
||||||
* Emit: event.Invoke(data)
|
* 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,
|
* 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");
|
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 { resources } from "./resources/resources";
|
||||||
import { resizeCb } from "./templateConfig/resizeCb";
|
import { resizeCb } from "./templateConfig/resizeCb";
|
||||||
import { gameRedirectedCb } from "./templateConfig/gameRedirectedCb";
|
import { gameRedirectedCb } from "./templateConfig/gameRedirectedCb";
|
||||||
@@ -7,7 +7,7 @@ import { beforeResourcesLoadedCb } from "./templateConfig/beforeResourcesLoadedC
|
|||||||
import { afterResourcesLoadedCb } from "./templateConfig/afterResourcesLoadedCb";
|
import { afterResourcesLoadedCb } from "./templateConfig/afterResourcesLoadedCb";
|
||||||
import { customFont } from "./fonts/customFont";
|
import { customFont } from "./fonts/customFont";
|
||||||
import { configUIParams } from "./configUIParams/configUIParams";
|
import { configUIParams } from "./configUIParams/configUIParams";
|
||||||
import { Template, Template3d } from "@24tools/playable_template";
|
import { Template, Template3d } from "@hitplay/playable_template";
|
||||||
import { firstClickCb } from "./templateConfig/firstClickCb";
|
import { firstClickCb } from "./templateConfig/firstClickCb";
|
||||||
|
|
||||||
Template.set24ADSControls();
|
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 woodIconUrl = ConvertToBase64WhenRelease("./Icon_Wood.webp");
|
||||||
const zombieHeadUrl = ConvertToBase64WhenRelease("./Icon_Zombie_Head.webp"); // invasion bar + death end-card
|
const zombieHeadUrl = ConvertToBase64WhenRelease("./Icon_Zombie_Head.webp"); // invasion bar + death end-card
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ConvertToBase64WhenRelease } from "@24tools/ads_common";
|
import { ConvertToBase64WhenRelease } from "@hitplay/ads_common";
|
||||||
import { ConvertResourceType, Template3d } from "@24tools/playable_template";
|
import { ConvertResourceType, Template3d } from "@hitplay/playable_template";
|
||||||
|
|
||||||
|
|
||||||
export const meshes : ConvertResourceType = {
|
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 { meshes } from "./meshes/meshes";
|
||||||
import { sounds } from "./sounds/sounds";
|
import { sounds } from "./sounds/sounds";
|
||||||
import { vfx_json } from "./vfx/vfx_json";1
|
import { vfx_json } from "./vfx/vfx_json";1
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// import { ConvertToBase64WhenRelease } from "@24tools/ads_common";
|
// import { ConvertToBase64WhenRelease } from "@hitplay/ads_common";
|
||||||
import { ConvertResourceType } from "@24tools/playable_template";
|
import { ConvertResourceType } from "@hitplay/playable_template";
|
||||||
|
|
||||||
|
|
||||||
export const sounds : ConvertResourceType = {
|
export const sounds : ConvertResourceType = {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { BatchedRenderer, QuarksLoader, QuarksUtil } from "three.quarks";
|
import { BatchedRenderer, QuarksLoader, QuarksUtil } from "three.quarks";
|
||||||
import { Object3D, Euler, Vector3 } from "three";
|
import { Object3D, Euler, Vector3 } from "three";
|
||||||
import { ResourcesC } from "@24tools/playable_template";
|
import { ResourcesC } from "@hitplay/playable_template";
|
||||||
import { ThreeC } from "../../controllers/ThreeC";
|
import { ThreeC } from "../../controllers/ThreeC";
|
||||||
import { GameLoop } from "../../core/GameLoop";
|
import { GameLoop } from "../../core/GameLoop";
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { ConvertToBase64WhenRelease } from "@24tools/ads_common";
|
import { ConvertToBase64WhenRelease } from "@hitplay/ads_common";
|
||||||
import { ConvertResourceType, Template3d } from "@24tools/playable_template";
|
import { ConvertResourceType, Template3d } from "@hitplay/playable_template";
|
||||||
import { QuarksLoader } from "three.quarks";
|
import { QuarksLoader } from "three.quarks";
|
||||||
|
|
||||||
export const vfx_json: ConvertResourceType = {
|
export const vfx_json: ConvertResourceType = {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import { PlayerC } from "../controllers/PlayerC";
|
|||||||
import { LootableC } from "../controllers/LootableC";
|
import { LootableC } from "../controllers/LootableC";
|
||||||
import { TriggerC } from "../controllers/TriggerC";
|
import { TriggerC } from "../controllers/TriggerC";
|
||||||
import { CombatC } from "../controllers/CombatC";
|
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 { LootC } from "../controllers/LootC";
|
||||||
import { PayZoneC } from "../controllers/PayZoneC";
|
import { PayZoneC } from "../controllers/PayZoneC";
|
||||||
import { HudC } from "../controllers/HudC";
|
import { HudC } from "../controllers/HudC";
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
ThreeC_internal,
|
ThreeC_internal,
|
||||||
FilterScene,
|
FilterScene,
|
||||||
InstallBanner,
|
InstallBanner,
|
||||||
} from "@24tools/playable_template";
|
} from "@hitplay/playable_template";
|
||||||
import { CameraC } from "../controllers/CameraC";
|
import { CameraC } from "../controllers/CameraC";
|
||||||
import { ThreeC } from "../controllers/ThreeC";
|
import { ThreeC } from "../controllers/ThreeC";
|
||||||
import { Color } from "three";
|
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 { CameraC } from "../controllers/CameraC";
|
||||||
import { FollowCameraC } from "../controllers/FollowCameraC";
|
import { FollowCameraC } from "../controllers/FollowCameraC";
|
||||||
|
|
||||||
|
|||||||
Vendored
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
import type { ConvertResourcesType, RedirectOptions, screenSize } from '@24tools/playable_template';
|
import type { ConvertResourcesType, RedirectOptions, screenSize } from '@hitplay/playable_template';
|
||||||
import { ConfigCreative } from '@24tools/ads_common';
|
import { ConfigCreative } from '@hitplay/ads_common';
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
interface Window extends Window {
|
interface Window extends Window {
|
||||||
|
|||||||
-4949
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
const { localExporter } = require("@24tools/ads_common");
|
const { localExporter } = require("@hitplay/ads_common");
|
||||||
const { resolve } = require("path");
|
const { resolve } = require("path");
|
||||||
|
|
||||||
localExporter(resolve(__dirname, "../")).parse(process.argv);
|
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");
|
const { resolve } = require("path");
|
||||||
|
|
||||||
templateUpdater(resolve(__dirname, "../"));
|
templateUpdater(resolve(__dirname, "../"));
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
const { createBuildFor24ADS } = require("@24tools/ads_common");
|
const { createBuildFor24ADS } = require("@hitplay/ads_common");
|
||||||
const { resolve } = require("path");
|
const { resolve } = require("path");
|
||||||
|
|
||||||
createBuildFor24ADS(resolve(__dirname, "../"));
|
createBuildFor24ADS(resolve(__dirname, "../"));
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import { defineConfigTemplate } from "@24tools/ads_common";
|
import { defineConfigTemplate } from "@hitplay/ads_common";
|
||||||
import { dependencies } from "./package.json";
|
import { dependencies } from "./package.json";
|
||||||
|
|
||||||
const rootDev = "src";
|
const rootDev = "src";
|
||||||
|
|||||||
Reference in New Issue
Block a user