Example #1
0
        public void init(GraphicsContext graphics)
        {
            InitSpriteBatch(30, graphics);
            SetSpriteCount(30);

            toothUpper = new ToothUpper();
            toothUpper.Init();
            toothUnder = new ToothUnder();
            toothUnder.Init();
            Life = new LifeGuage();
            Life.Init();
            HpList = new Queue <Hp2dTex>();
            HpList.Enqueue(new Hp2dTex(1, 65, 60, (65 - 25) / 1));
            HpList.Enqueue(new Hp2dTex(1, 100, 60, (100 - 25) / 2));
            HpList.Enqueue(new Hp2dTex(1, 135, 60, (135 - 25) / 3));
            HpList.Enqueue(new Hp2dTex(1, 170, 60, (170 - 25) / 4));
            HpList.Enqueue(new Hp2dTex(2, 205, 60, (205 - 25) / 5));
            HpList.Enqueue(new Hp2dTex(2, 220, 30, (220 - 25) / 6));
        }
Example #2
0
        public void init(GraphicsContext graphics)
        {
            InitSpriteBatch( 30, graphics ) ;
            SetSpriteCount( 30 ) ;

            toothUpper = new ToothUpper();
            toothUpper.Init ();
            toothUnder = new ToothUnder();
            toothUnder.Init ();
            Life = new LifeGuage();
            Life.Init ();
            HpList = new Queue<Hp2dTex>();
            HpList.Enqueue(new Hp2dTex(1 , 65  ,60 , (65-25)/1));
            HpList.Enqueue(new Hp2dTex(1 , 100 ,60 , (100-25)/2));
            HpList.Enqueue(new Hp2dTex(1 , 135 ,60 , (135-25)/3));
            HpList.Enqueue(new Hp2dTex(1 , 170 ,60 , (170-25)/4));
            HpList.Enqueue(new Hp2dTex(2 , 205 ,60 , (205-25)/5));
            HpList.Enqueue(new Hp2dTex(2 , 220 ,30 , (220-25)/6));
        }