/// <summary> /// Bullet を初期化する。 /// </summary> /// <param name="position">位置</param> /// <param name="radius">半径</param> /// <param name="angle">進行方向[rad]</param> /// <param name="speed">速度[px/frame]</param> /// <param name="color">色</param> public Bullet(int power, Position position, int radius, double angle, double speed, uint color) { Power = power; Position = position.Clone(); Radius = radius; Angle = angle; Speed = speed; Color = color; }
/// <summary> /// 自機を初期化する。 /// </summary> public OwnCharacter(ShootingGame game, Position pos) { this.game = game; Position = pos.Clone(); Radius = 7; speed = 5.0; slowSpeed = 2.0; img = DX.LoadGraph("img/own.bmp"); bulletFrame = 6; }
public Enemy(ShootingGame game) { Game = game; Position = new Position(); Dead = false; }