Example #1
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);
            FrontSpriteBatch = new SpriteBatch(GraphicsDevice);

            prologueContent = new PrologueContent(Content);

            //Some general Setup information

            Screen.ScreenWidth  = GraphicsDevice.Viewport.Width;
            Screen.ScreenHeight = GraphicsDevice.Viewport.Height;

            Screen.GridSize = Screen.ScreenWidth / Screen.MinGridX;

            map1   = new Map(prologueContent, spriteBatch);
            player = new Player(350, 180, FrontSpriteBatch, prologueContent, map1.Tilelist);
            npc1   = new NPC(3, 5, FrontSpriteBatch, prologueContent, map1.Tilelist);

            Vector2 Location = new Vector2(100, 100);

            textbox1 = new InformationTextBox(Location, "HALLO HOE GAAT ET ERMEE@ Persoonlijk gaat het wel redelijk met mij, de bedoeling van deze zin is is dat ie tering lang word zodat hij gesplit moet worden@ Maar.. Maar@ Ohhnee@stut@stut@stutterrr@Jahoor@volgende pagina aub dankuwel@", 600, 150, FrontSpriteBatch, prologueContent);
            textbox1.SplitInLines();

            TestObject = new Objects(5, 5, "KEK", FrontSpriteBatch, prologueContent);



            // TODO: use this.Content to load your game content here
        }
Example #2
0
 public void Interact()
 {
     InformationTextBox Textbox2 = new InformationTextBox(new Vector2(100, 100), this.Information, 200, 200, this.FrontSpriteBatch, this.prologueContent);
 }