Exemple #1
0
 public Pawn(PawnColor color, PawnType type) : base("MasterMindPawn")
 {
     _effect = new Particle.ParticleSystem("light");
     _effect.SetLifeTime(10, 20);
     _effect.SetParent(this.EntityId);
     _effect.SetSize(0.2f, 0.2f);
     _effect.SetSpread(Helpers.PhysicsAndPositions.PI * 2);
     _effect.SetRandomSpeed(true, 0.05f);
     SetPawnColor(color);
     SetPawnType(type);
     SetTexture("pawn");
     Selected = false;
 }
Exemple #2
0
 public Pawn(PawnColor color, PawnType type)
     : base("MasterMindPawn")
 {
     _effect = new Particle.ParticleSystem("light");
     _effect.SetLifeTime(10, 20);
     _effect.SetParent(this.EntityId);
     _effect.SetSize(0.2f, 0.2f);
     _effect.SetSpread(Helpers.PhysicsAndPositions.PI * 2);
     _effect.SetRandomSpeed(true, 0.05f);
     SetPawnColor(color);
     SetPawnType(type);
     SetTexture("pawn");
     Selected = false;
 }
 public FlammingBall() : base()
 {
     Type = "Fball";
     EnableAirResistance(false);
     EnablePhysics(true);
     _fire.SetSpread(Helpers.PhysicsAndPositions.PI * 20.0f);
     _fire.SetLifeTime(20, 70);
     SetTexture(ResourceManager.GetTexture("ball"));
     Z_Index = 10;
     _fire.SetColor(0, 200, 0);
     _fire.SetParent(EntityId);
     _fire.SetPhysics(true);
     SetStaticObject(false);
     SetPhysSize(0.7f);
 }