1.关于VB小游戏的过程
碰撞检测原理是检测控件是否在主角位置范围内。
你可以通过检测位置实现啊,比如用这个函数:
'碰撞检测
Public Function IsCollision(x1 As Long, y1 As Long, w1 As Long, h1 As Long, x2 As Long, y2 As Long, w2 As Long, h2 As Long) As Boolean
If y2 + h2 >= y1 And y2 = x1 And x2
转载请注明出处众文网 » vb小游戏毕业论文(关于VB小游戏的过程)