Beispiel #1
0
 public void Shot()
 {
     if (IsShot == false)
     {
         //3Way
         BelletGroup += (MoveObject) new Bellet1(DrawTool, Point);
         BelletGroup += (MoveObject) new Bellet1(DrawTool, Point, new Vector2(-2, -3));
         BelletGroup += (MoveObject) new Bellet1(DrawTool, Point, new Vector2(+2, -3));
         IsShot       = true;
         ShotTimer    = 0;
     }
 }
Beispiel #2
0
        public GameScene(DrawTool drawTool, UserInterface userInterface) : base(drawTool, userInterface)
        {
            this.SceneStats = SceneStats.game;

            Mikata       = new ManageMoveObject(drawTool);
            Teki         = new ManageMoveObject(drawTool);
            MikataBellet = new ManageMoveObject(drawTool);
            TekiBellet   = new ManageMoveObject(drawTool);

            nampo = new Character(DrawTool, "@", new Vector2(500, 600), new Vector2(0, 0), MikataBellet);

            Mikata += nampo;

            for (int i = 0; i < 10; i++)
            {
                Teki.Add(new teki(DrawTool, "P", new Vector2(10 + 10 * i, 10 + 30 * i), new Vector2(1, 0), nampo, TekiBellet));
            }
        }
Beispiel #3
0
 public teki(DrawTool drawTool, string pic, Vector2 point, Vector2 vec, MoveObject target, ManageMoveObject bulletGroup) : base(drawTool, pic, point, vec, bulletGroup)
 {
     IntervalShot = 150;
     this.target  = target;
 }
Beispiel #4
0
 public Character(DrawTool drawTool, string pic, Vector2 point, Vector2 vec, ManageMoveObject managebellet) : this(drawTool, pic, point, managebellet)
 {
     this.Vector = vec;
 }
Beispiel #5
0
 public Character(DrawTool drawTool, string pic, Vector2 point, ManageMoveObject managebellet) : this(drawTool, pic, point)
 {
     this.BelletGroup = managebellet;
 }