BS包仔
发表于 2014-1-15 09:48:01
日常{:nm06:}
翎·仲秋
发表于 2014-1-15 08:46:23
1.15家里签到
BS包仔
发表于 2014-1-14 19:48:07
= =
satgo1546
发表于 2014-1-14 19:47:29
@Sonic1997 又一个十分shit的算法= =如何绘制9-patch
def draw_9patch(i)
clearw = (@width - i.width - i.width)
clearh = (@height - i.height - i.height)
i.draw(@x, @y, @z)
i.draw(@x + i.width, @y, @z, clearw / i.width.to_f)
i.draw(@x + @width - i.width, @y, @z)
i.draw(@x, @y + i.height, @z, 1, clearh / i.height.to_f)
i.draw(@x + i.width, @y + i.height, @z, clearw / i.width.to_f, clearh / i.height.to_f)
i.draw(@x + @width - i.width, @y + i.height, @z, 1, clearh / i.height.to_f)
i.draw(@x, @y + @height - i.height, @z)
i.draw(@x + i.width, @y + @height - i.height, @z, clearw / i.width.to_f)
i.draw(@x + @width - i.width, @y + @height - i.height, @z)
end效果挺不错的……
主要用途是吐槽Gosu没有像RGSS一样的blt和变形的blt,不过倒是有很利于伪3D的draw_as_quad……
Sonic1997
发表于 2014-1-14 15:01:51
挂了代理上网于是正常多了=A=
翎·仲秋
发表于 2014-1-14 08:04:18
1.14
翎·仲秋
发表于 2014-1-13 08:03:25
1.13学校的最后一上午lol
664299301
发表于 2014-1-12 15:16:14
{:mm14:}
翎·仲秋
发表于 2014-1-12 08:41:33
1.12
satgo1546
发表于 2014-1-11 12:46:12
实在不知道要干什么了……
GMT+8, 2014-1-11 12:30 , Processed in 0.078871 second(s), 22 queries .