Files
alien-attack/AlientAttack.MonoGame/Things/Asteroids/AsteroidVariantB.cs

21 lines
556 B
C#

using AlienAttack.MonoGame.Textures;
namespace AlienAttack.MonoGame.Things.Asteroids;
public class AsteroidVariantB : Asteroid
{
public const int Width = 26;
public const int Height = 28;
protected override string TextureName => TextureNames.Asteriods.VariantB;
protected override int MaxHealth => 4;
public AsteroidVariantB(int x, int y) : base(x, y)
{
Origin = new(Width / 2, Height / 2);
BoundBox = new(0, 0, Width, Height);
YVelocity = 2;
XVelocity = 0;
RotationSpeed = 4f;
}
}