GenerateTerrain() public static method

public static GenerateTerrain ( int width, int height ) : Microsoft.Xna.Framework.Graphics.Texture2D
width int
height int
return Microsoft.Xna.Framework.Graphics.Texture2D
Ejemplo n.º 1
0
        protected override void ImplInitializeSession(Ballz game, MatchSettings settings)
        {
            var mapTexture = MapName == "Generated" ? TerrainGenerator.GenerateTerrain(width, height): game.Content.Load <Texture2D>("Worlds/" + MapName);

            settings.MapName    = MapName;
            settings.MapTexture = mapTexture;
        }