This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-02 01:41:11 +08:00
parent 0fcc565ece
commit 996b0ecfac
8 changed files with 81 additions and 7 deletions

View File

@@ -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);

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "12edc337-e391-49c4-9769-33e0da08b510",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -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){
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "0dd9f996-99b0-40ad-ae32-d27f309ecbda",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -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)
}
}