Ejemplo n.º 1
0
        protected override void LoadContent()
        {
            _spriteBatch = new SpriteBatch(GraphicsDevice);

            _ctverecek = new Ctverecek(
                50, 5,
                new Vector2((_sirkaOkna - 50) / 2, (_vyskaOkna - 50) / 2),
                new SmeroveOvladani(Keys.Left, Keys.Right, Keys.Up, Keys.Down, Keys.B),
                new Rectangle(0, 0, _sirkaOkna, _vyskaOkna),
                Color.BlueViolet, GraphicsDevice
                );;;;
        }
Ejemplo n.º 2
0
        protected override void LoadContent()
        {
            _spriteBatch = new SpriteBatch(GraphicsDevice);

            _ctverecek = new Ctverecek(
                50, 5,
                new Vector2(_px, _py),
                new SmeroveOvladani(Keys.Left, Keys.Right, Keys.Up, Keys.Down),
                new Rectangle(0, 0, _sirkaOkna, _vyskaOkna),
                Color.Black, GraphicsDevice
                );;

            _ctverecek2 = new Ctverecek2(
                50, 5,
                new Vector2((_sirkaOkna - 50) / 2 - 25, (_vyskaOkna - 50) / 2),
                new OvladaniDucha(Keys.Left, Keys.Right, Keys.Up, Keys.Down),
                new Rectangle(0, 0, _sirkaOkna, _vyskaOkna),
                Color.Gray, GraphicsDevice
                );
        }