文件名称:BounceThread
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.22kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
1) 小球在窗口内的移动不能垂直向下,可以以某个角度斜向下运动。小球最初在窗口顶部出现的位置可以固定,以可以随机在某个位置出现
(2) 运动方向可以通过每次在x方向和y方向上增量不同来得到。
能检测窗口边界,碰到边界后会发生碰撞并且沿合理的方向运动。
在每次绘制小球时候,判断绘制该小球的位置是否已经到了窗口的上下左右边界。如果到了,就应该通过改变x和y方向的增量。来改变方向。 -1) The ball is not moving in the window vertically downward at an angle oblique to the next campaign. The ball first to appear in the top of the window can be fixed to a location can appear random (2) the direction of movement through time in the x direction and y direction to get the incremental difference. Can detect the window border, the border will encounter a collision, and along the rational direction. When drawing the ball every time, draw the ball to determine whether the location of the window and down to the left and right borders. If it arrives, it should be by changing the x and y directions of the increments. To change direction.
(2) 运动方向可以通过每次在x方向和y方向上增量不同来得到。
能检测窗口边界,碰到边界后会发生碰撞并且沿合理的方向运动。
在每次绘制小球时候,判断绘制该小球的位置是否已经到了窗口的上下左右边界。如果到了,就应该通过改变x和y方向的增量。来改变方向。 -1) The ball is not moving in the window vertically downward at an angle oblique to the next campaign. The ball first to appear in the top of the window can be fixed to a location can appear random (2) the direction of movement through time in the x direction and y direction to get the incremental difference. Can detect the window border, the border will encounter a collision, and along the rational direction. When drawing the ball every time, draw the ball to determine whether the location of the window and down to the left and right borders. If it arrives, it should be by changing the x and y directions of the increments. To change direction.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
BounceThread.java
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
