【原创】【游戏】【程序设计】做一个与众不同的Minecraft
bat吧
全部回复
仅看楼主
level 7
Hello🌌w 楼主
我发现,很多人都只是在用bat(批处理)文件来写程序。这种方法,对于很多人来说是非常简单的。
但是,你们知道吗?这些命令其实是什么?输入之后,那些结果是从哪里来的?如何修改?
现在,让我们从这个问题开始,修改命令提示符,做一个CLI界面的Minecraft。
2017年07月24日 05点07分 1
level 7
Hello🌌w 楼主
还在修errors呢,没时间更帖
2017年07月24日 05点07分 2
level 7
Hello🌌w 楼主
我!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!回!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!来!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
了!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2017年07月24日 09点07分 3
level 7
Hello🌌w 楼主
Test写完了!
2017年07月24日 09点07分 5
level 7
Hello🌌w 楼主
天呐,“画图”不见了
2017年07月24日 09点07分 6
level 7
Hello🌌w 楼主
我居然。。。
用。。。
C#。。。
写程序!
没事的,这张图片告诉我们程序的结构
2017年07月24日 09点07分 7
一定要看原图
2017年07月24日 10点07分
这是VS几啊
2017年07月25日 14点07分
@ZZC苦心 2017[滑稽]
2017年07月25日 14点07分
level 7
Hello🌌w 楼主
哪里错了?
Microsoft (R) Visual C# Compiler version 4.6.1586.0
for C# 5
Copyright (C) Microsoft Corporation. All rights reserved.
This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240
main.cs(15,20): error CS0128: 已在此范围定义了名为“whatInput”的局部变量
main.cs(16,17): error CS0128: 已在此范围定义了名为“itemCount”的局部变量
main.cs(26,39): error CS0103: 当前上下文中不存在名称“item”
main.cs(41,19): error CS0201: 只有 assignment、call、increment、decrement、await 和 new 对象表达式可用作语句
main.cs(41,19): error CS0103: 当前上下文中不存在名称“theEnd”
请按任意键继续. . .
2017年07月24日 10点07分 8
level 7
Hello🌌w 楼主
来人呀~
2017年07月24日 10点07分 9
level 7
Hello🌌w 楼主
算了吧。为了添加对mods的支持,我决定用程序代替命令。
为什么可以这样做呢?请过目:
2017年07月24日 10点07分 10
level 7
Hello🌌w 楼主
右键“我的电脑”(win10+是“此电脑”),选择“属性”
我们就会看到:
前方高能!!!前方高能!!!前方高能!!!【多窗口预警】
选择【环境变量】》PATH》编辑
就会这样:
好吓人呐[惊讶]
现在,让我们修改它!
点击【新建】,
输入自己的.exe程序的位置
2017年07月24日 10点07分 11
level 7
Hello🌌w 楼主
ding~
ding~
ding~
钟声响起了!
(众人:你明明是在顶帖嘛。。。)
2017年07月24日 10点07分 12
level 7
Hello🌌w 楼主
桌面一团乱
2017年07月24日 10点07分 13
level 7
Hello🌌w 楼主
D:\@my\programs\csharp\exes
这就是我的怪异的程序地址
2017年07月24日 10点07分 14
level 7
Hello🌌w 楼主
好烦
2017年07月24日 10点07分 15
level 7
Hello🌌w 楼主
等一等哦~马上来[滑稽]
唉~这个危ji四伏的世界[滑稽][滑稽]
2017年07月24日 10点07分 16
1 2 3 4 5 尾页