mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
更新无限地图
This commit is contained in:
@@ -8,13 +8,14 @@ import GButtleBase from "../bullet/GButtleBase";
|
||||
import { GFSMAnimBase } from "../fsm/GFSMAnimBase";
|
||||
import GFSMBase from "../fsm/GFSMBase";
|
||||
import GRoleDefault from "../role/GRoleDefault";
|
||||
import GNode from "../common/GNode";
|
||||
|
||||
//攻击子弹类
|
||||
export class GAttackBullet{
|
||||
|
||||
//创建子弹
|
||||
static create<T extends GButtleBase<{}>>(GClass:{new():T},data:{}):T{
|
||||
let bulletNode = new Node();
|
||||
let bulletNode = GNode.create();
|
||||
bulletNode.addComponent(UITransform);
|
||||
let bullet = bulletNode.addComponent(GClass);
|
||||
bullet.setData(data);
|
||||
|
@@ -8,7 +8,7 @@ import { v3 } from "cc";
|
||||
import { bezier } from "cc";
|
||||
import { v2 } from "cc";
|
||||
import { Vec2 } from "cc";
|
||||
import GEffectUtil from "../../effect/GEffectUtil";
|
||||
import GEffectUtil from "../common/GEffectUtil";
|
||||
import { TableGRoleAttackEffect } from "../../../../resources/config/ts/TableGRoleAttackEffect";
|
||||
import GDetection from "../common/GDetection";
|
||||
import { rect } from "cc";
|
||||
@@ -25,9 +25,9 @@ export default class GAttackParabolicRemote implements GAttackBase{
|
||||
let enemy = role.fsm.enemy;
|
||||
if(!enemy) return;
|
||||
|
||||
let image:SpriteFrame = app.role.bullets[info.attackArgs[0]];
|
||||
let image:SpriteFrame = app.battleRes.bullets[info.attackArgs[0]];
|
||||
let bang = {
|
||||
ske: app.role.effects[info.attackArgs[1]],
|
||||
ske: app.battleRes.effects[info.attackArgs[1]],
|
||||
info: TableGRoleAttackEffect.getConfig(info.attackArgs[1])
|
||||
};
|
||||
let bone = role.spine.findBone(info.attackArgs[2]);
|
||||
|
Reference in New Issue
Block a user