文件名称:justforfun
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:4.08kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
srand[getpid[]]
/* initialize some of the memory */
memset[heightmap, 0, MAPSIZE*MAPSIZE]
memset[vpage, 0, RENDERWIDTH * RENDERHEIGHT]
printf["Creating dx d fractal terrain\n", MAPSIZE, MAPSIZE]
heightmap[0] = [rand[] 128] + 64 // initialize starting point on map
CreateFractalMap[0, 0, MAPSIZE, MAPSIZE]
printf["Smoothing terrain\n"]
for [i = 0 i < 5 i++]
SmoothMap[]
MakeColorMap[] - srand[getpid[]]
/* initialize some of the memory*/
memset[heightmap, 0, MAPSIZE*MAPSIZE]
memset[vpage, 0, RENDERWIDTH* RENDERHEIGHT]
printf["Creating dx d fractal terrain\n", MAPSIZE, MAPSIZE]
heightmap[0] = [rand[] 128]+ 64 // initialize starting point on map
CreateFractalMap[0, 0, MAPSIZE, MAPSIZE]
printf["Smoothing terrain\n"]
for [i = 0 i < 5 i++]
SmoothMap[]
MakeColorMap[]
/* initialize some of the memory */
memset[heightmap, 0, MAPSIZE*MAPSIZE]
memset[vpage, 0, RENDERWIDTH * RENDERHEIGHT]
printf["Creating dx d fractal terrain\n", MAPSIZE, MAPSIZE]
heightmap[0] = [rand[] 128] + 64 // initialize starting point on map
CreateFractalMap[0, 0, MAPSIZE, MAPSIZE]
printf["Smoothing terrain\n"]
for [i = 0 i < 5 i++]
SmoothMap[]
MakeColorMap[] - srand[getpid[]]
/* initialize some of the memory*/
memset[heightmap, 0, MAPSIZE*MAPSIZE]
memset[vpage, 0, RENDERWIDTH* RENDERHEIGHT]
printf["Creating dx d fractal terrain\n", MAPSIZE, MAPSIZE]
heightmap[0] = [rand[] 128]+ 64 // initialize starting point on map
CreateFractalMap[0, 0, MAPSIZE, MAPSIZE]
printf["Smoothing terrain\n"]
for [i = 0 i < 5 i++]
SmoothMap[]
MakeColorMap[]
相关搜索: terrain
(系统自动生成,下载前可以参看下载内容)
下载文件列表
justforfun/land.c
justforfun/Makefile
justforfun
justforfun/Makefile
justforfun
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.