Пример #1
0
 /// <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;
 }
Пример #2
0
 /// <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;
 }
Пример #3
0
 public Enemy(ShootingGame game)
 {
     Game = game;
     Position = new Position();
     Dead = false;
 }