Exemplo n.º 1
0
        protected override void LoadContent()
        {
            this.spriteBatch = new SpriteBatch(GraphicsDevice);
            this.ninjaImage  = Content.Load <Texture2D>("Ninja");
            this.georgia     = Content.Load <SpriteFont>("Georgia");
            Cut cutImage = new Cut();

            parts    = cutImage.Split(ninjaImage, 100, 100);
            mainArea = new MainArea(parts);
            parts.Shuffle();
            topBar           = new TopBar(parts);
            this.puzzleLogic = new GameLogic();
            this.pixel       = Content.Load <Texture2D>("Pixel");
        }
Exemplo n.º 2
0
 protected override void LoadContent()
 {
     this.spriteBatch = new SpriteBatch(GraphicsDevice);
     this.ninjaImage = Content.Load<Texture2D>("Ninja");
     this.georgia = Content.Load<SpriteFont>("Georgia");
     Cut cutImage = new Cut();
     parts = cutImage.Split(ninjaImage, 100, 100);
     mainArea = new MainArea(parts);
     parts.Shuffle();
     topBar = new TopBar(parts);
     this.puzzleLogic = new GameLogic();
     this.pixel = Content.Load<Texture2D>("Pixel");
 }