コード例 #1
0
        public void LoadContent(GraphicsDevice GraphicsDevice)
        {
            FileStream fileStream = new FileStream("Content/2D/Stick.png", FileMode.Open, FileAccess.Read, FileShare.Read);
            Texture2D  stickSheet = Texture2D.FromStream(GraphicsDevice, fileStream);

            fileStream = new FileStream("Content/2D/platform.png", FileMode.Open, FileAccess.Read, FileShare.Read);
            Texture2D platformImage = Texture2D.FromStream(GraphicsDevice, fileStream);

            fileStream.Close();

            clientPlayer.LoadTexture(stickSheet);
            for (int i = 0; i < players.Count; ++i)
            {
                players[i].LoadTexture(stickSheet);
            }
            level.TexturePlatforms(platformImage);
        }