Exemple #1
0
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            // TODO: use this.Content to load your game content here
            Background     = Content.Load <Texture2D>("kosmos1");
            Frontground    = Content.Load <Texture2D>("425-sozdanie-kosmicheskoy-strelyalki-v-hge-chast-1");
            SpaceShipModel = Content.Load <Texture2D>("SpaceShip");
            menu.LoadContent(Content);
            //bang.LoadContent(Content, "bang");
            //AnimatedBang.LoadContent(Content, "bang");
        }
Exemple #2
0
        protected override void LoadContent()
        {
            spriteBatch = new SpriteBatch(GraphicsDevice);
            myTexture   = Content.Load <Texture2D>("player");
            myRectangle = new Rectangle(400, 450, 64, 64);
            // Collisions Window Player Settings
            screenWidth  = GraphicsDevice.Viewport.Width;
            screenHeight = GraphicsDevice.Viewport.Height;

            myBackground = new ScrollingBackground();
            Texture2D background = Content.Load <Texture2D>("space");

            myBackground.Load(GraphicsDevice, background);

            blockTexture1 = Content.Load <Texture2D>("textures/block");
            blockTexture2 = Content.Load <Texture2D>("textures/block2");

            CreateLevel1();

            menu.LoadContent(Content);
        }