Exemple #1
0
        public Text(Game1 g, DialogueBox db, NameBox nb)
        {
            game        = g;
            dialoguebox = db;
            namebox     = nb;

            file              = new System.IO.StreamReader(@"..\..\..\..\dialogue.txt");
            readready         = true;
            line1drawdone     = false;
            line2drawdone     = false;
            line3drawdone     = false;
            writing           = true;
            line1drawprogress = 0;
            line2drawprogress = 0;
            line3drawprogress = 0;

            // Text and name variables
            displayline1  = "";
            displayline2  = "";
            displayline3  = "";
            nameDisplay   = "";
            nameWaifu1    = "Faith";
            nameHusbando1 = "Jay";
            nameProtag    = "Mary";
            nameNone      = "";
            drawName      = false;

            // Text formatting variables
            maxlinelength = 70;
            nameCenterX   = 0;

            // Character States
            boolFaithPsycho = false;
        }
Exemple #2
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);

            // Load Textures
            textureDialogueBox  = Content.Load <Texture2D>("dialogueTEMP");
            textureNameBox      = Content.Load <Texture2D>("nameTEMP");
            textureDialogueTick = Content.Load <Texture2D>("dialogueAnimationTiny");
            bgLibrary           = Content.Load <Texture2D>("Library Background color");
            bgBlack             = Content.Load <Texture2D>("bgBlack");
            cgPinky             = Content.Load <Texture2D>("PinkyCG");

            // Load Sound
            ScaryTheme              = Content.Load <Song>("ScaryTheme5v2");
            AbstractVision          = Content.Load <Song>("AbstractVision5");
            sfxHeartbeat            = Content.Load <SoundEffect>("heartbeat");
            MediaPlayer.IsRepeating = true;
            MediaPlayer.Volume      = 0.5f;

            // Create new instances of necessary objects and controllers
            dialoguebox  = new DialogueBox(this, textureDialogueBox);
            namebox      = new NameBox(this, textureNameBox);
            text         = new Text(this, dialoguebox, namebox);
            dialoguetick = new DialogueTick(this, textureDialogueTick);
            bg           = new Background(this, bgLibrary);
            text.LoadContent(Content);
        }