|
楼主 |
发表于 2008-6-11 22:08:39
|
显示全部楼层
引用第10楼zhuzeitou于2008-06-11 21:57发表的 :
lz可以说下怎么解决的呢?? 既然猪头都问了
我就发吧
[jass]
function RegionAddCircle takes region whichRegion, real x, real y, real radius returns nothing
local real r = 16.00
local real w = 0
local rect t = Rect(0, 0, 0, 0)
loop
exitwhen r > radius
set w = Cos(Asin(r / radius)) * radius
call SetRect(t, x - w, y + r - 16.00, x + w, y + r + 16.00)
call RegionAddRect(whichRegion, t)
call SetRect(t, x - w, y - r - 16.00, x + w, y - r + 16.00)
call RegionAddRect(whichRegion, t)
set r = r + 32.00
endloop
call RemoveRect(t)
set t = null
endfunction
[/jass]
怎么用自己琢磨啦
顺便自己解决自己的问题能不能加5块钱啊 |
|