关卡设置基本完成

This commit is contained in:
2024-11-21 17:41:10 +08:00
parent 76d7e6677c
commit 3d9469eb10
10 changed files with 380 additions and 453 deletions

View File

@@ -56,22 +56,8 @@ export class SingletonModuleComp extends ecs.Comp {
sk_info:any = []
monsters_dead:any = []
heros_dead:any = []
hero_pos:any=[
{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 =[
{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},
]
hero_pos:any=[]
enemy_pos:any =[]
vm_data: any = {
name : "纸片精灵大乱斗",
game_over:false,
@@ -81,10 +67,9 @@ export class SingletonModuleComp extends ecs.Comp {
mission:{
play:false,
pause:false,
refresh_timer:3,
mission_lv:1,
boss_cd:10,
bboss_cd:10,
is_victory:false,
is_defeat:false,
lv:1,
victory:0,
once:6, //每波刷新怪物数量
total:1, //总怪物数
@@ -96,26 +81,7 @@ export class SingletonModuleComp extends ecs.Comp {
mb_exp:0, //敌方远程经验石
mc_exp:0, //敌方辅助经验石
md_exp:0, //敌方特殊经验石
m_less:0,
m_alive:120,
g_level:1,
g_time:0,
reward:20, //怪物死亡奖励数量
reward_num:0, //怪物死亡数
coin:200,
coin_add:1,
coin_reward_add:1,
normal_cost:10,
better_cost:20,
best_cost:30,
enhancement_cost:100,
normal_lv:1,
better_lv:1,
best_lv:1,
t_damge:0,
t_dps:0,
h_dps:0,
m_dps:0,
reward_gold:0,
reward_exp:0,
hero:{
@@ -130,6 +96,7 @@ export class SingletonModuleComp extends ecs.Comp {
}
},
role:{
fight_heros:[9001,9001],
gold:9999999,
gems:0,
energy:0,