mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交
This commit is contained in:
@@ -10,6 +10,7 @@ import GBattleData from "../../data/GBattleData";
|
||||
import GAttributeData from "../base/values/GAttributeData";
|
||||
import JNFrameTime from "../../../../extensions/ngame/assets/ngame/sync/frame/game/time/JNFrameTime";
|
||||
import { GAPI } from "../../consts/GAPI";
|
||||
import { Node } from "cc";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
export interface GDungeonModeData{
|
||||
|
@@ -42,14 +42,7 @@ export enum GOnHookModeState{
|
||||
*/
|
||||
@ccclass('GOnHookMode')
|
||||
export default class GOnHookMode extends GNormalModeBase<{},{}>{
|
||||
|
||||
@property(Node)
|
||||
objects: Node = null;
|
||||
|
||||
get scene():Node{
|
||||
return this.objects;
|
||||
}
|
||||
|
||||
|
||||
//玩家宠物
|
||||
playerRoles: GRoleDefault[] = [];
|
||||
//敌方宠物
|
||||
|
@@ -27,7 +27,7 @@ export default class GDefaultMode<T,DT> extends GBaseMode<T,DT>{
|
||||
let scale = this.mapInfo.scale;
|
||||
this.map1.init(app.battleRes.getMap(mapId)[0],1,app.battleRes.getMap(mapId)[0].width * scale,app.battleRes.getMap(mapId)[0].height * scale);
|
||||
this.map2.init(app.battleRes.getMap(mapId)[1],1,app.battleRes.getMap(mapId)[1].width * scale,app.battleRes.getMap(mapId)[1].height * scale);
|
||||
this.map3.init(app.battleRes.getMap(mapId)[2],1,app.battleRes.getMap(mapId)[1].width * scale,1048 * scale);
|
||||
this.map3.init(app.battleRes.getMap(mapId)[2],1,app.battleRes.getMap(mapId)[1].width * scale,1280 * scale);
|
||||
|
||||
//更新地图
|
||||
this.onUpdateMap(0);
|
||||
|
@@ -10,6 +10,7 @@ import JNFrameTime from "../../../../../extensions/ngame/assets/ngame/sync/frame
|
||||
import { v3 } from "cc";
|
||||
import { GModeEvent } from "../GMode";
|
||||
import { app } from "../../../App";
|
||||
import { Node } from "cc";
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
|
||||
@@ -31,6 +32,13 @@ export default class GNormalModeBase<T,DT> extends GDefaultMode<T,DT>{
|
||||
@property(Prefab)
|
||||
enemyPrefab: Prefab = null;
|
||||
|
||||
@property(Node)
|
||||
objects: Node = null;
|
||||
|
||||
get scene():Node{
|
||||
return this.objects;
|
||||
}
|
||||
|
||||
//玩家宠物
|
||||
playerRoles: GRoleDefault[] = [];
|
||||
//敌方宠物
|
||||
@@ -58,7 +66,7 @@ export default class GNormalModeBase<T,DT> extends GDefaultMode<T,DT>{
|
||||
//调整相机
|
||||
this.camera.enabled = true;
|
||||
let camreaPos = this.camera.node.worldPosition;
|
||||
this.camera.node.worldPosition = v3(0,750,camreaPos.z)
|
||||
this.camera.node.worldPosition = v3(0,450,camreaPos.z)
|
||||
}
|
||||
|
||||
//获取配置
|
||||
|
Reference in New Issue
Block a user