mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
update
This commit is contained in:
@@ -70,7 +70,7 @@ export default class GAttackParabolicRemote implements GAttackBase{
|
||||
.onComplete(() => {
|
||||
|
||||
//生成爆炸特效
|
||||
let effect = GEffectUtil.create(bang.ske);
|
||||
let effect = GEffectUtil.createOne(bang.ske);
|
||||
role.mode.addGNode(effect.node,bullet.node.worldPosition);
|
||||
//获取默认动画
|
||||
effect.setAnimation(0,bang.info.animation,false);
|
||||
|
9
JisolGameCocos/assets/script/battle/base/common/map.meta
Normal file
9
JisolGameCocos/assets/script/battle/base/common/map.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "12edc337-e391-49c4-9769-33e0da08b510",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@@ -0,0 +1,42 @@
|
||||
import { _decorator, Component, Node } from 'cc';
|
||||
import { JNGSyncBase } from '../../../../App';
|
||||
import { SpriteFrame } from 'cc';
|
||||
import { Camera } from 'cc';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
/**
|
||||
* 循环地图
|
||||
*/
|
||||
|
||||
@ccclass('GMapLoop')
|
||||
export class GMapLoop extends JNGSyncBase<{}> {
|
||||
|
||||
map:SpriteFrame; //地图
|
||||
//地图重复次数
|
||||
repeat:number = 1;
|
||||
//一块的地图宽度
|
||||
mapWidth:number = 100;
|
||||
|
||||
//是否初始化
|
||||
isInit:boolean = false;
|
||||
//世界坐标Y轴
|
||||
worldY:number = 0;
|
||||
|
||||
|
||||
init(map:SpriteFrame,repeat:number){
|
||||
this.map = map;
|
||||
this.isInit = true;
|
||||
this.repeat = repeat;
|
||||
this.mapWidth = map.width;
|
||||
}
|
||||
|
||||
//更新地图(世界坐标X)
|
||||
UpdateMap(x:number){
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "0dd9f996-99b0-40ad-ae32-d27f309ecbda",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
@@ -14,6 +14,7 @@ import { GTactical } from "../../entity/GTactical";
|
||||
import { Vec2 } from "cc";
|
||||
import { GSkill, GSkillBase, GSkillState } from "../../skill/GSkill";
|
||||
import { TableGRoleSkill } from "../../../../resources/config/ts/TableGRoleSkill";
|
||||
import JNFrameTime from "../../../../../extensions/ngame/assets/ngame/sync/frame/game/time/JNFrameTime";
|
||||
const { property,ccclass } = _decorator;
|
||||
|
||||
//默认角色类
|
||||
@@ -42,6 +43,10 @@ export default class GRoleDefault extends GRoleBase<{}>{
|
||||
if(this.isDie){
|
||||
//死亡回调
|
||||
this.killBack.forEach(fun => fun(this));
|
||||
//死亡销毁
|
||||
JNFrameTime.getInstance().setTimeout(() => {
|
||||
this.node.destroy()
|
||||
},3000)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user