mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 11:24:46 +00:00
提交
This commit is contained in:
parent
24a498a712
commit
f99f10e237
@ -32,8 +32,8 @@ import { Component } from "cc";
|
|||||||
// let WsPath = `ws://localhost:8080/websocket`
|
// let WsPath = `ws://localhost:8080/websocket`
|
||||||
// let APIPath = `http://192.168.1.23:8080`
|
// let APIPath = `http://192.168.1.23:8080`
|
||||||
// let WsPath = `ws://192.168.1.23:8080/websocket`
|
// let WsPath = `ws://192.168.1.23:8080/websocket`
|
||||||
let APIPath = `http://192.168.0.128:8080`
|
let APIPath = `http://192.168.0.125:8080`
|
||||||
let WsPath = `ws://192.168.0.128:8080/websocket`
|
let WsPath = `ws://192.168.0.125:8080/websocket`
|
||||||
// let APIPath = `https://api.pet.jisol.cn`
|
// let APIPath = `https://api.pet.jisol.cn`
|
||||||
// let WsPath = `wss://api.pet.jisol.cn/websocket`
|
// let WsPath = `wss://api.pet.jisol.cn/websocket`
|
||||||
|
|
||||||
|
@ -2,14 +2,17 @@ import { Vec2 } from "cc";
|
|||||||
import GDefaultMode from "./default/GDefaultMode";
|
import GDefaultMode from "./default/GDefaultMode";
|
||||||
import { TB } from "../../../resources/config/data/schema";
|
import { TB } from "../../../resources/config/data/schema";
|
||||||
import GRoleDefault from "../base/role/GRoleDefault";
|
import GRoleDefault from "../base/role/GRoleDefault";
|
||||||
|
import { _decorator } from "cc";
|
||||||
|
const { ccclass, property } = _decorator;
|
||||||
|
|
||||||
//阵营守护
|
//阵营守护
|
||||||
//玩家派兵攻击对方阵营 游戏参考
|
//玩家派兵攻击对方阵营 游戏参考
|
||||||
|
@ccclass('GCampGuardianMode')
|
||||||
export default class GCampGuardianMode extends GDefaultMode<{},{}>{
|
export default class GCampGuardianMode extends GDefaultMode<{},{}>{
|
||||||
|
|
||||||
//玩家水晶位置
|
//玩家水晶位置
|
||||||
playerPos: Vec2 = new Vec2(-400,0);
|
playerPos: Vec2 = new Vec2(-400,0);
|
||||||
//敌方位置
|
//敌方水晶位置
|
||||||
enemyPos: Vec2 = new Vec2(400,0);
|
enemyPos: Vec2 = new Vec2(400,0);
|
||||||
|
|
||||||
|
|
||||||
@ -19,33 +22,35 @@ export default class GCampGuardianMode extends GDefaultMode<{},{}>{
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// //生成宠物
|
// //生成宠物
|
||||||
// onGenRole(info:TB.TbGRole):GRoleDefault {
|
// onGenRole(info:TB.TbGRole):GRoleDefault {
|
||||||
|
|
||||||
// // let tactical = this.getInfo(type).tactical;
|
// let tactical = this.getInfo(type).tactical;
|
||||||
// // let pos:Vec2 = this.getInfo(type).tactical.getPosition(index);
|
// let pos:Vec2 = this.getInfo(type).tactical.getPosition(index);
|
||||||
// // if(!pos) return;
|
// if(!pos) return;
|
||||||
// // let role = instantiate(this.rolePrefab);
|
// let role = instantiate(this.rolePrefab);
|
||||||
|
|
||||||
// // let entity = role.getComponent(GRoleDefault);
|
// let entity = role.getComponent(GRoleDefault);
|
||||||
// // //初始化
|
// //初始化
|
||||||
// // entity.onInit(type,info,tactical,index);
|
// entity.onInit(type,info,tactical,index);
|
||||||
|
|
||||||
// // //绑定寻敌
|
// //绑定寻敌
|
||||||
// // entity.onQueryEunmy = () => {
|
// entity.onQueryEunmy = () => {
|
||||||
// // return this.getEnumy(entity,type);
|
// return this.getEnumy(entity,type);
|
||||||
// // }
|
// }
|
||||||
|
|
||||||
// // //绑定死亡回调
|
// //绑定死亡回调
|
||||||
// // entity.addKillBackEvent(this.onRoleKillBack.bind(this))
|
// entity.addKillBackEvent(this.onRoleKillBack.bind(this))
|
||||||
// // //绑定受击回调
|
// //绑定受击回调
|
||||||
// // entity.addHitCallback(this.onHitBack.bind(this));
|
// entity.addHitCallback(this.onHitBack.bind(this));
|
||||||
|
|
||||||
// // this.addGObject(entity,tactical.getPosition(index));
|
// this.addGObject(entity,tactical.getPosition(index));
|
||||||
|
|
||||||
// // this.getOnesRole(type).push(entity);
|
// this.getOnesRole(type).push(entity);
|
||||||
|
|
||||||
// // return entity;
|
// return entity;
|
||||||
|
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user