卡牌技能位置
This commit is contained in:
@@ -8,6 +8,8 @@ import { VM } from "../../../../extensions/oops-plugin-framework/assets/libs/mod
|
||||
import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
|
||||
import { Initialize } from "../initialize/Initialize";
|
||||
import { GameMap } from "../map/GameMap";
|
||||
import { BoxSet } from "./config/BoxSet";
|
||||
|
||||
// import { Role } from "../role/Role";
|
||||
// import { data } from "../data/data";
|
||||
/** 游戏模块 */
|
||||
@@ -17,6 +19,17 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
initialize: Initialize = null!;
|
||||
/** 游戏地图 */
|
||||
map: GameMap = null!;
|
||||
player_buffs: any = {
|
||||
1:{x:-BoxSet.CSKILL_X,y:BoxSet.CSKILL_Y,eid:0},
|
||||
2:{x:-BoxSet.CSKILL_X+70,y:BoxSet.CSKILL_Y,eid:0},
|
||||
3:{x:-BoxSet.CSKILL_X+140,y:BoxSet.CSKILL_Y,eid:0},
|
||||
4:{x:-BoxSet.CSKILL_X+210,y:BoxSet.CSKILL_Y,eid:0},
|
||||
5:{x:-BoxSet.CSKILL_X,y:BoxSet.CSKILL_Y-70,eid:0},
|
||||
6:{x:-BoxSet.CSKILL_X+70,y:BoxSet.CSKILL_Y-70,eid:0},
|
||||
7:{x:-BoxSet.CSKILL_X+140,y:BoxSet.CSKILL_Y-70,eid:0},
|
||||
8:{x:-BoxSet.CSKILL_X+210,y:BoxSet.CSKILL_Y-70,eid:0},
|
||||
};
|
||||
monster_buffs: any = [];
|
||||
/** 游戏主角 */
|
||||
// own: Role = null;
|
||||
/** 游戏数据 */
|
||||
@@ -82,6 +95,7 @@ export class SingletonModuleComp extends ecs.Comp {
|
||||
vmAdd() {
|
||||
console.log("smc vm_data vmAdd");
|
||||
VM.add(this.vm_data, "data");
|
||||
|
||||
}
|
||||
reset() {
|
||||
for (var key in this.vm_data) {
|
||||
|
||||
@@ -26,6 +26,6 @@ export enum BoxSet {
|
||||
END_POINT = 360,
|
||||
//游戏地平线
|
||||
GAME_LINE = 0,
|
||||
CSKILL_X = 200,
|
||||
CSKILL_Y = 500,
|
||||
CSKILL_X = 280,
|
||||
CSKILL_Y = 420,
|
||||
}
|
||||
Reference in New Issue
Block a user