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
CreateFract ...
/dl/418771.html
标签:
MAPSIZE
initialize
heightmap
getpid
上传时间:
2013-12-25
上传用户:CSUSheep