Exemple #1
0
        protected override void LoadContent()
        {
            spriteBatch   = new SpriteBatch(GraphicsDevice);
            background    = Content.Load <Texture2D>(@"Test\Caverns");
            spritesheet   = Content.Load <Texture2D>(@"Test\Spritesheet");
            cursortexture = Content.Load <Texture2D>(@"Test\Cursor");
            ui            = Content.Load <Texture2D>(@"Test\Interface");
            tx            = Content.Load <Texture2D>(@"Test\TextBox");
            consbold      = Content.Load <SpriteFont>(@"Test\ConsoleBold");
            consnrml      = Content.Load <SpriteFont>(@"Test\Console");

            protagonists[0] = new Protagonist(new Vector2(200, 300), spritesheet, new Rectangle(8, 0, 57, 75), Vector2.Zero);
            protagonists[1] = new Protagonist(new Vector2(300, 300), spritesheet, new Rectangle(8, 0, 57, 75), Vector2.Zero);
            protagonists[2] = new Protagonist(new Vector2(400, 300), spritesheet, new Rectangle(8, 0, 57, 75), Vector2.Zero);

            cursor     = new Sprite(Vector2.Zero, cursortexture, new Rectangle(0, 0, 50, 50), Vector2.Zero, MathHelper.Pi / 10);
            projectile = new Sprite(Vector2.Zero, spritesheet, new Rectangle(218, 7, 20, 20), Vector2.Zero);
        }
Exemple #2
0
        protected override void LoadContent()
        {
            spriteBatch   = new SpriteBatch(GraphicsDevice);
            background    = Content.Load <Texture2D>(@"Test\Background");
            tilesheet     = Content.Load <Texture2D>(@"Test\Tilesheet");
            spritesheet   = Content.Load <Texture2D>(@"Test\Spritesheet");
            cursortexture = Content.Load <Texture2D>(@"Test\Cursor");
            ui            = Content.Load <Texture2D>(@"Test\Interface");
            consbold      = Content.Load <SpriteFont>(@"Test\ConsoleBold");
            consnrml      = Content.Load <SpriteFont>(@"Test\Console");

            protagonists[0] = new Protagonist(new Vector2(200, 300), spritesheet, new Rectangle(8, 0, 57, 75), Vector2.Zero, 1);
            protagonists[1] = new Protagonist(new Vector2(300, 300), spritesheet, new Rectangle(8, 0, 57, 75), Vector2.Zero, 1);
            protagonists[2] = new Protagonist(new Vector2(400, 300), spritesheet, new Rectangle(8, 0, 57, 75), Vector2.Zero, 1);


            cursor     = new Sprite(Vector2.Zero, cursortexture, new Rectangle(0, 0, 50, 50), Vector2.Zero, 0.4f);
            projectile = new Sprite(Vector2.Zero, spritesheet, new Rectangle(228, 9, 15, 15), Vector2.Zero, 1);
        }