文件名称:class_37_homework_01
- 所属分类:
- 其他小程序
- 资源属性:
- 上传时间:
- 2017-11-22
- 文件大小:
- 1kb
- 下载次数:
- 0次
- 提 供 者:
- 321mu******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
编写的一个python小游戏,乌龟吃小鱼:
假设游戏场景范围想(x,y)均为[0,10];游戏生成1只乌龟和10条鱼;他们移动方向均随机;乌龟最大移动能力为2(可为1或2),鱼最大移动能力为1;当移动到场景边缘自动向反方向动;乌龟初始体能为100(上限);乌龟每移动一次体力消耗1;乌龟与鱼坐标重合,乌龟吃鱼,乌龟体力增20;鱼暂不计体力;当乌龟体力为0或鱼儿数量为0游戏结束(Prepared a python game, the turtle to eat fish:
Assuming that the game scene range is (x, y) both [0, 10]; the game produces one turtle and ten fish; both move in random directions; the turtle has a maximal moving capacity of 2 (which can be 1 or 2) The ability to move to 1; automatically move to the opposite direction when moving to the edge of the scene; turtle initial physical capacity of 100 (upper limit); turtles for each move a physical expenditure 1; turtle and fish coordinates coincide turtle fish, turtle physical augmentation 20; Excluding body strength; when the tortoise is 0 or the number of fish is 0 The game is over)
假设游戏场景范围想(x,y)均为[0,10];游戏生成1只乌龟和10条鱼;他们移动方向均随机;乌龟最大移动能力为2(可为1或2),鱼最大移动能力为1;当移动到场景边缘自动向反方向动;乌龟初始体能为100(上限);乌龟每移动一次体力消耗1;乌龟与鱼坐标重合,乌龟吃鱼,乌龟体力增20;鱼暂不计体力;当乌龟体力为0或鱼儿数量为0游戏结束(Prepared a python game, the turtle to eat fish:
Assuming that the game scene range is (x, y) both [0, 10]; the game produces one turtle and ten fish; both move in random directions; the turtle has a maximal moving capacity of 2 (which can be 1 or 2) The ability to move to 1; automatically move to the opposite direction when moving to the edge of the scene; turtle initial physical capacity of 100 (upper limit); turtles for each move a physical expenditure 1; turtle and fish coordinates coincide turtle fish, turtle physical augmentation 20; Excluding body strength; when the tortoise is 0 or the number of fish is 0 The game is over)
相关搜索: Python
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
class_37_homework_01.py | 12056 | 2017-11-17 |