MUD编程语言

发布于 2024-11-03 17:51:57 字数 433 浏览 3 评论 0原文

我断断续续地玩MUD游戏已经一年多了。我在互联网上搜寻最好的计算机语言来学习开发自己的语言。到目前为止,我除了 C 之外什么也没想出来。对于这个应用程序来说,C 是最好的语言,还是有更好的语言?

我知道 SMAUG 是用 C 语言编写的,但那是几年前的事了。我对一般编程很陌生,并且对 Python 有一些经验。我一直在玩Aardwolf,它允许用户(达到一定级别后)创建自己的区域。用户使用 Lua 来完成此操作。这对我来说很有趣,因为 Lua 是一种“脚本”语言。所以这引出了另一个问题 - 你是否用 C(或其他东西)构建游戏的格式,但用脚本创建世界?

另外,这将是一个只有我的朋友参加的游戏,因此需要直接连接,因为我不会在线托管它。因此,我想再次深入这个世界,并将其作为一个宠物项目来帮助我学习一门编程语言……但是哪一个是最好的,也可以让我在未来扩展它

附: - 有什么开源代码可供我查看和研究吗?

I have been playing a MUD game now off and on for over a year. I have scoured the internet looking for the best computer language to learn to develop my own. So far, I have come up with nothing but C. Is C the best language to learn for this application, or is there something better?

I know SMAUG was written in C, but that was years ago. I am new to programming in general and have some experience with Python. I have been playing Aardwolf, which allows it users (after a certain level) to create their own area's. The user does this using Lua. This was interesting to me, because Lua is a "scripting" language. So this begs another question - Do you build the game's format in C (or something else) but create the world with a script?

Also, this would be a game with only my friends, so a direct connection would be required since I would not be hosting it online. So, once again, I would like to dive into this world and use this as a pet project to also help me learn a programming language... but which one would be the best that would also allow me to scale it uo in the funture

P.S. - Any open source code out there that I can look at and study?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

恰似旧人归 2024-11-10 17:51:57

所以,我想再次深入这个世界,并将其作为一个宠物项目来帮助我学习编程语言......但是哪一个是最好的,也可以让我扩展它未来

大多数 MUD 代码库往往采用 C 语言,但这主要是出于历史原因。 MUD 不久前相当流行,当时 C 是迄今为止可移植性最好的语言,大多数托管选项都支持这种语言。

话虽这么说,MUD 在很多方面确实相当简单。您可以轻松地用任何语言编写 MUD,只要它支持套接字和文本解析。使用具有良好字符串解析和高级套接字支持的语言实际上比一些经典的 MUD 代码库简单得多。

So, once again, I would like to dive into this world and use this as a pet project to also help me learn a programming language... but which one would be the best that would also allow me to scale it uo in the future

Most MUD codebases tend to be in C, but this is mainly for historical reasons. MUDs were fairly popular a while back, and at the time, C was by far the best language for portability which was supported by most hosting options out there.

That being said, a MUD is really fairly simple, in many ways. You could easily write a MUD in any language, provided it supports sockets and text parsing. Using a language with a good string parsing and high level socket support would actually be far simpler than some of the classic MUD code bases.

乙白 2024-11-10 17:51:57

在线有大量可用的 MUD 引擎:快速查看 MudConnector 将为您提供大量可用服务器的信息、软件和代码库。

至于您选择的编程语言,如果您只想将其提供给您和您的朋友,Python 就可以了 - 几年前我完全用 Lua 制作了一个,这很容易。这是一次很棒的学习经历!

There are a ton of available MUD engines available online : a quick look at MudConnector will give you a ton info of available servers, software and code bases.

As for your programming language of choice, if you intend on only making it available to you and your friends, Python would be fine - I made one entirely in Lua a few years ago and it was a breeze. It's a great learning experience !

过气美图社 2024-11-10 17:51:57

也许你应该寻找 MUDOS

http://www.mudos.org/

perhaps you should look for a MUDOS

http://www.mudos.org/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文