public override void Initialize()
        {
            base.Initialize();
            _heroSprite = new GameAnimatedSprite("Game2D/Hero_Spritesheet", 8, 80, new Point(32, 39));
            _heroSprite.Translate(18, 388);
            _heroSprite.PivotPoint = new Vector2(16, 39);
            _heroSprite.CreateBoundingRect(32, 39, Vector2.Zero);
            AddChild(_heroSprite);

            base.Initialize();

            _heroSprite.PlayAnimation(true);
        }
        public override void Initialize()
        {
            _rockModel = new GameModel("Game3D/Rock");
            AddChild(_rockModel);

            _explosionSprite = new GameAnimatedSprite("Game2D/Explosion_Spritesheet", 16, 50, new Point(FrameSize, FrameSize), 4);
            _explosionSprite.CanDraw = false;
            _explosionSprite.Scale(new Vector2(ScaleFactor, ScaleFactor));
            CanDrop = true;
            _explosionSprite.Initialize();

            base.Initialize();
        }
        public override void Initialize()
        {
            _background = new GameSprite("Game2D/Background");
            _background.DrawInFrontOf3D = false;
            AddSceneObject(_background);

            _hero = new Hero2D();
            _hero.DrawBoundingRect = true;
            AddSceneObject(_hero);

            _staticHero = new GameAnimatedSprite("Game2D/Hero_Spritesheet", 8, 80, new Point(32, 39));
            _staticHero.CreateBoundingRect(32,39, Vector2.Zero);
            AddSceneObject(_staticHero);
            _staticHero.Translate(400, 388);
            _staticHero.PivotPoint = new Vector2(16, 39);
            _staticHero.DrawBoundingRect = true;

            _staticHero.PlayAnimation(true);

            // Tick the camera
            AddSceneObject(SceneManager.RenderContext.Camera);

            base.Initialize();
        }