for round in range(6*2): t0s, t1s = BattleFrame.getResults(round%2==0, game_master.team_arrays[0], game_master.team_arrays[1]) game_master.team0[t0s].select(game_master) game_master.team1[t1s].select(game_master) game_master.battlepixie0[0].tween() game_master.battlepixie1[0].tween() game_master.animate_combat(abs(round%2-1)) color0 = game_master.battlepixie0[0].get_color() color1 = game_master.battlepixie1[0].get_color() if(round%2==0): pts0 -= math.floor(Logic.getPoints(color0,color1)*50) else: pts1 -= math.floor(Logic.getPoints(color1,color0)*50) if pts0<=0 or pts1<=0: break game_master.apply_damage(1,pts1) game_master.apply_damage(0,pts0) game_master.draw_health() game_master.return_pixies() print "===Points===" print "Team 0 points: ", int(pts0) print "Team 1 points: ", int(pts1) print ""
game_master.draw_pixies(game_master.team1) pts0 = 0 pts1 = 0 for round in range(6*2): t0s, t1s = BattleFrame.getResults(round%2==0, game_master.team_arrays[0], game_master.team_arrays[1]) game_master.team0[t0s].select(game_master) game_master.team1[t1s].select(game_master) if round-1>=0: for i in range(0,round): game_master.battlepixie0[i].go_home() game_master.battlepixie1[i].go_home() game_master.battlepixie0[round].tween() game_master.battlepixie1[round].tween() color0 = game_master.battlepixie0[round].get_color() color1 = game_master.battlepixie1[round].get_color() if(round%2==0): pts0 += math.floor(Logic.getPoints(color0,color1)*100) else: pts1 += math.floor(Logic.getPoints(color1,color0)*100) print "===Points===" print "Team 0 points: ", int(pts0) print "Team 1 points: ", int(pts1) print ""