# PythonPlantsVsZombies
A simple PlantsVsZombies game. <br>
`It's only for personal learning and noncommercial use. If this game infringes the copyright, please let me know.`
* implement plants: sunflower, peashooter, wallnut, snowpeashooter, cherrybomb, threepeashooter, chomper, puffshroom, potatomine, spikeweed, scaredyshroom, squash, scaredyshroom, jalapeno, sunShroom, iceShroom, hypnoShroom.
* implement zombies: zombie, flagzombie, coneheadzombie, bucketheadzombie, newspaperzombie.
* use json file to store level data (e.g.position and time of zombies, background info)
* support to select plant cards at the beginning of the level
* support day level, night level, moving card select level and wallnut bowling level
# Requirement
* Python 3.7
* Notice: python version 3.7 is advisable, but not required. For LINUX: if your Linux system has a preinstalled python 3+, it's ok to run this game. Updating to python 3.7 directly may break LINUX Mint.
* Python-Pygame 1.9
# How To Start Game
$ python main.py
# How to Play
* use mouse to collect sun, select the plant cards and seed the plant
* you can set the start level by changing START_LEVEL_NUM value in source/constants.py
* level 1 and 2:day level
* level 3: night level
* level 4: moving card select level
* level 5: wallnut bowling level
# Demo
![demo1](https://raw.githubusercontent.com/marblexu/PythonPlantsVsZombies/master/demo/demo1.jpg)
![demo2](https://raw.githubusercontent.com/marblexu/PythonPlantsVsZombies/master/demo/demo2.jpg)
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
python游戏代码,功能齐全,植物大战僵尸源代码 (801个子文件)
BulletMushRoomExplode_0.gif 515B
demo3.jpg 273KB
demo1.jpg 266KB
demo2.jpg 264KB
Background_4.jpg 219KB
Background_2.jpg 141KB
Background_1.jpg 111KB
Background_3.jpg 99KB
Background_0.jpg 95KB
level_4.json 2KB
level_5.json 1KB
zombie.json 1KB
level_3.json 893B
level_2.json 818B
level_1.json 774B
plant.json 659B
level_0.json 130B
README-zh.md 2KB
README.md 1KB
MainMenu.png 482KB
GameVictory.png 106KB
GameLoose.png 104KB
PanelBackground.png 27KB
card_peashooter_move.png 27KB
card_cherrybomb_move.png 27KB
card_cherrybomb.png 25KB
card_peashooter.png 25KB
card_wallnut.png 25KB
JalapenoExplode_1.png 22KB
JalapenoExplode_3.png 22KB
Adventure_0.png 21KB
JalapenoExplode_2.png 21KB
Adventure_1.png 20KB
JalapenoExplode_0.png 19KB
JalapenoExplode_4.png 18KB
ChooserBackground.png 17KB
NewspaperZombie_15.png 14KB
card_threepeashooter.png 14KB
NewspaperZombie_16.png 14KB
NewspaperZombie_17.png 14KB
card_iceshroom.png 14KB
card_chomper.png 14KB
NewspaperZombieAttack_6.png 14KB
card_sunflower.png 14KB
NewspaperZombie_7.png 14KB
NewspaperZombie_8.png 14KB
FlagZombie_10.png 14KB
NewspaperZombie_9.png 14KB
FlagZombie_11.png 13KB
NewspaperZombie_5.png 13KB
NewspaperZombie_14.png 13KB
NewspaperZombie_11.png 13KB
NewspaperZombie_0.png 13KB
NewspaperZombie_6.png 13KB
NewspaperZombie_10.png 13KB
JalapenoExplode_5.png 13KB
NewspaperZombieAttack_5.png 13KB
NewspaperZombie_4.png 13KB
card_jalapeno.png 13KB
NewspaperZombie_3.png 13KB
NewspaperZombie_12.png 13KB
NewspaperZombie_13.png 13KB
card_wallnut_move.png 13KB
FlagZombie_2.png 13KB
FlagZombie_3.png 13KB
FlagZombie_0.png 13KB
card_spikeweed.png 13KB
FlagZombie_1.png 13KB
NewspaperZombieAttack_0.png 13KB
card_scaredyshroom.png 13KB
card_snowpea_move.png 13KB
FlagZombie_9.png 13KB
NewspaperZombie_18.png 13KB
card_hypnoshroom.png 13KB
FlagZombie_4.png 13KB
NewspaperZombie_2.png 13KB
NewspaperZombieAttack_7.png 13KB
NewspaperZombieNoPaperAttack_4.png 13KB
FlagZombie_5.png 13KB
NewspaperZombie_1.png 13KB
card_sunshroom.png 13KB
NewspaperZombieNoPaper_11.png 13KB
NewspaperZombieAttack_4.png 13KB
FlagZombie_7.png 13KB
card_puffshroom.png 13KB
card_chomper_move.png 13KB
FlagZombie_8.png 13KB
NewspaperZombieAttack_3.png 12KB
NewspaperZombieNoPaper_10.png 12KB
FlagZombie_6.png 12KB
card_redwallnut_move.png 12KB
NewspaperZombieNoPaper_12.png 12KB
NewspaperZombieNoPaperAttack_3.png 12KB
NewspaperZombieNoPaper_1.png 12KB
NewspaperZombieNoPaper_13.png 12KB
NewspaperZombieAttack_1.png 12KB
NewspaperZombieAttack_2.png 12KB
FlagZombieAttack_6.png 12KB
Boom.png 12KB
FlagZombieAttack_5.png 12KB
共 801 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9
资源评论
DNCS高级工程师
- 粉丝: 761
- 资源: 551
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功