陕西铜川煤矿建设有限公司的官方网站在哪里可以找到?

摘要:廊坊哪里有做网站的,陕西铜川煤矿建设有限公司网站,北京百度公司地址在哪里,创意旅行社wordpress项目名称 木木夕营救公主 项目介绍 这是一个小游戏,你将扮演一个英雄(木木夕&
廊坊哪里有做网站的,陕西铜川煤矿建设有限公司网站,北京百度公司地址在哪里,创意旅行社wordpress项目名称 木木夕营救公主 项目介绍 这是一个小游戏#xff0c;你将扮演一个英雄#xff08;木木夕#xff09;#xff0c;去打败恶龙#xff0c;拯救出公主#xff0c;该项目采用回合制战斗模式#xff0c;由于角色的血量和攻击为随机数#xff0c;所以需要靠运气才…项目名称 木木夕营救公主 项目介绍 这是一个小游戏你将扮演一个英雄木木夕去打败恶龙拯救出公主该项目采用回合制战斗模式由于角色的血量和攻击为随机数所以需要靠运气才能通关噢 简单需求分析 开始界面控制台输入输出控制台颜色变化 游戏界面控制台输入输出控制台颜色变化回合制战斗随机数循环条件判断 结束界面 控制台输入输出控制台颜色变化 界面间相互切换  项目代码含详细说明 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;namespace CSharp入门_实践 {class Program{static void Main(string[] args){#region 控制台基础设置int width 50;int height 30;//隐藏光标Console.CursorVisible false;//设置控制台大小Console.SetWindowSize(width, height);//设置缓冲区大小Console.SetBufferSize(width, height);#endregion#region 多场景//约定 1是开始游戏界面2是游戏界面3是结束界面int nowId 1;string gameOverInfo ;while (true){//不同的场景id进行不同的逻辑switch (nowId){#region 开始场景逻辑//开始场景case 1:Console.Clear();//每次场景切换需要把上一次的场景清除Console.SetCursorPosition(width / 2 - 7, 8);//设置下面文字的位置Console.Write(木木夕营救公主);int nowSelIndex 0;//当前选项编号 0开始游戏 1结束游戏//输入while (true){bool isQuit false;//退出循环标志Console.SetCursorPosition(width / 2 - 4, 12);//改变开始游戏的颜色Console.ForegroundColor nowSelIndex 0 ? ConsoleColor.Red : ConsoleColor.White;Console.Write(开始游戏);Console.SetCursorPosition(width / 2 - 4, 14);//改变结束游戏的颜色Console.ForegroundColor nowSelIndex 1 ? ConsoleColor.Red : ConsoleColor.White;Console.Write(退出游戏);//说明Console.SetCursorPosition(width / 2 - 16, 16);Console.ForegroundColor ConsoleColor.White;Console.Write(说明按W,S进行上下选择J键确定);Console.SetCursorPosition(width / 2 - 10, 18);Console.Write(操作时按WASD进行移动);Console.ForegroundColor ConsoleColor.Green;Console.SetCursorPosition(width / 2 - 10, 20);Console.Write(★);Console.ForegroundColor ConsoleColor.White;Console.Write(为boss);Console.ForegroundColor ConsoleColor.Yellow;Console.SetCursorPosition(width / 2 - 10, 21);Console.Write(●);Console.ForegroundColor ConsoleColor.White;Console.Write(为玩家木木夕);Console.ForegroundColor ConsoleColor.Blue;Console.SetC
阅读全文