starparticle.as
来自「Flex3实现的掼蛋游戏」· AS 代码 · 共 29 行
AS
29 行
package org.papervision3d.objects.particles{ import org.papervision3d.core.geom.Vertex3D; import flash.display.Sprite; public class StarParticle extends AbstractParticle implements IParticle { /** * StarParticle * * used by the ParticleField as the Particle object to render. */ public function StarParticle(color:int=0xFFFFFF, size:int=1, x:Number=0, y:Number=0, z:Number=0) { super(color, size, x, y, z); } override public function render(container:Sprite):int { if(vertex3D.vertex2DInstance.visible){ container.graphics.beginFill(color, 1); container.graphics.drawCircle(vertex3D.vertex2DInstance.x, vertex3D.vertex2DInstance.y,size); container.graphics.endFill(); } return 1; } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?