一个用J2ME做的非常简单的小游戏。一开始敌人追你,吃到食物后,变大追敌人。游戏很简单,AI也不复杂,就是坐标比较,还有两圆的碰撞检测和圆与矩形的碰撞检测。
1
基于opengl实现的碰撞检测算法及论文(韩截图),包含详细的代码和解析,大学优秀毕业论文。
2019-12-21 22:22:19 1.17MB 碰撞 检测 opengl
1
D3D 实现的AABB 碰撞检测 D3D
2019-12-21 22:17:25 2.93MB AABB 碰撞检测 D3D
1
如对代码有任何疑问,请联系我qq739198750,我上线看见后会立即回复,谢谢! 正确的三维碰撞检测程序(含源代码),欢迎下载,运行环境vs2005以上,运行前请确保你的openGl相关已配置好
1
使用opengl绘制的场景,有各种灯光,各种碰撞的检测,实现墙体、边界的不穿透。
2019-12-21 22:12:16 36.07MB opengl 室内场景
1
我所研究碰撞检测时参考的文献及一些代码,对一些刚研究碰撞检测很有帮助
2019-12-21 22:06:27 4.43MB 碰撞检测 算法 论文
1
http://blog.csdn.net/xiaoxiao108/archive/2010/12/18/6084473.aspx 记得在大学学java时,同学在下载了很多java的视频,看到里面有些是介绍简单游戏开发的,马士兵老师讲的,挺感兴趣的。一起看了看视频写了写程序。现在毕业了,因为工作中用的是C#,最近很想拿C#把以前写的坦克大战重写下,来熟悉熟悉C#的基本语法。 程序很简单,跟java代码相比没有多大改动 开发环境 vs2008 实现方法如下 1.在form中添加一个panel,在panel的 Paint方法中得到Graphics对象 2.通过Graphics对象再panel画出坦克,子弹等相关内容 3.添加timer控件 来控制panel的重画 实现坦克,子弹的运动 4.根据电脑按下的方向键,确定出坦克的方向,panel重画时根据坦克的方向修改坦克的X,Y轴坐标,来实现坦克的移动 5.通过Rectangle的IntersectsWith函数来进行碰撞检测,实现子弹打击坦克 具体实现代码 1.在项目里面添加枚举类型 /// /// 表示方向的的枚举类型 /// public enum Direction { L, U, D, R, STOP } 2.添加子弹类的相关常量,属性 /// /// 子弹X轴的速度,单位PX /// public static int XSPEED = 10; /// /// 子弹Y轴的速度,单位PX /// public static int YSPEED = 10; /// /// 子弹的宽度 /// public static int WIDTH = 10; /// /// 子弹的高度 /// public static int HEIGHT = 10; /// /// 子弹的坐标 /// int x, y; /// /// 子弹的方向 /// Direction dir; /// /// 子弹的存活状态 /// private bool live = true; /// /// TankClient窗体实例 /// private TankClient tankClient; /// /// 敌我双方的标记 /// private bool good; 3.添加draw方法来画出子弹 public void Draw(Graphics g) { if (!live) { tankClient.missiles.Remove(this); return; } //通过画椭圆函数在界面上显示子弹 g.FillEllipse(Brushes.Black, x, y, Missile.WIDTH, Missile.HEIGHT); Move(); } 4.添加子弹打击坦克的方法 public bool HitTank(Tank t) { //用IntersectsWith来检测两个矩形相碰撞 if (GetRectangle().IntersectsWith((t.GetRectangle())) && t.Live && t
2019-12-21 22:02:14 73KB C# 坦克大战 双缓冲 碰撞检测
1
Written by an expert in the game industry, Christer Ericson's new book is a comprehensive guide to the components of efficient real-time collision detection systems. The book provides the tools and know-how needed to implement industrial-strength collision detection for the highly detailed dynamic environments of applications such as 3D games, virtual reality applications, and physical simulators. Of the many topics covered, a key focus is on spatial and object partitioning through a wide variety of grids, trees, and sorting methods. The author also presents a large collection of intersection and distance tests for both simple and complex geometric shapes. Sections on vector and matrix algebra provide the background for advanced topics such as Voronoi regions, Minkowski sums, and linear and quadratic programming. Of utmost importance to programmers but rarely discussed in this much detail in other books are the chapters covering numerical and geometric robustness, both essential topics for collision detection systems. Also unique are the chapters discussing how graphics hardware can assist in collision detection computations and on advanced optimization for modern computer architectures. All in all, this comprehensive book will become the industry standard for years to come.
2019-12-21 21:32:21 3MB Real-Time Collision Detection
1
基于vs2008平台,结合directx9实现的一款射击类游戏,包含完整源码和图片资源,以及射击碰撞检测,对于想提高游戏开发能力的新手而言,极具有参考意义,可以添加自己的功能而快速的开发简易游戏。
2019-12-21 21:25:30 125KB 射击游戏 Directx9 vs2008 碰撞检测
1
这是一个基于OSG开发的校园漫游系统,是我自学半个月自己写的系统
2019-12-21 21:17:28 5.6MB OSG 校园漫游 碰撞检测
1