Example #1
0
 public StaticEntity()
     : base()
 {
     CurrentState = new StaticEntityState();
     this.DrawLayer = Game1.Instance.Random.Next(1300, 1499);
     this.MovementVector = new Vector2(0, 0);
 }
Example #2
0
 public Grenade(Vector2 position, Vector2 direction, float force, float damage)
     : base(position)
 {
     this.damage = damage;
     FaceVector = new Vector2(1, 0);
     TexturePath = ("grenade");
     counter = 0;
     rotationSpeed = 0.5f;
     this.ActiveThinkDelay = 10;
     this.InActiveThinkDelay = 10;
     direction.Normalize();
     MovementVector = direction * force;
     CurrentState = new StaticEntityState();
 }