增加部分关卡素材
@ -1,18 +1,13 @@
|
|||||||
{
|
{
|
||||||
"background_type":0,
|
"background_type":6,
|
||||||
"choosebar_type":1,
|
"choosebar_type":2,
|
||||||
"shovel":1,
|
"shovel":0,
|
||||||
"spawn_zombies":"auto",
|
"spawn_zombies":"auto",
|
||||||
"num_flags":3,
|
"included_zombies":["Zombie", "ConeheadZombie", "BucketheadZombie", "NewspaperZombie", "PoleVaultingZombie"],
|
||||||
"included_zombies":["Zombie", "ConeheadZombie", "BucketheadZombie", "PoleVaultingZombie"],
|
"num_flags":4,
|
||||||
"inevitable_zombie_list":{"20":["BucketheadZombie"]},
|
"inevitable_zombie_list":{"20":["BucketheadZombie"]},
|
||||||
"card_pool":[
|
"card_pool":[
|
||||||
{"name":"Peashooter"},
|
{"name":"WallNutBowling"},
|
||||||
{"name":"SnowPea"},
|
{"name":"RedWallNutBowling"}
|
||||||
{"name":"WallNut"},
|
|
||||||
{"name":"CherryBomb"},
|
|
||||||
{"name":"RepeaterPea"},
|
|
||||||
{"name":"Chomper"},
|
|
||||||
{"name":"PotatoMine"}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,13 +1,18 @@
|
|||||||
{
|
{
|
||||||
"background_type":6,
|
"background_type":0,
|
||||||
"choosebar_type":2,
|
"choosebar_type":1,
|
||||||
"shovel":0,
|
"shovel":1,
|
||||||
"spawn_zombies":"auto",
|
"spawn_zombies":"auto",
|
||||||
"included_zombies":["Zombie", "ConeheadZombie", "BucketheadZombie", "NewspaperZombie", "PoleVaultingZombie"],
|
"num_flags":3,
|
||||||
"num_flags":4,
|
"included_zombies":["Zombie", "ConeheadZombie", "BucketheadZombie", "PoleVaultingZombie"],
|
||||||
"inevitable_zombie_list":{"20":["BucketheadZombie"]},
|
"inevitable_zombie_list":{"20":["BucketheadZombie"]},
|
||||||
"card_pool":[
|
"card_pool":[
|
||||||
{"name":"WallNutBowling"},
|
{"name":"Peashooter"},
|
||||||
{"name":"RedWallNutBowling"}
|
{"name":"SnowPea"},
|
||||||
|
{"name":"WallNut"},
|
||||||
|
{"name":"CherryBomb"},
|
||||||
|
{"name":"RepeaterPea"},
|
||||||
|
{"name":"Chomper"},
|
||||||
|
{"name":"PotatoMine"}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
20
resources/data/map/littleGame_3.json
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"background_type":1,
|
||||||
|
"choosebar_type":1,
|
||||||
|
"shovel":1,
|
||||||
|
"spawn_zombies":"auto",
|
||||||
|
"num_flags":3,
|
||||||
|
"included_zombies":["Zombie", "ConeheadZombie",
|
||||||
|
"BucketheadZombie", "NewspaperZombie",
|
||||||
|
"FootballZombie", "ScreenDoorZombie"],
|
||||||
|
"inevitable_zombie_list":{"30":["FootballZombie"]},
|
||||||
|
"card_pool":[
|
||||||
|
{"name":"PuffShroom"},
|
||||||
|
{"name":"ScaredyShroom"},
|
||||||
|
{"name":"IceShroom"},
|
||||||
|
{"name":"HypnoShroom"},
|
||||||
|
{"name":"DoomShroom"},
|
||||||
|
{"name":"GraveBuster"},
|
||||||
|
{"name":"FumeShroom"}
|
||||||
|
]
|
||||||
|
}
|
||||||
21
resources/data/map/littleGame_4.json
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"background_type":2,
|
||||||
|
"choosebar_type":1,
|
||||||
|
"shovel":1,
|
||||||
|
"spawn_zombies":"auto",
|
||||||
|
"num_flags":4,
|
||||||
|
"included_zombies":["Zombie", "ConeheadZombie",
|
||||||
|
"BucketheadZombie", "SnorkelZombie",
|
||||||
|
"Zomboni"],
|
||||||
|
"inevitable_zombie_list":{"30":["BucketheadZombie"]},
|
||||||
|
"card_pool":[
|
||||||
|
{"name":"Lilypad"},
|
||||||
|
{"name":"TorchWood"},
|
||||||
|
{"name":"TallNut"},
|
||||||
|
{"name":"TangleKlep"},
|
||||||
|
{"name":"Spikeweed"},
|
||||||
|
{"name":"Squash"},
|
||||||
|
{"name":"Jalapeno"},
|
||||||
|
{"name":"Threepeater"}
|
||||||
|
]
|
||||||
|
}
|
||||||
BIN
resources/graphics/Cards/card_fumeshroom_move.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
resources/graphics/Cards/card_gravebuster_move.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
resources/graphics/Cards/card_hypnoshroom_move.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
resources/graphics/Cards/card_iceshroom_move.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
resources/graphics/Cards/card_jalapeno_move.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
resources/graphics/Cards/card_puffshroom_move.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
resources/graphics/Cards/card_scaredshroom_move.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
resources/graphics/Cards/card_seashroom_move.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
resources/graphics/Cards/card_spikeweed_move.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
resources/graphics/Cards/card_squash_move.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
resources/graphics/Cards/card_starfruit_move.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
resources/graphics/Cards/card_tallnut_move.png
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
resources/graphics/Cards/card_tangleklep_move.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
resources/graphics/Cards/card_threepeashooter_move.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
resources/graphics/Cards/card_torchwood_move.png
Normal file
|
After Width: | Height: | Size: 35 KiB |
@ -1,7 +1,7 @@
|
|||||||
# 冒险模式起始关卡
|
# 冒险模式起始关卡
|
||||||
START_LEVEL_NUM = 1
|
START_LEVEL_NUM = 1
|
||||||
# 小游戏模式起始关卡
|
# 小游戏模式起始关卡
|
||||||
START_LITTLE_GAME_NUM = 1
|
START_LITTLE_GAME_NUM = 4
|
||||||
|
|
||||||
# 游戏速度倍率(调试用)
|
# 游戏速度倍率(调试用)
|
||||||
GAME_RATE = 1
|
GAME_RATE = 1
|
||||||
|
|||||||
@ -158,6 +158,9 @@ class Level(tool.State):
|
|||||||
if randint(1, 3) == 1: # 1/3概率水上,暂时人为设定
|
if randint(1, 3) == 1: # 1/3概率水上,暂时人为设定
|
||||||
if newZombie in c.CONVERT_ZOMBIE_IN_POOL:
|
if newZombie in c.CONVERT_ZOMBIE_IN_POOL:
|
||||||
newZombie = c.CONVERT_ZOMBIE_IN_POOL[newZombie]
|
newZombie = c.CONVERT_ZOMBIE_IN_POOL[newZombie]
|
||||||
|
# 首先几轮不出水生僵尸
|
||||||
|
elif newZombie in c.WATER_ZOMBIE:
|
||||||
|
continue
|
||||||
if c.CREATE_ZOMBIE_DICT[newZombie][0] <= volume:
|
if c.CREATE_ZOMBIE_DICT[newZombie][0] <= volume:
|
||||||
zombieList.append(newZombie)
|
zombieList.append(newZombie)
|
||||||
volume -= c.CREATE_ZOMBIE_DICT[newZombie][0]
|
volume -= c.CREATE_ZOMBIE_DICT[newZombie][0]
|
||||||
|
|||||||