gaesup-world 0.8.57 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/LICENSE.txt +21 -21
  2. package/dist/gaesup/component/active/character/index.d.ts +0 -1
  3. package/dist/gaesup/component/active/character/type.d.ts +0 -1
  4. package/dist/gaesup/component/inner/character/index.js +1 -1
  5. package/dist/gaesup/component/inner/common/InnerGroupRef.d.ts +2 -3
  6. package/dist/gaesup/component/inner/common/RigidbodyRef.d.ts +3 -4
  7. package/dist/gaesup/component/inner/common/partsGroupRef.js +3 -3
  8. package/dist/gaesup/component/inner/vehicle/collider.d.ts +0 -1
  9. package/dist/gaesup/component/passive/character/index.js +1 -1
  10. package/dist/gaesup/controller/context/index.d.ts +0 -1
  11. package/dist/gaesup/controller/type.d.ts +2 -2
  12. package/dist/gaesup/gaesupProps/index.d.ts +0 -1
  13. package/dist/gaesup/hooks/useGaesupController/index.d.ts +0 -1
  14. package/dist/gaesup/physics/character/queue.js +1 -0
  15. package/dist/gaesup/tools/MiniMap/index.d.ts +2 -0
  16. package/dist/gaesup/utils/ray.d.ts +3 -4
  17. package/dist/gaesup/utils/ray.js +1 -0
  18. package/dist/gaesup/world/context/index.d.ts +0 -1
  19. package/dist/gaesup/world/context/reducer.d.ts +1 -1
  20. package/dist/gaesup/world/context/type.d.ts +1 -1
  21. package/dist/gaesup/world/initalize/index.d.ts +1 -2
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.js +1 -1
  24. package/index.ts +1 -1
  25. package/package.json +40 -38
  26. package/dist/gaesup/controller/style.css +0 -48
  27. package/dist/gaesup/tools/gameboy/style.css +0 -92
  28. package/dist/gaesup/tools/gamepad/style.css +0 -61
  29. package/dist/gaesup/tools/joystick/style.css +0 -38
  30. package/dist/gaesup/tools/jumpPortal/style.css +0 -16
  31. package/dist/gaesup/tools/keyBoardToolTip/style.css +0 -24
  32. package/dist/gaesup/tools/miniMap/index.d.ts +0 -3
  33. package/dist/gaesup/tools/miniMap/style.css +0 -243
  34. package/dist/gaesup/tools/rideable/style.css +0 -16
  35. package/dist/gaesup/tools/zoomButton/style.css +0 -16
  36. package/dist/gaesup/world/style.css +0 -13
  37. /package/dist/gaesup/tools/{miniMap → MiniMap}/default.d.ts +0 -0
  38. /package/dist/gaesup/tools/{miniMap → MiniMap}/default.js +0 -0
  39. /package/dist/gaesup/tools/{miniMap → MiniMap}/index.js +0 -0
  40. /package/dist/gaesup/tools/{miniMap → MiniMap}/type.d.ts +0 -0
  41. /package/dist/gaesup/tools/{miniMap → MiniMap}/type.js +0 -0
package/LICENSE.txt CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 jigglypop
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2024 jigglypop
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { controllerInnerType, refsType } from "../../../controller/type";
3
2
  import { urlsType } from "../../../world/context/type";
4
3
  export declare function CharacterRef({ children, props, refs, urls, }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RigidBodyTypeString } from "@react-three/rapier";
3
2
  import * as THREE from "three";
4
3
  import { controllerOptionsType } from "../../../controller/type";
@@ -14,5 +14,5 @@ import { OuterGroupRef } from "../common/OuterGroupRef";
14
14
  import { RigidBodyRef } from "../common/RigidbodyRef";
15
15
  export function CharacterInnerRef(props) {
16
16
  var outerGroupRef = props.outerGroupRef;
17
- return (_jsx(OuterGroupRef, { ref: outerGroupRef, children: _jsx(RigidBodyRef, __assign({ name: "character", url: props.url, controllerOptions: props.controllerOptions, ref: props.rigidBodyRef, groundRay: props.groundRay, parts: props.parts }, props, { children: props.children })) }));
17
+ return (_jsx(OuterGroupRef, { ref: outerGroupRef, children: _jsx(RigidBodyRef, __assign({ name: "character", url: props.url, controllerOptions: props.controllerOptions, ref: props.rigidBodyRef, groundRay: props.groundRay }, props, { children: props.children })) }));
18
18
  }
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import * as THREE from "three";
3
2
  export declare const InnerGroupRef: import("react").ForwardRefExoticComponent<{
4
- children?: import("react").ReactNode;
5
- objectNode: THREE.Object3D<THREE.Object3DEventMap>;
3
+ children?: React.ReactNode;
4
+ objectNode: THREE.Object3D;
6
5
  animationRef: import("react").MutableRefObject<THREE.Object3D<THREE.Object3DEventMap>>;
7
6
  nodes: {
8
7
  [name: string]: THREE.Object3D<THREE.Object3DEventMap>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { RapierRigidBody } from "@react-three/rapier";
3
2
  import * as THREE from "three";
4
3
  export declare const RigidBodyRef: import("react").ForwardRefExoticComponent<{
@@ -12,7 +11,7 @@ export declare const RigidBodyRef: import("react").ForwardRefExoticComponent<{
12
11
  rigidBodyProps?: import("@react-three/rapier").RigidBodyProps;
13
12
  parts?: import("../../../controller/type").partsType;
14
13
  } & {
15
- children?: import("react").ReactNode;
14
+ children?: React.ReactNode;
16
15
  groundRay?: import("../../../controller/type").groundRayType;
17
16
  url: string;
18
17
  ridingUrl?: string;
@@ -31,7 +30,7 @@ export declare const RigidBodyRef: import("react").ForwardRefExoticComponent<{
31
30
  intangible: boolean;
32
31
  };
33
32
  rigidBodyProps?: import("@react-three/rapier").RigidBodyProps;
34
- outerGroupProps?: THREE.Group<THREE.Object3DEventMap>;
35
- innerGroupProps?: THREE.Group<THREE.Object3DEventMap>;
33
+ outerGroupProps?: THREE.Group;
34
+ innerGroupProps?: THREE.Group;
36
35
  parts?: import("../../../controller/type").partsType;
37
36
  } & import("./type").ridingType & import("../../passive/type").innerRefType & import("../../../controller/initialize/callback/type").callbackType & import("react").RefAttributes<RapierRigidBody>>;
@@ -1,11 +1,11 @@
1
1
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useAnimations, useGLTF } from "@react-three/drei";
3
3
  import { useGraph } from "@react-three/fiber";
4
+ import { isEqual } from "lodash";
4
5
  import { useMemo } from "react";
5
6
  import * as THREE from "three";
6
7
  import { SkeletonUtils } from "three-stdlib";
7
8
  import playActions from "../../../animation/actions";
8
- import { isEqual } from "../../../utils/getTag";
9
9
  export var PartsGroupRef = function (_a) {
10
10
  var url = _a.url, isActive = _a.isActive, componentType = _a.componentType, currentAnimation = _a.currentAnimation, color = _a.color;
11
11
  var _b = useGLTF(url), scene = _b.scene, animations = _b.animations;
@@ -24,7 +24,7 @@ export var PartsGroupRef = function (_a) {
24
24
  var node = nodes === null || nodes === void 0 ? void 0 : nodes[name];
25
25
  if (node instanceof THREE.SkinnedMesh) {
26
26
  if (isEqual("color", node) && color) {
27
- return (_jsx("skinnedMesh", { castShadow: true, receiveShadow: true, geometry: node.geometry, skeleton: node.skeleton, children: _jsx("meshStandardMaterial", { color: new THREE.Color(color) }) }, key));
27
+ return (_jsx("skinnedMesh", { castShadow: true, receiveShadow: true, geometry: node.geometry, skeleton: node.skeleton, children: _jsx("meshStandardMaterial", { color: color }) }, key));
28
28
  }
29
29
  else {
30
30
  return (_jsx("skinnedMesh", { castShadow: true, receiveShadow: true, material: node.material, geometry: node.geometry, skeleton: node.skeleton }, key));
@@ -34,7 +34,7 @@ export var PartsGroupRef = function (_a) {
34
34
  isEqual("color", node) &&
35
35
  color) {
36
36
  if (isEqual("color", node) && color) {
37
- return (_jsx("mesh", { castShadow: true, receiveShadow: true, geometry: node.geometry, children: _jsx("meshStandardMaterial", { color: new THREE.Color(color) }) }, key));
37
+ return (_jsx("mesh", { castShadow: true, receiveShadow: true, geometry: node.geometry, children: _jsx("meshStandardMaterial", { color: color }) }, key));
38
38
  }
39
39
  else {
40
40
  return (_jsx("mesh", { castShadow: true, receiveShadow: true, material: node.material, geometry: node.geometry }, key));
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Collider } from "@dimforge/rapier3d-compat";
3
2
  import * as THREE from "three";
4
3
  export declare const VehicleWheelCollider: import("react").ForwardRefExoticComponent<{
@@ -33,5 +33,5 @@ export function PassiveCharacter(props) {
33
33
  cameraTurn: 1,
34
34
  cameraPosition: 1,
35
35
  },
36
- }, position: props.position, rotation: props.rotation, groundRay: props.groundRay, currentAnimation: props.currentAnimation, parts: props.parts }, refs, props, { children: props.children })));
36
+ }, position: props.position, rotation: props.rotation, groundRay: props.groundRay, currentAnimation: props.currentAnimation }, refs, props, { children: props.children })));
37
37
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { dispatchType } from "../../utils/type";
3
2
  import { gaesupControllerType } from "./type";
4
3
  export declare const gaesupControllerDefault: {
@@ -1,4 +1,4 @@
1
- import { Collider, Ray, RayColliderToi } from "@dimforge/rapier3d-compat";
1
+ import { Collider, Ray } from "@dimforge/rapier3d-compat";
2
2
  import { GroupProps } from "@react-three/fiber";
3
3
  import { RapierRigidBody, RigidBodyProps } from "@react-three/rapier";
4
4
  import { ReactNode, RefObject } from "react";
@@ -31,7 +31,7 @@ export type jumpConstType = {
31
31
  export type jumpPropType = jumpInnerType & jumpConstType;
32
32
  export type rayType = {
33
33
  origin: THREE.Vector3;
34
- hit: RayColliderToi | null;
34
+ hit: any | null;
35
35
  rayCast: Ray | null;
36
36
  dir: THREE.Vector3;
37
37
  offset: THREE.Vector3;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare function GaeSupProps({ type, text, position, children, }: {
3
2
  type?: "normal" | "ground";
4
3
  text?: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { activeStateType, modeType, urlsType } from "../../world/context/type";
3
2
  export declare function useGaesupController(): gaesupPassivePropsType;
4
3
  export type gaesupPassivePropsType = {
@@ -29,6 +29,7 @@ export default function queue(prop) {
29
29
  if (action === "stop") {
30
30
  state.clock.stop();
31
31
  beforeCB(state);
32
+ console.log();
32
33
  setTimeout(function () {
33
34
  state.clock.start();
34
35
  afterCB_1(state);
@@ -0,0 +1,2 @@
1
+ import "./style.css";
2
+ export declare function MiniMap(props: any): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,6 @@
1
- import { Collider } from "@dimforge/rapier3d-compat";
2
1
  import { MutableRefObject } from "react";
3
2
  import { rayType } from "../controller/type";
4
3
  export declare const getRayHit: <T extends rayType>({ ray, ref, }: {
5
- ray: T;
6
- ref: MutableRefObject<Collider>;
7
- }) => import("@dimforge/rapier3d-compat").RayColliderToi;
4
+ ray: any;
5
+ ref: MutableRefObject<any>;
6
+ }) => any;
@@ -1,4 +1,5 @@
1
1
  import { useRapier } from "@react-three/rapier";
2
+ // @ts-ignore
2
3
  export var getRayHit = function (_a) {
3
4
  var ray = _a.ray, ref = _a.ref;
4
5
  var world = useRapier().world;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { dispatchType } from "../../utils/type";
3
2
  import { gaesupWorldContextType } from "./type";
4
3
  export declare const gaesupWorldDefault: gaesupWorldContextType;
@@ -8,7 +8,7 @@ export declare function gaesupWorldReducer(props: Partial<gaesupWorldContextType
8
8
  urls?: import("./type").urlsType;
9
9
  states?: import("./type").statesType;
10
10
  debug?: boolean;
11
- minimap?: import("../../tools/miniMap/type").minimapInnerType;
11
+ minimap?: import("../../tools/MiniMap/type").minimapInnerType;
12
12
  joystick?: import("../../tools/joystick/type").joyStickInnerType;
13
13
  control?: {
14
14
  [x: string]: boolean;
@@ -3,9 +3,9 @@ import { actionsType, refsType } from "../../controller/type";
3
3
  import { RootState } from "@react-three/fiber";
4
4
  import * as THREE from "three";
5
5
  import { rideableType } from "../../hooks/useRideable/type";
6
+ import { minimapInnerType } from "../../tools/MiniMap/type";
6
7
  import { joyStickInnerType } from "../../tools/joystick/type";
7
8
  import { keyboardMapType } from "../../tools/keyBoardToolTip/type";
8
- import { minimapInnerType } from "../../tools/miniMap/type";
9
9
  import { dispatchType } from "../../utils/type";
10
10
  export type gaesupCameraOptionDebugType = {
11
11
  maxDistance?: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { gaesupWorldPropsType } from "../type";
3
2
  export default function initGaesupWorld(props: gaesupWorldPropsType): {
4
3
  gaesupProps: {
@@ -8,7 +7,7 @@ export default function initGaesupWorld(props: gaesupWorldPropsType): {
8
7
  urls?: import("../context/type").urlsType;
9
8
  states?: import("../context/type").statesType;
10
9
  debug?: boolean;
11
- minimap?: import("../../tools/miniMap/type").minimapInnerType;
10
+ minimap?: import("../../tools/MiniMap/type").minimapInnerType;
12
11
  joystick?: import("../../tools/joystick/type").joyStickInnerType;
13
12
  control?: {
14
13
  [x: string]: boolean;
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@ export { GamePad } from "./gaesup/tools/gamepad";
10
10
  export { JoyStick } from "./gaesup/tools/joystick";
11
11
  export { JumpPortal } from "./gaesup/tools/jumpPortal";
12
12
  export { KeyBoardToolTip } from "./gaesup/tools/keyBoardToolTip";
13
- export { MiniMap } from "./gaesup/tools/miniMap";
13
+ export { MiniMap } from "./gaesup/tools/MiniMap";
14
14
  export { Rideable } from "./gaesup/tools/rideable";
15
15
  export { InnerHtml } from "./gaesup/utils/innerHtml";
16
16
  export { Elr, Qt, V3, V30, V31 } from "./gaesup/utils/vector";
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ export { GamePad } from "./gaesup/tools/gamepad";
10
10
  export { JoyStick } from "./gaesup/tools/joystick";
11
11
  export { JumpPortal } from "./gaesup/tools/jumpPortal";
12
12
  export { KeyBoardToolTip } from "./gaesup/tools/keyBoardToolTip";
13
- export { MiniMap } from "./gaesup/tools/miniMap";
13
+ export { MiniMap } from "./gaesup/tools/MiniMap";
14
14
  export { Rideable } from "./gaesup/tools/rideable";
15
15
  export { InnerHtml } from "./gaesup/utils/innerHtml";
16
16
  export { Elr, Qt, V3, V30, V31 } from "./gaesup/utils/vector";
package/index.ts CHANGED
@@ -26,5 +26,5 @@ export {
26
26
  useMovePoint,
27
27
  usePushKey,
28
28
  useRideable,
29
- useTeleport,
29
+ useTeleport
30
30
  } from "./dist";
package/package.json CHANGED
@@ -1,55 +1,68 @@
1
1
  {
2
2
  "name": "gaesup-world",
3
- "version": "0.8.57",
3
+ "version": "0.9.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "homepage": "https://jigglypop.github.io/gaesup-world/",
8
+ "scripts": {
9
+ "dev": "vite",
10
+ "preinstall": "npx only-allow pnpm",
11
+ "clean": "rimraf dist/",
12
+ "copy-files": "copyfiles -u 1 src/**/*.html src/**/*.css dist/",
13
+ "build": "vite build",
14
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
15
+ "preview": "vite preview",
16
+ "prepare": "rm -rf dist && mkdir dist && tsc -p tsconfig.build.json",
17
+ "predeploy": "vite build",
18
+ "deploy": "gh-pages -d dist"
19
+ },
8
20
  "dependencies": {
9
- "@dimforge/rapier3d": "^0.12.0",
10
- "@dimforge/rapier3d-compat": "^0.12.0",
21
+ "@dimforge/rapier3d": "^0.14.0",
22
+ "@dimforge/rapier3d-compat": "^0.14.0",
11
23
  "@react-icons/all-files": "^4.1.0",
12
- "@react-three/drei": "9.105.4",
13
- "@react-three/fiber": "8.16.2",
24
+ "@react-three/drei": "9.111.2",
25
+ "@react-three/fiber": "8.17.5",
14
26
  "@react-three/postprocessing": "^2.16.2",
15
- "@react-three/rapier": "^1.3.1",
16
- "@types/lodash": "^4.17.0",
17
- "@types/three": "^0.164.0",
27
+ "@react-three/rapier": "^1.4.0",
28
+ "@types/lodash": "^4.17.7",
29
+ "@types/three": "^0.167.1",
18
30
  "gh-pages": "^6.1.1",
19
- "jotai": "^2.8.0",
31
+ "jotai": "^2.9.3",
20
32
  "leva": "0.9.35",
21
33
  "lodash": "^4.17.21",
34
+ "lru-cache": "^11.0.0",
22
35
  "node-fetch": "3.3.2",
23
36
  "react": "^18.3.1",
24
37
  "react-device-detect": "^2.2.3",
25
38
  "react-dom": "^18.3.1",
26
- "react-icons": "^5.1.0",
39
+ "react-icons": "^5.3.0",
27
40
  "react-use-refs": "^1.0.1",
28
- "three": "^0.164.1",
29
- "three-stdlib": "^2.29.7"
41
+ "three": "^0.167.1",
42
+ "three-stdlib": "^2.32.2"
30
43
  },
31
44
  "devDependencies": {
32
- "@types/react": "^18.3.1",
45
+ "@types/react": "^18.3.3",
33
46
  "@types/react-dom": "^18.3.0",
34
- "@vanilla-extract/css": "^1.14.2",
35
- "@vanilla-extract/dynamic": "^2.1.0",
36
- "@vanilla-extract/recipes": "^0.5.2",
37
- "@vanilla-extract/sprinkles": "^1.6.1",
38
- "@vanilla-extract/vite-plugin": "^4.0.7",
39
- "@vitejs/plugin-react-swc": "^3.6.0",
47
+ "@vanilla-extract/css": "^1.15.4",
48
+ "@vanilla-extract/dynamic": "^2.1.2",
49
+ "@vanilla-extract/recipes": "^0.5.5",
50
+ "@vanilla-extract/sprinkles": "^1.6.3",
51
+ "@vanilla-extract/vite-plugin": "^4.0.14",
52
+ "@vitejs/plugin-react-swc": "^3.7.0",
40
53
  "copyfiles": "^2.4.1",
41
- "css-loader": "^7.1.1",
54
+ "css-loader": "^7.1.2",
42
55
  "path": "^0.12.7",
43
- "prettier": "^3.2.5",
44
- "rimraf": "^5.0.5",
45
- "typescript": "^5.4.5",
46
- "vite": "^5.2.10",
56
+ "prettier": "^3.3.3",
57
+ "rimraf": "^6.0.1",
58
+ "typescript": "^5.5.4",
59
+ "vite": "^5.4.1",
47
60
  "vite-plugin-svgr": "^4.2.0"
48
61
  },
49
62
  "description": "Web 3D Character Controller and World Platform Library",
50
63
  "repository": {
51
64
  "type": "git",
52
- "url": "git+https://github.com/jigglypop/../../../src.git"
65
+ "url": "https://github.com/jigglypop/gaesup-world.git"
53
66
  },
54
67
  "keywords": [
55
68
  "three.js",
@@ -62,17 +75,6 @@
62
75
  "author": "jigglypop",
63
76
  "license": "MIT",
64
77
  "bugs": {
65
- "url": "https://github.com/jigglypop/../../../src/issues"
66
- },
67
- "scripts": {
68
- "dev": "vite",
69
- "preinstall": "npx only-allow pnpm",
70
- "clean": "rimraf dist/",
71
- "copy-files": "copyfiles -u 1 src/**/*.html src/**/*.css dist/",
72
- "build": "vite build",
73
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
74
- "preview": "vite preview",
75
- "predeploy": "vite build",
76
- "deploy": "gh-pages -d dist"
78
+ "url": "https://github.com/jigglypop/gaesup-world.git/issues"
77
79
  }
78
- }
80
+ }
@@ -1,48 +0,0 @@
1
- @import url("https://rsms.me/inter/inter.css");
2
-
3
- * {
4
- box-sizing: border-box;
5
- }
6
-
7
- html,
8
- body,
9
- #root {
10
- width: 100%;
11
- height: 100%;
12
- margin: 0;
13
- padding: 0;
14
- }
15
-
16
- body {
17
- background: #f0f0f0;
18
- font-family: inter;
19
- }
20
-
21
- .container {
22
- position: relative;
23
- width: 100%;
24
- height: 100%;
25
- }
26
-
27
- .canvas {
28
- pointer-events: none;
29
- position: absolute !important;
30
- top: 0px;
31
- left: 0px;
32
- width: 100vw;
33
- height: 100vh;
34
- }
35
-
36
- .view1 {
37
- position: absolute;
38
- width: 100%;
39
- height: 100%;
40
- }
41
-
42
- .view2 {
43
- position: absolute;
44
- top: 2em;
45
- right: 2em;
46
- width: calc(250px - 2em);
47
- height: calc(250px - 2em);
48
- }
@@ -1,92 +0,0 @@
1
- body {
2
- -webkit-touch-callout: none;
3
- }
4
-
5
- .gameboy {
6
- display: grid;
7
- align-items: center;
8
- justify-content: center;
9
- border-radius: 50%;
10
- grid-template-columns: 1fr 1fr 1fr;
11
- grid-template-rows: 1fr 1fr 1fr;
12
- background: rgba(0, 0, 0, 0.5);
13
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
14
- }
15
-
16
- .gameboy .gameboy-button {
17
- display: flex;
18
- align-items: center;
19
- justify-content: center;
20
- text-align: center;
21
- position: relative;
22
- backdrop-filter: blur(2rem);
23
- -webkit-backdrop-filter: blur(2rem);
24
- all: unset;
25
- width: 3rem;
26
- height: 3rem;
27
- margin: 0.3rem;
28
- border-radius: 50%;
29
- background: linear-gradient(
30
- 68.4deg,
31
- rgba(99, 251, 215, 1) -0.4%,
32
- rgba(5, 222, 250, 1) 100.2%
33
- );
34
- box-shadow: 0 0 10px #78ffd6;
35
- font-size: 1.6rem;
36
- color: black;
37
- text-shadow: 0 0 10px black;
38
- cursor: pointer;
39
- transition: all 0.3s ease-in;
40
- }
41
-
42
- .gameboy-button.up {
43
- grid-row: 1/2;
44
- grid-column: 2/3;
45
- background: linear-gradient(
46
- 68.4deg,
47
- rgba(99, 251, 215, 1) -0.4%,
48
- rgba(5, 222, 250, 1) 100.2%
49
- );
50
- box-shadow: 0 0 10px #78ffd6;
51
- }
52
-
53
- .gameboy-button.left {
54
- grid-row: 2/3;
55
- grid-column: 1/2;
56
- background: linear-gradient(
57
- 68.4deg,
58
- rgba(176, 255, 237, 1) -0.4%,
59
- rgba(161, 244, 255, 1) 100.2%
60
- );
61
- box-shadow: 0 0 10px rgba(176, 255, 237, 1);
62
- }
63
-
64
- .gameboy-button.down {
65
- grid-row: 3/4;
66
- grid-column: 2/3;
67
- background: linear-gradient(
68
- 68.4deg,
69
- rgba(99, 251, 215, 1) -0.4%,
70
- rgba(5, 222, 250, 1) 100.2%
71
- );
72
- box-shadow: 0 0 10px #78ffd6;
73
- }
74
-
75
- .gameboy-button.right {
76
- grid-row: 2/3;
77
- grid-column: 3/4;
78
- background: linear-gradient(
79
- 68.4deg,
80
- rgba(176, 255, 237, 1) -0.4%,
81
- rgba(161, 244, 255, 1) 100.2%
82
- );
83
- box-shadow: 0 0 10px rgba(176, 255, 237, 1);
84
- }
85
-
86
- .gameboy * {
87
- -webkit-touch-callout: none;
88
- -webkit-user-select: none;
89
- -moz-user-select: none;
90
- -ms-user-select: none;
91
- user-select: none;
92
- }
@@ -1,61 +0,0 @@
1
- .gamePad {
2
- display: grid;
3
- align-items: center;
4
- justify-content: center;
5
- grid-template-columns: repeat(3, 1fr);
6
- grid-template-rows: repeat(3, 1fr);
7
- }
8
-
9
- .padButton {
10
- display: flex;
11
- justify-content: center;
12
- align-items: center;
13
- position: relative;
14
- width: 5rem;
15
- height: 5rem;
16
- border-radius: 50%;
17
- font-size: 1rem;
18
- background-color: rgba(0, 0, 0, 0.5);
19
- color: white;
20
- box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.5);
21
- cursor: pointer;
22
- transition: all 0.3s ease-in;
23
- margin: 0.5rem;
24
- }
25
-
26
- .padButton:hover {
27
- box-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
28
- }
29
-
30
- .padButton::after {
31
- content: "";
32
- position: absolute;
33
- width: 4rem;
34
- height: 4rem;
35
- border-radius: 50%;
36
- background: rgba(0, 0, 0, 0.2);
37
- z-index: 100000;
38
- }
39
-
40
- .padButton.isClicked {
41
- background: radial-gradient(
42
- circle at center,
43
- rgba(245, 177, 97, 1) 0.4%,
44
- rgba(236, 54, 110, 1) 100.2%
45
- );
46
- box-shadow: 0 0 1rem rgba(245, 177, 97, 1);
47
- color: black;
48
- transition: all 0.3s ease-in;
49
- }
50
-
51
- .padButton.isClicked:hover {
52
- box-shadow: 0 0 2rem rgba(245, 177, 97, 1);
53
- }
54
-
55
- .gamePad * {
56
- -webkit-touch-callout: none;
57
- -webkit-user-select: none;
58
- -moz-user-select: none;
59
- -ms-user-select: none;
60
- user-select: none;
61
- }
@@ -1,38 +0,0 @@
1
- .joystick {
2
- display: flex;
3
- align-items: center;
4
- justify-content: center;
5
- text-align: center;
6
- width: 12rem;
7
- height: 12rem;
8
- overflow: auto;
9
- border-radius: 50%;
10
- background: rgba(0, 0, 0, 0.5);
11
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
12
- }
13
-
14
- /* .joystick::after {
15
- content: "";
16
- width: 10rem;
17
- height: 10rem;
18
- border-radius: 50%;
19
- background: rgba(0, 0, 0, 0.2);
20
- } */
21
-
22
- .joystickBall {
23
- width: 5rem;
24
- height: 5rem;
25
- transform: translate(-50%, -50%);
26
- border-radius: 50%;
27
- background: rgba(0, 0, 0, 0.5);
28
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
29
- cursor: pointer;
30
- }
31
-
32
- .joystick * {
33
- -webkit-touch-callout: none;
34
- -webkit-user-select: none;
35
- -moz-user-select: none;
36
- -ms-user-select: none;
37
- user-select: none;
38
- }
@@ -1,16 +0,0 @@
1
- .jumpPortal {
2
- display: flex;
3
- justify-content: center;
4
- align-items: center;
5
- text-align: center;
6
- margin: 1rem;
7
- font-size: 0.8rem;
8
- border-radius: 50%;
9
- width: 5rem;
10
- height: 5rem;
11
- color: white;
12
- background: rgba(0, 0, 0, 0.6);
13
- box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.6);
14
- transition: all 0.2s ease-in;
15
- cursor: pointer;
16
- }
@@ -1,24 +0,0 @@
1
- .keyBoardToolInner {
2
- display: grid;
3
- justify-content: center;
4
- align-items: center;
5
- grid-template-columns: repeat(20, 2.5rem);
6
- grid-template-rows: repeat(10, 2.5rem);
7
- gap: 0.5rem;
8
- width: 40rem;
9
- height: 20rem;
10
- }
11
-
12
- .keyCap {
13
- display: flex;
14
- justify-content: center;
15
- align-items: center;
16
- font-size: 0.8rem;
17
- border-radius: 5px;
18
- width: 100%;
19
- height: 100%;
20
- color: white;
21
- background: rgba(0, 0, 0, 0.2);
22
- box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
23
- transition: all 0.2s ease-in;
24
- }
@@ -1,3 +0,0 @@
1
- import "./style.css";
2
- import { minimapType } from "./type";
3
- export declare function MiniMap(props: minimapType): import("react/jsx-runtime").JSX.Element;
@@ -1,243 +0,0 @@
1
- @font-face {
2
- font-family: "Open Sans", sans-serif;
3
- src: local("Open Sans"),
4
- url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap");
5
- }
6
-
7
- @keyframes pulseWhite {
8
- 0% {
9
- box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
10
- opacity: 1;
11
- }
12
- 70% {
13
- box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
14
- opacity: 0.7;
15
- }
16
- 100% {
17
- box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
18
- opacity: 1;
19
- }
20
- }
21
-
22
- /* avatar style */
23
- .avatar {
24
- position: absolute;
25
- display: flex;
26
- align-items: center;
27
- justify-content: center;
28
- text-align: center;
29
- top: 50%;
30
- left: 50%;
31
- transform: translate(-50%, -50%);
32
- width: 2rem;
33
- height: 2rem;
34
- border-radius: 50%;
35
- background: rgba(5, 222, 250, 1);
36
- box-shadow: 0 0 10px rgba(5, 222, 250, 1);
37
- border: 2px solid transparent;
38
- object-fit: cover;
39
- z-index: 100;
40
- animation: pulseWhite 2s infinite;
41
- }
42
-
43
- /* plusMinus style */
44
- .plusMinus {
45
- position: relative;
46
- display: flex;
47
- justify-content: center;
48
- align-items: center;
49
- width: 2rem;
50
- height: 2rem;
51
- border-radius: 50%;
52
- background: rgba(0, 0, 0, 0.5);
53
- box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
54
- transition: all 0.5s ease-in;
55
- cursor: pointer;
56
- border: 2px solid transparent;
57
- }
58
-
59
- .plusMinus:hover {
60
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
61
- }
62
-
63
- /* border style */
64
- .border {
65
- width: 4rem;
66
- height: 4rem;
67
- border-radius: 50%;
68
- box-shadow: 0 0 0 0 rgba(255, 255, 255, 1);
69
- transform: scale(1);
70
- animation: pulseWhite 2s infinite;
71
- cursor: pointer;
72
- transition: all 0.5s ease-in;
73
- }
74
-
75
- .border:hover {
76
- transform: scale(1.1);
77
- }
78
-
79
- /* minimap style */
80
- .minimap {
81
- margin: 1rem;
82
- border-radius: 50%;
83
- background: rgba(0, 0, 0, 0.6);
84
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
85
- backdrop-filter: blur(1rem);
86
- -webkit-backdrop-filter: blur(1rem);
87
- width: 18rem;
88
- height: 18rem;
89
- border: 4px solid rgba(0, 0, 0, 0.5);
90
- overflow: hidden;
91
- }
92
-
93
- @media (max-width: 1024px) {
94
- .minimap {
95
- width: 17rem;
96
- height: 17rem;
97
- }
98
- }
99
-
100
- @media (max-width: 768px) {
101
- .minimap {
102
- width: 16rem;
103
- height: 16rem;
104
- }
105
- }
106
-
107
- /* minimapOuter style */
108
- .minimapOuter {
109
- position: absolute;
110
- display: flex;
111
- align-items: center;
112
- justify-content: center;
113
- text-align: center;
114
- width: 18rem;
115
- height: 18rem;
116
- overflow: hidden;
117
- }
118
-
119
- /* minimapInner style */
120
- .minimapInner {
121
- position: relative;
122
- display: flex;
123
- top: 50%;
124
- left: 50%;
125
- width: 18rem;
126
- height: 18rem;
127
- transform-origin: 50% 50%;
128
- border-radius: 50%;
129
- overflow: hidden;
130
- }
131
-
132
- @media (max-width: 1024px) {
133
- .minimapInner {
134
- width: 17rem;
135
- height: 17rem;
136
- }
137
- }
138
-
139
- @media (max-width: 768px) {
140
- .minimapInner {
141
- width: 16rem;
142
- height: 16rem;
143
- }
144
- }
145
- /* text style */
146
- .text {
147
- position: relative;
148
- font-size: 1rem;
149
- color: black;
150
- padding: 0.5rem;
151
- border-radius: 0.5rem;
152
- background: rgba(255, 255, 255, 0.5);
153
- box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
154
- z-index: 3;
155
- }
156
-
157
- /* scale style */
158
- .scale {
159
- position: absolute;
160
- width: 13rem;
161
- bottom: -5rem;
162
- left: 50%;
163
- transform: translateX(-50%);
164
- display: flex;
165
- align-items: center;
166
- justify-content: space-between;
167
- text-align: center;
168
- font-size: 1.2rem;
169
- color: white;
170
- text-shadow: 0 0 10px black;
171
- padding: 0.5rem;
172
- border-radius: 0.5rem;
173
- box-shadow: 0 0 10px solid black;
174
- background: rgba(0, 0, 0, 0.5);
175
- z-index: 3;
176
- -webkit-backdrop-filter: blur(2rem);
177
- backdrop-filter: blur(2rem);
178
- font-family: "Open Sans", sans-serif;
179
- font-weight: 300;
180
- }
181
-
182
- /* minimapObject style */
183
- .minimapObject {
184
- position: absolute;
185
- display: flex;
186
- align-items: center;
187
- justify-content: center;
188
- text-align: center;
189
- border-radius: 2px;
190
- background: rgba(0, 0, 0, 0.3);
191
-
192
- /* border: 2px solid rgba(88, 88, 88, 0.5); */
193
- }
194
-
195
- /* minimapObject style */
196
- .imageObject {
197
- position: absolute;
198
- display: flex;
199
- align-items: center;
200
- justify-content: center;
201
- text-align: center;
202
- background:
203
- linear-gradient(to bottom, transparent 95%, rgba(0, 0, 0, 0.2) 20%) 0 0 /
204
- 100% 40px repeat-y,
205
- linear-gradient(to right, transparent 38px, rgba(0, 0, 0, 0.2) 38px) 0 0 /
206
- 40px 100% repeat-x transparent;
207
- }
208
-
209
- .textObject {
210
- position: absolute;
211
- display: flex;
212
- align-items: center;
213
- justify-content: center;
214
- text-align: center;
215
- /* border: 2px solid rgba(88, 88, 88, 0.5); */
216
- }
217
-
218
- .direction {
219
- position: absolute;
220
- color: white;
221
- font-size: 1.5rem;
222
- z-index: 2000;
223
- }
224
-
225
- .east {
226
- top: 50%;
227
- right: 0;
228
- }
229
-
230
- .west {
231
- top: 50%;
232
- left: 0;
233
- }
234
-
235
- .north {
236
- bottom: 0;
237
- left: 50%;
238
- }
239
-
240
- .south {
241
- top: 0;
242
- left: 50%;
243
- }
@@ -1,16 +0,0 @@
1
- .ridable {
2
- display: flex;
3
- justify-content: center;
4
- align-items: center;
5
- text-align: center;
6
- margin: 1rem;
7
- font-size: 0.8rem;
8
- border-radius: 50%;
9
- width: 5rem;
10
- height: 5rem;
11
- color: white;
12
- background: rgba(0, 0, 0, 0.6);
13
- box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.6);
14
- transition: all 0.2s ease-in;
15
- cursor: pointer;
16
- }
@@ -1,16 +0,0 @@
1
- .zoomButton {
2
- display: flex;
3
- justify-content: center;
4
- align-items: center;
5
- text-align: center;
6
- margin: 1rem;
7
- font-size: 1.2rem;
8
- border-radius: 50%;
9
- width: 5rem;
10
- height: 5rem;
11
- color: white;
12
- background: rgba(0, 0, 0, 0.6);
13
- box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.6);
14
- transition: all 0.2s ease-in;
15
- cursor: pointer;
16
- }
@@ -1,13 +0,0 @@
1
- #leva__root > * {
2
- top: 25rem;
3
- left: 1rem;
4
- width: 30rem;
5
- }
6
-
7
- @media (max-width: 1024px) {
8
- #leva__root > * {
9
- top: 25rem;
10
- left: 1rem;
11
- width: 25rem;
12
- }
13
- }
File without changes
File without changes