Example #1
0
 public override void LoadContent()
 {
     base.LoadContent();
     tester = new Sprite();
     tester.LoadContent("Art/test", _Content);
     tester._Position = new Vector2(100, 100);
 }
Example #2
0
 public override void LoadContent(string path, ContentManager content)
 {
     base.LoadContent(path, content);
     collisionBox.LoadContent("Art/Collision", content);
     collisionBox.frameWidth  = 10; //this._ProjectileTip.Width;
     collisionBox.frameHeight = 10; //this._ProjectileTip.Height;
 }
Example #3
0
        internal override void LoadContent(ContentManager content, bool wasReloaded = false)
        {
            spriteBatch = new SpriteBatch(game.GraphicsDevice);

            // load chars
            for (int i = 0; i < 4; ++i)
            {
                chars[i] = content.Load <Texture2D>($"Images/character_{i + 1:00}.png");
            }

            // load distance indicator
            distanceScale = content.Load <Texture2D>("Images/DistanceIndicator.png");
            distanceMarker.LoadContent(content, wasReloaded);

            // load textbox
            var tb = new string[] { "tl", "t", "tr", "l", "m", "r", "bl", "b", "br" };

            for (int i = 0; i < 9; ++i)
            {
                textbox[i] = content.Load <Texture2D>($"Images/textbox_{tb[i]}.png");
            }

            // load title
            Title.LoadContent(content);
            Title.Phy.Pos = new Vector2(game.Screen.CanvasWidth * 0.2f, game.Screen.CanvasHeight * 0.4f);
        }
        protected override void LoadContent()
        {
            spriteBatch        = new SpriteBatch(GraphicsDevice);
            Sprite.spriteBatch = spriteBatch;

            CourierNew = Content.Load <SpriteFont>("Courier New");

            background.LoadContent("Background");
            cursor.LoadContent("Cursor2");

            foreach (Button b in cellButtons)
            {
                b.LoadContent(@"Cell");
            }

            speed2Button.LoadContent(@"Buttons\Speed_2");
            speed5Button.LoadContent(@"Buttons\Speed_5");
            speed10Button.LoadContent(@"Buttons\Speed_10");
            speed30Button.LoadContent(@"Buttons\Speed_30");
            speedPButton.LoadContent(@"Buttons\Speed_P");
            startButton.LoadContent(@"Buttons\Play");
            pauseButton.LoadContent(@"Buttons\Pause");
            restartButton.LoadContent(@"Buttons\Restart");
            exitButton.LoadContent(@"Buttons\Exit");
        }
Example #5
0
        public Duck(string name, int x, int y)
        {
            Name = name;

            _duckDeath = new Sprite("DuckDeath");
            _duckDeath.LoadContent("DuckDeath");

            _duckDive = new Sprite("DuckDive");
            _duckDive.LoadContent("DuckDive");

            _duck = new AnimatedSprite()
            {
                RenderBoundingBox = false,
                Name = name
            };

            _duck.LoadFrameTexture("DuckFrame1");
            _duck.LoadFrameTexture("DuckFrame2");
            _duck.LoadFrameTexture("DuckFrame3");

            _duck.Velocity       = new Vector2(7, 5);
            _duck.Flip           = false;
            _duck.Location       = new Vector2(x, y);
            _duck.IsVisible      = true;
            _duck.IsEnabled      = true;
            _duck.AnimationType  = AnimationTypeEnum.PingPong;
            _duck.AnimationSpeed = 5;
            _duck.Play();
            State = DuckStateEnum.Start;

            SoundEffectPlayer.LoadSoundEffect("death");
            SoundEffectPlayer.LoadSoundEffect("quaks");
            SoundEffectPlayer.LoadSoundEffect("falling");
            SoundEffectPlayer.LoadSoundEffect("flapping");
        }
Example #6
0
        /// <summary>
        /// Loads the content.
        /// </summary>
        public void LoadContent()
        {
            idleSprite = new Sprite
            {
                Effects     = nameof(AnimationEffect),
                ContentFile = "Cursors/idle",
                Active      = true
            };
            clickSprite = new Sprite
            {
                Effects     = nameof(AnimationEffect),
                ContentFile = "Cursors/click",
                Active      = true
            };

            idleSprite.AnimationEffect = new AnimationEffect
            {
                FrameAmount = new Point2D(8, 1).ToXnaPoint(),
                SwitchFrame = 150
            };
            clickSprite.AnimationEffect = new AnimationEffect
            {
                FrameAmount = new Point2D(8, 1).ToXnaPoint(),
                SwitchFrame = 150
            };

            SetChildrenProperites();

            idleSprite.LoadContent();
            clickSprite.LoadContent();

            InputManager.Instance.MouseButtonPressed  += InputManager_OnMouseButtonPressed;
            InputManager.Instance.MouseButtonReleased += InputManager_OnMouseButtonReleased;
            InputManager.Instance.MouseMoved          += InputManager_OnMouseMoved;
        }
Example #7
0
        public override void LoadContent()
        {
            menu.LoadContent();

            Texture2D  Left   = game.Content.Load <Texture2D>("Textures/UI/button/bL");
            Texture2D  Right  = game.Content.Load <Texture2D>("Textures/UI/button/bR");
            Texture2D  Middle = game.Content.Load <Texture2D>("Textures/UI/button/bM");
            SpriteFont font   = game.Content.Load <SpriteFont>("fonts/small");

            pixel = game.Content.Load <Texture2D>("p");

            exit = new Button()
            {
                buttonLeft         = Left,
                buttonRight        = Right,
                buttonMiddle       = Middle,
                labelFont          = font,
                label              = "x",
                focused            = true,
                rect               = new Rectangle(0, 0, 30, 30),
                buttonColorDefault = Color.Red,
                buttonColorHover   = Color.DarkRed,
                buttonColorPressed = Color.Black
            }; exit.LoadContent();

            bg = new Sprite()
            {
                texturename = "Textures/bg/bg1",
                color       = Color.White,
                position    = Vector2.Zero,
                game        = game
            }; bg.LoadContent();

            base.LoadContent();
        }
Example #8
0
        /// <summary>
        /// Loads all content
        /// </summary>
        /// <param name="contentManager"></param>
        public override void LoadContent(ContentManager contentManager)
        {
            base.LoadContent(contentManager);

            this._intermediateTarget = new RenderTarget2D(Game.GraphicsDevice, 800, 600);
            this._distortTarget      = new RenderTarget2D(Game.GraphicsDevice, 800, 600);
            this._distortEffect      = contentManager.Load <Effect>("Shaders\\Distort");

            //Default projection
            Matrix projection      = Matrix.CreateOrthographicOffCenter(0, this._intermediateTarget.Width, this._intermediateTarget.Height, 0, 0, 1);
            Matrix halfPixelOffset = Matrix.CreateTranslation(-0.5f, -0.5f, 0);

            this._distortEffect.Parameters["Projection"].SetValue(halfPixelOffset * projection);

            this._retroTv = contentManager.Load <Texture2D>("Graphics\\retrotv");

            _spriteField.LoadContent(contentManager);
            _spriteGhostBlock.LoadContent(contentManager);
            _spriteFallingBlock.LoadContent(contentManager);
            _spriteNextBlock.LoadContent(contentManager);
            _spriteHoldBlock.LoadContent(contentManager);
            _spriteNextBlockBoundary.LoadContent(contentManager);
            _spriteHoldBlockBoundary.LoadContent(contentManager);

            _rotateSound = this.AudioManager.Load("blip", "rotate", 0.6f, 0);
            _lockSound   = this.AudioManager.Load("blip", "lock", 0.6f, -.5f);

            this.ScreenManager.SpriteFonts.LoadFont("SmallInfo", "Fonts/Small");
            this.ScreenManager.SpriteFonts.LoadFont("Small", "Fonts/Small");
        }
Example #9
0
        protected override void LoadContent()
        {
            Window.AllowUserResizing = true;

            _crosshair.LoadContent("crosshair");

            _scene.AddSpriteToLayer(RenderLayerEnum.LAYER5, _crosshair);
        }
Example #10
0
        protected override void LoadContent()
        {
            Window.AllowUserResizing = true;
            _logo.LoadContent("ExoEngineLogo");
            _logo.Location = new Vector2(100, 100);

            _scene.AddSpriteToLayer(RenderLayerEnum.LAYER1, _logo);
        }
Example #11
0
 public override void LoadContent()
 {
     sprite.LoadContent(content);
     sprite.Position = new Vector2(
         (game.ScreenWidth / 2) - (sprite.Width / 2),
         (game.ScreenHeight / 2) - (sprite.Height / 2)
         );
 }
Example #12
0
        private Sprite SpriteFromRect(Rectangle rect, Microsoft.Xna.Framework.Content.ContentManager content)
        {
            Sprite newSprite = new Sprite();

            newSprite._Position = new Vector2(rect.Center.X, rect.Center.Y);
            newSprite.LoadContent("Art/Collision", content);
            return(newSprite);
        }
Example #13
0
        static public void Decors(ContentManager content, Sprite Back, out Sprite[] Entite, int numbDecor, Vector2 PosDepart) //Definie les caracteristiques du decor choisi
        {
            Back.Initialize(Vector2.Zero + PosDepart);

            // Decor 1 : Arbres en Diagonales
            if (numbDecor == 1)
            {
                Entite = new Sprite[15];
                Back.LoadContent(content, "Sprites/BackGrounds/Fond2");

                for (int i = 0; i < Entite.Length; i++)
                {
                    Entite[i] = new Sprite();
                    Entite[i].Initialize(new Vector2(80 * i) + PosDepart);
                }
                for (int i = 0; i < Entite.Length; i++)
                {
                    Entite[i].LoadContent(content, "Sprites/Decors/Arbrebeta");
                }
            }
            // Decor 2 : Axe d'arbres
            else
            {
                Entite = new Sprite[50];
                Back.LoadContent(content, "Sprites/BackGrounds/Fond2");

                for (int i = 0; i < Entite.Length / 2; i++)
                {
                    Entite[i] = new Sprite();
                    Entite[i].Initialize(new Vector2(80 * i + PosDepart.X, PosDepart.Y));
                }
                for (int i = 0; i < Entite.Length / 2 - 1; i++)
                {
                    Entite[i + Entite.Length / 2] = new Sprite();
                    Entite[i + Entite.Length / 2].Initialize(new Vector2(PosDepart.X, 80 * i + PosDepart.Y));
                }
                Entite[Entite.Length - 1] = new Sprite();
                Entite[Entite.Length - 1].Initialize(new Vector2(MainGame.ScreenX / 2, MainGame.ScreenY / 2));
                for (int i = 0; i < Entite.Length; i++)
                {
                    Entite[i].LoadContent(content, "Sprites/Decors/Arbrebeta");
                }
            }
        }
Example #14
0
        /// <summary>
        /// Loads the content.
        /// </summary>
        public override void LoadContent()
        {
            sprite = new Sprite();

            SetChildrenProperties();

            sprite.LoadContent();

            base.LoadContent();
        }
        /// <summary>
        /// Loads all content
        /// </summary>
        /// <param name="manager"></param>
        public override void LoadContent(Microsoft.Xna.Framework.Content.ContentManager manager)
        {
            base.LoadContent(manager);

            for (Int32 i = 0; i < _toolTypes.Length; i++)
            {
                _tools[i].LoadContent(manager);
            }

            _selection.LoadContent(manager);
        }
Example #16
0
        public Duck(string name, int x, bool flip, float vx, float vy)
        {
            Name = name;

            _duckDeath = new Sprite("DuckDeath");
            _duckDeath.LoadContent("DuckDeath");

            _duckDive = new Sprite("DuckDive");
            _duckDive.LoadContent("DuckDive");

            _duck = new AnimatedSprite()
            {
                RenderBoundingBox = false,
                Name = name
            };

            _duck.LoadFrameTexture("DuckFrame1");
            _duck.LoadFrameTexture("DuckFrame2");
            _duck.LoadFrameTexture("DuckFrame3");

            if (vx > 0)
            {
                vx += DifficultySettings.CurrentDifficulty.SpeedDifference;
            }
            else
            {
                vx -= DifficultySettings.CurrentDifficulty.SpeedDifference;
            }

            if (vy > 0)
            {
                vy += DifficultySettings.CurrentDifficulty.SpeedDifference;
            }
            else
            {
                vy -= DifficultySettings.CurrentDifficulty.SpeedDifference;
            }

            _duck.Velocity       = new Vector2(vx, vy);
            _duck.Flip           = flip;
            _duck.Location       = new Vector2(x, 900);
            _duck.IsVisible      = true;
            _duck.IsEnabled      = true;
            _duck.AnimationType  = AnimationTypeEnum.PingPong;
            _duck.AnimationSpeed = 5;
            _duck.Play();
            State = DuckStateEnum.Start;

            SoundEffectPlayer.LoadSoundEffect("death");
            SoundEffectPlayer.LoadSoundEffect("quaks");
            SoundEffectPlayer.LoadSoundEffect("falling");
            SoundEffectPlayer.LoadSoundEffect("flapping");
        }
Example #17
0
 public override void LoadContent(ContentManager contentManager, SpriteBatch spriteBatch)
 {
     base.LoadContent(contentManager, spriteBatch);
     tankSprite.LoadContent(contentManager, spriteBatch);
     powerupRectangle.LoadContent(contentManager, spriteBatch);
     _timerText = new SpriteText("HealthFont", "4", statsBarPosition);
     _timerText.LoadContent(contentManager, spriteBatch);
     engineSound          = AudioManager.GetSFXInstance("Engine");
     engineSound.Volume   = 0.3f;
     engineSound.IsLooped = true;
     engineSound.Play();
 }
Example #18
0
        public Shaman(GameWorld gameWorld)
            : base(gameWorld)
        {
            Graphic.Layer = 1;

            Graphic = new Sprite(gameWorld.ContentManager);
            Graphic.LoadContent("gfx/Avatar/shaman/shaman");
            Graphic.Offset = new Vector2(Graphic.Texture.Width / 2 - 50, Graphic.Texture.Height / 2 - 60);

            animations = new ShamanAnimations(Graphic.Texture);

            BuildPhysicalBody();
        }
Example #19
0
 public void init(TextureManager textures)
 {
     commander.LoadContent(textures);
     juggernaut.LoadContent(textures);
     gunner.LoadContent(textures);
     medic.LoadContent(textures);
     specialist.LoadContent(textures);
     sniper.LoadContent(textures);
     bombardier.LoadContent(textures);
     grunt.LoadContent(textures);
     suicide.LoadContent(textures);
     soldierInGame.LoadContent(textures);
     commanderInGame.LoadContent(textures);
 }
Example #20
0
        protected override void LoadContent()
        {
            Window.AllowUserResizing = true;
            _logo.LoadContent("ExoEngineLogo");
            _logo.Location = new Vector2(550, 20);

            _titles.LoadContent("titles");
            _titles.Location = new Vector2(200, 800);
            _titles.Shadow   = true;
            _titles.Text     = "Exo Game 2D";

            _scene.AddSpriteToLayer(RenderLayerEnum.LAYER1, _logo);
            _scene.AddSpriteToLayer(RenderLayerEnum.LAYER2, _titles);
        }
Example #21
0
        /// <summary>
        /// Loads all content
        /// </summary>
        /// <param name="manager"></param>
        public override void LoadContent(Microsoft.Xna.Framework.Content.ContentManager manager)
        {
            base.LoadContent(manager);

            _placingSprite.LoadContent(manager);
            _cursorStandard.LoadContent(manager);
            _cursorDelete.LoadContent(manager);
            _spriteHappyPoints.LoadContent(manager);
            _spriteLogo.LoadContent(manager);
            _spriteTime.LoadContent(manager);

            _fontTime   = this.ContentManager.Load <SpriteFont>("Fonts/Time");
            _fontPoints = this.ContentManager.Load <SpriteFont>("Fonts/Time");
        }
Example #22
0
 public override void LoadContent(string path, ContentManager content)
 {
     base.LoadContent(path, content);
     arrowTex = content.Load <Texture2D>("Art/Sword");
     SetupAnimation(2, 10, 3, true);
     sword.LoadContent("Art/Sword", content);
     //sword.ToggleCorners();
     swordTip.LoadContent("Art/Collision", content);
     swordTip.frameHeight = 16;
     swordTip.frameWidth  = 16;
     foreach (Projectile arrow in _DeadArrows)
     {
         arrow.LoadContent("Art/Sword", content);
     }
 }
Example #23
0
        /// <summary>
        /// Loads the content.
        /// </summary>
        public override void LoadContent()
        {
            sprite = new Sprite();

            SetChildrenProperties();

            sprite.LoadContent();

            base.LoadContent();

            if (SourceRectangle == Rectangle2D.Empty)
            {
                SourceRectangle = new Rectangle2D(Point2D.Empty, sprite.SpriteSize);
            }
        }
Example #24
0
        public override void LoadContent()
        {
            mob = new Sprite
            {
                ContentFile       = "SpriteSheets/Mobs/human_male_white",
                SpriteSheetEffect = new HumanSpriteSheetEffect(),
                Active            = true
            };

            mob.SpriteSheetEffect.AssociateSprite(mob);
            mob.LoadContent();

            base.LoadContent();

            mob.SpriteSheetEffect.Activate();
        }
Example #25
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            bg = new Sprite
            {
                texturename = "minion",
                color       = Color.White,
                position    = Vector2.Zero,
                game        = this
            }; bg.LoadContent();

            ScreenManager.Instance.LoadContent(Content);

            // TODO: use this.Content to load your game content here
        }
        /// <summary>
        /// Loads the content.
        /// </summary>
        public void LoadContent()
        {
            transitionSprite = new Sprite
            {
                ContentFile = "ScreenManager/FillImage",
                Tint        = Colour.Black,
                FadeEffect  = new FadeEffect {
                    Speed = 3
                },
                TextureLayout = TextureLayout.Tile
            };

            transitionSprite.FadeEffect.AssociateSprite(transitionSprite);

            currentScreen.LoadContent();
            transitionSprite.LoadContent();
        }
Example #27
0
        /// <summary>
        /// Loads the content.
        /// </summary>
        public void LoadContent()
        {
            idleSprite = new Sprite {
                ContentFile = "Cursors/idle"
            };
            clickSprite = new Sprite {
                ContentFile = "Cursors/click"
            };

            SetChildrenProperites();

            idleSprite.LoadContent();
            clickSprite.LoadContent();

            InputManager.Instance.MouseButtonPressed  += InputManager_OnMouseButtonPressed;
            InputManager.Instance.MouseButtonReleased += InputManager_OnMouseButtonReleased;
            InputManager.Instance.MouseMoved          += InputManager_OnMouseMoved;
        }
Example #28
0
        /// <summary>
        /// Loads the content.
        /// </summary>
        public override void LoadContent()
        {
            backgroundImage = new GuiImage
            {
                ContentFile   = "ScreenManager/FillImage",
                TextureLayout = TextureLayout.Tile
            };

            textSprite = new Sprite();

            Children.Add(backgroundImage);

            SetChildrenProperties();

            textSprite.LoadContent();

            base.LoadContent();
        }
Example #29
0
        /// <summary>
        /// Loads the content.
        /// </summary>
        public override void LoadContent()
        {
            camera = new Camera {
                Size = Size
            };
            map = new Map();

            provinceHighlight = new Sprite
            {
                ContentFile     = "World/Effects/border",
                SourceRectangle = new Rectangle2D(GameDefines.MAP_TILE_SIZE, GameDefines.MAP_TILE_SIZE * 3,
                                                  GameDefines.MAP_TILE_SIZE, GameDefines.MAP_TILE_SIZE),
                Tint    = Colour.White,
                Opacity = 1.0f
            };

            selectedProvinceHighlight = new Sprite
            {
                ContentFile     = "World/Effects/border",
                SourceRectangle = new Rectangle2D(0, GameDefines.MAP_TILE_SIZE * 3,
                                                  GameDefines.MAP_TILE_SIZE, GameDefines.MAP_TILE_SIZE),
                Tint    = Colour.White,
                Opacity = 1.0f
            };

            factionBorder = new Sprite
            {
                ContentFile     = "World/Effects/border",
                SourceRectangle = new Rectangle2D(0, GameDefines.MAP_TILE_SIZE,
                                                  GameDefines.MAP_TILE_SIZE, GameDefines.MAP_TILE_SIZE),
                Tint    = Colour.Blue,
                Opacity = 1.0f
            };

            camera.LoadContent();
            map.LoadContent(game.GetWorld());

            provinceHighlight.LoadContent();
            selectedProvinceHighlight.LoadContent();
            factionBorder.LoadContent();

            base.LoadContent();
        }
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            _spriteBatch = new SpriteBatch(GraphicsDevice);

            _mainSprite = new Sprite();

            _arrowRightSprite = new Sprite();
            _arrowRightSprite.LoadContent(Content, "arrowRight");
            _arrowRightSprite.Position = Vector2.Zero;

            _arrowLeftSprite = new Sprite();
            _arrowLeftSprite.LoadContent(Content, "arrowLeft");
            _arrowLeftSprite.Position = new Vector2(100, 100);

            _mainSprite.AddChildren(_arrowLeftSprite);
            _mainSprite.AddChildren(_arrowRightSprite);

            _arrowRightSprite.MouseClicked += arrowRightSprite_mouseClicked;
        }
Example #31
0
        public override void LoadContent()
        {
            font = game.Content.Load <SpriteFont>("fonts/big");

            heart = new Sprite()
            {
                texturename = "Textures/UI/HUD/heart",
                color       = Color.White,
                game        = game
            }; heart.LoadContent();

            sword = new Sprite()
            {
                texturename = "Textures/UI/HUD/sword",
                color       = Color.White,
                game        = game
            }; sword.LoadContent();

            base.LoadContent();
        }
Example #32
0
        /*
         * Load graphics content for the game.
         */
        public override void LoadContent()
        {
            if (content == null)
            {
                content = new ContentManager(ScreenManager.Game.Services, "Content/GraphicsContent");
            }
            gameFont = content.Load<SpriteFont>("menufont");
            /*
             * Adding the background
             */
            mBackgroundOne = new Sprite();
            mBackgroundOne.LoadContent(this.content, "Background01");
            mBackgroundOne.Position = new Vector2(0, 0);
            mBackgroundOne.Scale = 1;

            /*
             * Adding the projectile penguin
             */
            nerd = new Nerd();
            nerd.LoadContent(this.content, 150, 600);
            ammukset = nerd.ammukset;

            /*
             * Adding the walls and targets
             */
            target = new Sika();
            target.Scale = 0.3F;
            target.value = 3;
            target.LoadContent(this.content, 800, 500, "birdy");

            target2 = new Sika();
            target2.Scale = 0.3F;
            target2.value = 5;
            target2.LoadContent(this.content, 700, 600, "birdy");

            target3 = new Sika();
            target3.Scale = 0.3F;
            target3.value = 7;
            target3.LoadContent(this.content, 700, 300, "birdy");

            target4 = new Sika();
            target4.Scale = 0.3F;
            target4.value = 10;
            target4.LoadContent(this.content, 480, 550, "birdy");

            target5 = new Sika();
            target5.Scale = 0.3F;
            target5.value = 8;
            target5.LoadContent(this.content, 500, 200, "birdy");

            wall = new Tile();

            wall.LoadContent(this.content, 400, 500, "tile2");

            wall.LoadContent(this.content, 400, 500, "tile3");

            wall2 = new Tile();
            wall2.LoadContent(this.content, 400, 530, "tile3");

            wall3 = new Tile();
            wall3.LoadContent(this.content, 400, 560, "tile3");

            wall4 = new Tile();
            wall4.LoadContent(this.content, 400, 590, "tile3");

            wall5 = new Tile();
            wall5.LoadContent(this.content, 400, 620, "tile3");

            wall6 = new Tile();
            wall6.LoadContent(this.content, 400, 650, "tile3");

            wall7 = new Tile();
            wall7.LoadContent(this.content, 400, 680, "tile3");

               /*
            * A super cool one second wait when the load is finished to make the illusion our game is heavy
            */
            Thread.Sleep(1000);

            ScreenManager.Game.ResetElapsedTime();
        }
Example #33
0
        /// <summary>
        /// Load graphics content for the game.
        /// </summary>
        public override void LoadContent()
        {
            if (content == null)
            {
                content = new ContentManager(ScreenManager.Game.Services, "Content/GraphicsContent");
            }

            gameFont = content.Load<SpriteFont>("menufont");
               // spriteBatch = new SpriteBatch(GraphicsDevice);

            //määritellään background
            mBackgroundOne = new Sprite();
            mBackgroundOne.LoadContent(this.content, "Background01");
            mBackgroundOne.Position = new Vector2(0, 0);
            mBackgroundOne.Scale = 1;

            //määrritellään tuxi
            nerd = new Nerd();
            nerd.LoadContent(this.content);
            nerd.Position.X = 800;
            nerd.Position.Y = 300;

            //tarkoitus tehdä tästä "possu"
            target = new Sika();
            target.LoadContent(this.content);
            target.Position.X = 900;
            target.Position.Y = 600;

               // mBackgroundTwo.LoadContent(this.content, "Background02");
               // mBackgroundTwo.Position = new Vector2(mBackgroundOne.Position.X + mBackgroundOne.Size.Width, 0);

            //mBackgroundThree.LoadContent(this.Content, "Background03");
            //mBackgroundThree.Position = new Vector2(mBackgroundTwo.Position.X + mBackgroundTwo.Size.Width, 0);

            //mBackgroundFour.LoadContent(this.Content, "Background04");
            //mBackgroundFour.Position = new Vector2(mBackgroundThree.Position.X + mBackgroundThree.Size.Width, 0);

            //mBackgroundFive.LoadContent(this.Content, "Background05");
            //mBackgroundFive.Position = new Vector2(mBackgroundFour.Position.X + mBackgroundFour.Size.Width, 0);

            //lintu

               //tämän voi poistaa lopullisesta, mutta antaa paremman fiiliksen kun load screeni näkyy hetken :)
            Thread.Sleep(1000);

            // once the load has finished, we use ResetElapsedTime to tell the game's
            // timing mechanism that we have just finished a very long frame, and that
            // it should not try to catch up.
            ScreenManager.Game.ResetElapsedTime();

            //vanhasta luokasta revitut dädät:

            // Create a new SpriteBatch, which can be used to draw textures.

            //mitä näillä tehdään?
            //mSprite.LoadContent(this.Content, "birdy");
            //mSprite.Position = new Vector2(125, 245);

            //mSpriteTwo.LoadContent(this.Content, "birdy");
            //mSpriteTwo.Position.X = 300;
            //mSpriteTwo.Position.Y = 300;
        }