コード例 #1
0
ファイル: Game1.cs プロジェクト: Zombiedance/snow
        protected override void LoadContent()
        {
            bgs = Content.Load<Song>("main");

            FootTextu = Content.Load<Texture2D>("feet");
            Char_bod = Content.Load<Texture2D>("fullbody");

            TextHealthBar = Content.Load<Texture2D>("healthbar-plain");
            TextStamBar = Content.Load<Texture2D>("staminabar-plain");

            Ply = new Player(Char_bod, new Vector2(300, 200),FootTextu, Textbox, TextHealthBar);

            boardtext = Content.Load<Texture2D>("bottomtext");

            snow = Content.Load<Texture2D>("snow1");
            snowing = new FallingSnow(snow, 600);

            overlay = Content.Load<Texture2D>("snowground-vignette");
            groundplate = Content.Load<Texture2D>("ground");

            SpriFont = Content.Load<SpriteFont>("SpriteFont1");

            Textbox = new TextBox(boardtext,SpriFont);
            Textbox.ShowText("???: W-Where the f**k am I...", 0, 240,Color.White);

            spriteBatch = new SpriteBatch(GraphicsDevice);
        }