文件名称:class_37_homework_01
介绍说明--下载内容来自于网络,使用问题请自行百度
编写的一个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 |
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.