20 lines
578 B
TypeScript
20 lines
578 B
TypeScript
/** 游戏通用常量配置 */
|
|
export const GameConstants = {
|
|
/** Spine资源路径 */
|
|
SPINE: {
|
|
HERO: "game/heros/heros", // 英雄资源根目录
|
|
// MONSTER: "game/heros/monster" // 怪物资源根目录
|
|
},
|
|
/** 英雄预制体路径 */
|
|
HERO_PREFAB_PATH: "game/hero/prefabs/",
|
|
/** 默认英雄缩放 */
|
|
DEFAULT_SCALE: 1,
|
|
/** 游戏层定义 */
|
|
LAYERS: {
|
|
HERO: 10,
|
|
MONSTER: 20
|
|
}
|
|
} as const;
|
|
|
|
export const MONSTER_PREFAB_PATH = "game/monster/prefab/";
|
|
export const SKILL_EFFECT_PATH = "game/effect/";
|