文件名称:BALLgame
-
所属分类:
- 标签属性:
- 上传时间:2013-12-04
-
文件大小:1.6kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
用户能通过GUI组件指定生成小球的数量,每个小球将从随机的位置出现,并具有随机颜色,随机速度以及随机的运动方向,小球沿初始方向匀速运动,当碰到窗口边缘时,小球将依据受力原理改变运动方向(可简化考虑,受力只改变小球的运动方向,小球仍按照初始速度匀速运动,且不考虑小球之间的碰撞)。
鼠标在界面中显示为方块状,玩家需来回移动鼠标以避开运动的小球及屏幕四周,如果鼠标碰到任一小球或者窗口四周,则游戏结束。
程序需提供计时功能,并最终显示玩家能坚持多少秒。-GUI components specified by the user to generate a small number of balls, each ball will appear random positions and with random colors, random speeds and random direction, the initial direction of the ball along the uniform motion, when it comes to the window edge small ball will change the direction of movement of the force based on the principle (to simplify consideration, the force only a small change in the direction of movement of the ball, the ball is still in accordance with the initial velocity of uniform motion, and does not consider the collision between the ball). Mouse displayed in the interface of square blocks, players need to move the mouse back and forth to avoid the ball and movement around the screen, if the mouse or hit any ball around the window, then the game is over. Programs need to provide timing functions, and finally display the player can hold the number of seconds.
鼠标在界面中显示为方块状,玩家需来回移动鼠标以避开运动的小球及屏幕四周,如果鼠标碰到任一小球或者窗口四周,则游戏结束。
程序需提供计时功能,并最终显示玩家能坚持多少秒。-GUI components specified by the user to generate a small number of balls, each ball will appear random positions and with random colors, random speeds and random direction, the initial direction of the ball along the uniform motion, when it comes to the window edge small ball will change the direction of movement of the force based on the principle (to simplify consideration, the force only a small change in the direction of movement of the ball, the ball is still in accordance with the initial velocity of uniform motion, and does not consider the collision between the ball). Mouse displayed in the interface of square blocks, players need to move the mouse back and forth to avoid the ball and movement around the screen, if the mouse or hit any ball around the window, then the game is over. Programs need to provide timing functions, and finally display the player can hold the number of seconds.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
BALLgame/ballgame.java
BALLgame/gametest.java
BALLgame
BALLgame/gametest.java
BALLgame
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.