public static GenerateTerrain ( int width, int height ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
width | int | |
height | int | |
return | Microsoft.Xna.Framework.Graphics.Texture2D |
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; }