搜索资源列表
MiGong
- 一个快速高质量的迷宫生成器,采用生成树、扩散算法以保证收敛,但是在一些极端条件下可能会进入无限循环。-A fast high-quality maze generator, using spanning tree, diffusion algorithm to ensure convergence, but in some extreme conditions, may enter an infinite loop.
sudoku_solver.tar
- Simple sudoku solver written in C, very fast for solvable games but sometimes loop for ages on unsolvable boards. Making it detect unsolvable boards faster is left as an exercise to the reader :)
batten
- 首先用背景色清空画布,然后画食物,其次是通过for循环将贪吃蛇的每个蛇块画在画布上,以此达到游戏效果。 C#实现,有参考价值。-First empty the canvas with the background color, and then draw the food, followed by the for loop Snake snake block painting on canvas in order to achieve gaming effects. C# impleme
vcbmpstar
- VC++绘制窗口的实例源码下载,星空绽放-浅墨的窗口绘制Demo源码,是毛星云VC++游戏开发笔记系列配套源码,使用了BMP图像资源为素材。牵扯到一些粒子编程,设定该粒子存在的时间为零,按粒子编号i来决定粒子在哪个象限运动,且x,y方向的移动速度随机为1—15之间的一个值,由1+rand() 15来完成。50个粒子由for循环设置完成后,我们将粒子数量设为50,代表目前有50颗星光,先在内存dc中贴上背景图片,判断粒子是否还存在,若存在,则根据其坐标(flystar[i].x,flystar[
vcvs2010snows
- VS2010版漫天飞舞的雪花Demo源码,主要讲解了在GDI中粒子的运用,游戏基础物理建模,粒子系统的模拟程序,源码编译环境为VS2010.其实VS2005,VS2008也可以编译运行。本实例包括了VC++6.0源码版本。MyPaint函数的书写思路是,先初始化每个粒子,这里是共50个粒子。然后贴上背景图到mdc中,再用循环将各个粒子也贴到mdc中,循环完成之后,再统一将mdc中的内容直接贴到hdc中。这样做的优点是比较直观,提高了贴图的效率。-VS2010 version of the fly
juzhenxiangcheng
- 编写程序,可以实现m*n矩阵和n*p矩阵相乘。m,n,p均小于10,矩阵元素为整数。 分析: 首先我们可以根据题意写出函数头。可以定为void MatrixMutiply(int m,int n,int p,long lMatrix1[MAX][MAX],long lMatrix2[MAX][MAX],long lMatrixResult[MAX][MAX]),其中lMatrix1和lMatrix2分别是输入的m*n矩阵和n*p矩阵,lMatrixResult是输出的m*p矩阵。 因
Game-Engine-Design--The-Game-Loop
- more advanced game loop
3dExplorer
- 这是一个室外Engine Demo,主要特征包括: 1.大面积山脉渲染,使用Heightmap构造地形,7级 LOD 细节精度,地形无限重复循环。 2.清晰、自然的地表贴图。 3.读取.MD2 、.MS3D 格式的3D模型文件。 4.粒子系统,产生爆炸、炊烟等特效。 5.太阳光晕。 6.画面Contrast+Brigntness控制。-This is an outdoor Engine Demo, the main features include: 1 large
doomrg
- Doom rouge like like c main loop only
mouse
- 本程序为c编写的智力小游戏打地鼠,程序主要采用了循环控制。-This program is written in c intellectual game playing hamster, the main use of the program loop control.