更新无限地图

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-03 02:57:38 +08:00
parent 996b0ecfac
commit ca5fa0cc92
504 changed files with 2213 additions and 359 deletions

View File

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

View File

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