示例#1
0
 public SpriteInstance(SpriteInstance sprite)
 {
     texture     = sprite.texture;
     coordinates = sprite.coordinates;
     tilesNumber = sprite.tilesNumber;
     spriteVerts = new VertexPositionTexture[6];
     alpha       = sprite.alpha;
     graphics    = sprite.graphics;
     effect      = new BasicEffect(graphics.GraphicsDevice);
 }
示例#2
0
 public Particle(string ID, ParticleSystemType type, float lifeTime, SpriteInstance form, float alpha, float size, Vector3 position, GameObject parent)
 {
     this.ID       = ID;
     this.type     = type;
     this.lifeTime = lifeTime;
     this.form     = form;
     this.alpha    = alpha;
     this.size     = size;
     this.position = position;
     CreateBody(ID, parent);
 }