1. 撰寫頭部內容,
2.輸入玩家內容,
3. 定義地圖內容,
4. 列印地圖,
5. 游戲前的準備,
6. 游戲玩法,
第一步:撰寫頭部內容:最簡單的一步,游戲開始之前呈現給玩家的內容:
創建一個方法,取名為Tou()
public static void Tou() //列印頭部
{
Console.ForegroundColor = ConsoleColor.DarkYellow;//設定文本顏色
Console.WriteLine("---------------------------------");
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("|*****小陳清清飛行棋! v.1.0 ****|");
Console.ForegroundColor=ConsoleColor.White;
Console.WriteLine("| Welcome to Ludo! |");
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("|*******!此刻打開美好心情!******|");
Console.ForegroundColor = ConsoleColor.Cyan;
Console.WriteLine("---------------------------------");
}

文本顏色可以自定義,Console.ForegroundColor = ConsoleColor.red、green;等等,
后續繼續更新!!!!!
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/225441.html
標籤:其他
