示例#1
0
        public MeatStand(float givenX, float givenY, float givenRotation) : base(givenX, givenY, "MeatStand.png", givenRotation)
        {
            _buyMenu    = new Sprite("buyScreen.png");
            _buyMenu2   = new Sprite("buyScreen2.png");
            _exitButton = new Sprite("exitCross.png");
            _buyMenu.SetOrigin(_buyMenu.width / 2, _buyMenu.height / 2);
            _buyMenu.SetXY(game.width - _buyMenu.width + 150, game.height - _buyMenu.height + 150);
            _buyMenu2.SetOrigin(_buyMenu.width / 2, _buyMenu.height / 2);
            _buyMenu2.SetXY(game.width - _buyMenu.width + 150, game.height - _buyMenu.height + 150);
            _exitButton.SetXY(_buyMenu.x + 500, _buyMenu.y - 325);
            _menuShown = false;
            scale      = 0.85f;

            _boughtItem = new EasyDraw(1920, 1080);
            _boughtItem.TextSize(16);
            _boughtItem.SetColor(0, 0, 0);
        }