3

所属分类:其他智力游戏
开发工具:Visual C++
文件大小:9KB
下载次数:16
上传日期:2013-04-17 15:47:26
上 传 者holiday195
说明:  请设计一个模拟投篮过程的小游戏,游戏的要求如下: (1)设计一个matlab窗体,在窗体上防止一个坐标轴控件,并设置好该坐标系的坐标轴范围; (2)在坐标系上利用鼠标点击一个点a,作为篮筐的中心,并生成一个半径为r的圆,来模拟篮筐; (3)在坐标系上再用鼠标点一个点b,作为投篮的出发点,同时生成一个红色实心小球来模拟篮球,再选一个点c,b、c之间的连线作为投篮方向; (4)根据a、b、c三个点之间的位置关系,来模拟投篮过程,并记录命中次数; (5)以按住鼠标不放的时间来模拟力量(初始速度)的大小,并能够动态模拟篮球的运动轨迹,篮球的质量自定,忽略空气阻力的影响,相关的数值要求在坐标系右上角动态显示出来。
(Games, game design a simulation shooting process requirements are as follows: (1) design a Matlab form, to prevent a axis control on the form, and set the coordinate system axis range (2) in the coordinate Department using the mouse to click on a point a, and generates a radius r of the circle to simulate the basket as the center of the basket (3) in the coordinate system and then the mouse to point a point b, as draws the departure point, at the same time generate a red solid pellets to simulate basketball, and then choose a connection between the point c, b, c, as the shooting direction (4) according to the positional relationship between a, b, c three points, to simulate shooting process and record the number of hits (5) Press and hold the mouse button down to simulate the size of the force (initial velocity), and capable of dynamic simulation of the trajectory of the basketball, basketball quality custom ignore the effect of air resistance, the The numerical requirements displa)

文件列表:
第三个\work3.asv (7491, 2012-04-14)
第三个\work3.fig (5393, 2012-04-12)
第三个\work3.m (3322, 2012-04-14)
第三个 (0, 2012-05-02)

近期下载者

相关文件


收藏者