static void Main(string[] args) { string response; bool boolResponse; TileSheet sheet = GetTileSheetFromUser(); if (sheet != null) { pln(" -- Animations --"); pln("Add Animation (True/False): "); Boolean.TryParse(getLine(), out boolResponse); while (boolResponse) { Animation newAnim = GetAnimationFromUser(); if (newAnim != null) { pnn("AnimationKey: "); response = getLine(); if (response.Length > 0) { sheet.AddAnimation(response, newAnim); } else { sheet.AddAnimation(newAnim); } } pln("Add Animation (True/False): "); Boolean.TryParse(getLine(), out boolResponse); } pnn("Output base file name: "); response = getLine(); if (response.Length > 0) { TileSheet.WriteToFile(response + ".jts", sheet); } pln("Done."); } }