XNA - How to change orientation of Drawing a List of Strings
问题 How do you Draw a list of strings with a spritebatch so that it looks like this; Item1 Item2 Item3 Item4 Instead of Item 1 Item 2 Item 3 Item 4 or instead of: Item1 Item2 Item3 Item4 回答1: Something like this would make it a little easier to change later on: int y = startPointY; int x = startPointX; int switchAt = items.Count/2; //<--- or where ever you might want to break up the strings int max = 0; for(int i = 0; i < items.Count; i++) { spriteBatch.DrawString(font, items[i], new Vector2(x, y