예제 #1
0
파일: GameScene25.cs 프로젝트: sinshu/chaos
 private void Init()
 {
     EggMachine left = new EggMachine(this, 10, 1, EggMachine.Direction.Right);
     EggMachine right = new EggMachine(this, 10, 27, EggMachine.Direction.Left);
     oyaji = new Oyaji(this, 6, 14, left, right);
     Enemies.AddThing(oyaji);
     Enemies.AddThing(left);
     Enemies.AddThing(right);
 }
예제 #2
0
        private void Init()
        {
            EggMachine left  = new EggMachine(this, 10, 1, EggMachine.Direction.Right);
            EggMachine right = new EggMachine(this, 10, 27, EggMachine.Direction.Left);

            oyaji = new Oyaji(this, 6, 14, left, right);
            Enemies.AddThing(oyaji);
            Enemies.AddThing(left);
            Enemies.AddThing(right);
        }
예제 #3
0
 public Oyaji(GameScene game, int row, int col, EggMachine left, EggMachine right)
     : base(game, RECTANGLE, new Vector(col * Settings.BLOCK_WDITH, row * Settings.BLOCK_WDITH), Vector.Zero, INIT_HEALTH)
 {
     leftEggMachine  = left;
     rightEggMachine = right;
     byaa            = null;
     nuru            = null;
     norio1          = null;
     norio2          = null;
     currentState    = State.Wait1;
     stateCount      = 0;
     animation       = 0;
     numDeathTicks   = 0;
 }
예제 #4
0
파일: Oyaji.cs 프로젝트: sinshu/chaos
 public Oyaji(GameScene game, int row, int col, EggMachine left, EggMachine right)
     : base(game, RECTANGLE, new Vector(col * Settings.BLOCK_WDITH, row * Settings.BLOCK_WDITH), Vector.Zero, INIT_HEALTH)
 {
     leftEggMachine = left;
     rightEggMachine = right;
     byaa = null;
     nuru = null;
     norio1 = null;
     norio2 = null;
     currentState = State.Wait1;
     stateCount = 0;
     animation = 0;
     numDeathTicks = 0;
 }