文件名称:snake
介绍说明--下载内容均来自于网络,请自行研究使用
贪吃蛇手机游戏
贪吃蛇是一款非常经典的手机游戏,本文将使用MIDP实现这款著名的游戏。首先我将介绍下主要用到的七个类:
WormMain:最主要的类,控制所有其它类的运行和销毁。
WormPit:处理键盘输入事件并实例化Worm类和WormFood类的。
Worm:抽象了贪吃蛇的属性和动作
WormFood:抽象了食物的属性和动作
WormScore:用来纪录分数的类
WormLink:抽象了蛇身上的一段,保存了这段的坐标、方向和所有状态。
WormException:处理异常类-Snake mobile game Snake is a very classic cell phone game, this paper will use the MIDP realize this famous game. First of all, I will introduce the main use of the seven categories: WormMain: the most important category, controlling for all other types of running and destroyed. WormPit: handle keyboard input events and Worm instantiated class and WormFood category. Worm: abstract properties of the Snake and movements WormFood: abstract properties of food and movement WormScore: the class used to record scores WormLink: abstract section of the snake body, preserved during the coordinates, direction and all states. WormException: handle exception classes
贪吃蛇是一款非常经典的手机游戏,本文将使用MIDP实现这款著名的游戏。首先我将介绍下主要用到的七个类:
WormMain:最主要的类,控制所有其它类的运行和销毁。
WormPit:处理键盘输入事件并实例化Worm类和WormFood类的。
Worm:抽象了贪吃蛇的属性和动作
WormFood:抽象了食物的属性和动作
WormScore:用来纪录分数的类
WormLink:抽象了蛇身上的一段,保存了这段的坐标、方向和所有状态。
WormException:处理异常类-Snake mobile game Snake is a very classic cell phone game, this paper will use the MIDP realize this famous game. First of all, I will introduce the main use of the seven categories: WormMain: the most important category, controlling for all other types of running and destroyed. WormPit: handle keyboard input events and Worm instantiated class and WormFood category. Worm: abstract properties of the Snake and movements WormFood: abstract properties of food and movement WormScore: the class used to record scores WormLink: abstract section of the snake body, preserved during the coordinates, direction and all states. WormException: handle exception classes
(系统自动生成,下载前可以参看下载内容)
下载文件列表
贪吃蛇手机游戏.txt