hero和mon统一后,攻击模式需要完善
This commit is contained in:
@@ -60,17 +60,17 @@ export class SingletonModuleComp extends ecs.Comp {
|
|||||||
monsters_dead:any = []
|
monsters_dead:any = []
|
||||||
heros_dead:any = []
|
heros_dead:any = []
|
||||||
hero_pos:any=[
|
hero_pos:any=[
|
||||||
{x:-320,y:BoxSet.GAME_LINE+70},
|
|
||||||
{x:-320,y:BoxSet.GAME_LINE},
|
{x:-320,y:BoxSet.GAME_LINE},
|
||||||
{x:-320,y:BoxSet.GAME_LINE-70},
|
{x:-320,y:BoxSet.GAME_LINE},
|
||||||
|
{x:-320,y:BoxSet.GAME_LINE},
|
||||||
{x:-320,y:BoxSet.GAME_LINE},
|
{x:-320,y:BoxSet.GAME_LINE},
|
||||||
{x:-320,y:BoxSet.GAME_LINE},
|
{x:-320,y:BoxSet.GAME_LINE},
|
||||||
{x:-320,y:BoxSet.GAME_LINE},
|
{x:-320,y:BoxSet.GAME_LINE},
|
||||||
]
|
]
|
||||||
enemy_pos:any =[
|
enemy_pos:any =[
|
||||||
{x:320,y:BoxSet.GAME_LINE+70},
|
|
||||||
{x:320,y:BoxSet.GAME_LINE},
|
{x:320,y:BoxSet.GAME_LINE},
|
||||||
{x:320,y:BoxSet.GAME_LINE-70},
|
{x:320,y:BoxSet.GAME_LINE},
|
||||||
|
{x:320,y:BoxSet.GAME_LINE},
|
||||||
{x:320,y:BoxSet.GAME_LINE},
|
{x:320,y:BoxSet.GAME_LINE},
|
||||||
{x:320,y:BoxSet.GAME_LINE},
|
{x:320,y:BoxSet.GAME_LINE},
|
||||||
{x:320,y:BoxSet.GAME_LINE},
|
{x:320,y:BoxSet.GAME_LINE},
|
||||||
|
|||||||
@@ -316,6 +316,7 @@ export class HeroViewComp extends CCComp {
|
|||||||
pos.y=pos.y + y
|
pos.y=pos.y + y
|
||||||
pos.x=pos.x + x
|
pos.x=pos.x + x
|
||||||
skill.load(pos,this.box_group,this.node,skill_uuid,atk,t_pos);
|
skill.load(pos,this.box_group,this.node,skill_uuid,atk,t_pos);
|
||||||
|
console.log(this.scale+this.hero_name+"使用技能:"+skill_uuid);
|
||||||
// this.tooltip(3,smc.skills[skill_uuid].name,this.skill_uuid);
|
// this.tooltip(3,smc.skills[skill_uuid].name,this.skill_uuid);
|
||||||
}
|
}
|
||||||
to_add_buff(hero:any,s_uuid:number){
|
to_add_buff(hero:any,s_uuid:number){
|
||||||
|
|||||||
Reference in New Issue
Block a user