public MovingEnemy(asd.Vector2DF pos, NormalPlayer player) : base(pos, player) { CenterPosition = new asd.Vector2DF(Texture.Size.X / 2.0f, Texture.Size.Y / 2.0f); //moveVelocity = new asd.Vector2DF(); moveVelocity = new asd.Vector2DF(-1.0f, 0.0f); }
public Enemy(Vector2DF pos, NormalPlayer player) { Position = pos; this.player = player; Texture = asd.Engine.Graphics.CreateTexture2D("Resources/Player2.png"); CenterPosition = new asd.Vector2DF(Texture.Size.X / 2.0f, Texture.Size.Y / 2.0f); Radius = Texture.Size.X / 2.0f; //破壊時の効果音を読み込む deathSound = asd.Engine.Sound.CreateSoundSource("Resources/Explode.wav", true); enemycount++; }