Exemple #1
0
game.set_players(players)

#<fast> : quality a bit lower if true, loading time a bit faster.
#<use_beach_tiler>: quality much better if true, loading much slower. Req. Numpy!
#<load_tilers> : Very slow but needed if you don't have Numpy but still want hi quality.
game.build_map(map_initializer, fast=True, use_beach_tiler=False, load_tilers=False)

##game.add_unit((15,5), humans["infantry"], 100, team=1)
##game.add_unit((14,6), humans["infantry"], 100, team=1) #14,6
##game.add_unit((25,5), humans["infantry"], 100, team=1)
##game.add_unit((16,6), humans["wizard"], 1, team=1)
##
##
##game.add_unit((20,8), humans2["infantry"], 100, team=2)
##game.add_unit((15,7), humans2["infantry"], 100, team=2)
game.add_unit((3,3), humans["wizard"], 10) reste bloque dans le anim path
game.add_unit((4,5), humans["infantry"], 10)
game.add_unit((5,5), humans2["infantry"], 20)
##game.add_unit((13,10), humans["wizard"], 30)
##game.add_unit((14,1), humans2["villager"], 10)
##game.add_unit((12,11), humans2["wizard"], 30)
##game.add_unit((17,3), humans["villager"], 10)
##
##game.add_unit((18,7), humans2["infantry"], 10)
##game.add_unit((18,8), humans["infantry"], 10)
##game.add_unit((17,10), humans["wizard"], 10)
##game.add_unit((16,9), humans2["villager"], 15)
##game.add_unit((15,9), humans2["infantry"], 15)
##
##game.add_unit((22,2), humans["infantry"], 10)
##game.add_unit((23,2), humans2["infantry"], 20)
Exemple #2
0
#<load_tilers> : Very slow but needed if you don't have Numpy but still want hi quality.
game.build_map(map_initializer,
               fast=False,
               use_beach_tiler=True,
               load_tilers=False)

##game.add_unit((15,5), humans["infantry"], 100, team=1)
##game.add_unit((14,6), humans["infantry"], 100, team=1) #14,6
##game.add_unit((25,5), humans["infantry"], 100, team=1)
##game.add_unit((16,6), humans["wizard"], 1, team=1)
##
##
##game.add_unit((20,8), humans2["infantry"], 100, team=2)
##game.add_unit((15,7), humans2["infantry"], 100, team=2)

game.add_unit((14, 10), humans2["wizard"], 10)
game.add_unit((14, 9), humans["infantry"], 10)
game.add_unit((15, 10), humans2["infantry"], 10)
game.add_unit((13, 10), humans["wizard"], 30)
game.add_unit((14, 1), humans["villager"], 10)
game.add_unit((12, 11), humans2["wizard"], 30)
game.add_unit((17, 3), humans["villager"], 10)

game.add_unit((18, 7), humans2["infantry"], 10)
game.add_unit((18, 8), humans["infantry"], 10)
game.add_unit((17, 10), humans["wizard"], 10)
game.add_unit((16, 9), humans2["villager"], 15)
game.add_unit((15, 9), humans2["infantry"], 15)

game.add_unit((22, 2), humans["infantry"], 10)
game.add_unit((23, 2), humans2["infantry"], 20)