User contributions for 棉裤Manki
5 April 2023
- 06:4406:44, 5 April 2023 diff hist +10,625 N Development/zh Created page with "截至目前,处于一下原因,我们强烈建议使用Linux环境在DDNet中开发: * 大多数DDNet贡献者实际上使用Linux来贡献。 * 更容易的软件包管理,您可以轻松地安装所有需要的库并开始贡献。 * 本文还没有Windows版本,主要关注Linux。"
- 03:4703:47, 5 April 2023 diff hist +6 N Translations:Development/Page display title/zh Created page with "开发" current
- 03:4403:44, 5 April 2023 diff hist +19 N Translations:Development/33/zh Created page with "==== 客户端 ====" current
- 03:4403:44, 5 April 2023 diff hist +368 N Translations:Development/32/zh Created page with "[https://github.com/ddnet/ddnet/blob/master/src/game/server/entities/character.h CCharacter]: 代表着一个tee 是活着的, 当一个tee产生时它被实例化,当它死亡时它被删除。有关玩家在死亡之间的信息,请参阅[https://github.com/ddnet/ddnet/blob/master/src/game/server/player.h CPlayer]."
- 03:4303:43, 5 April 2023 diff hist +24 N Translations:Development/31/zh Created page with "一些重要实体有:" current
- 03:4203:42, 5 April 2023 diff hist +88 N Translations:Development/30/zh Created page with "这些实体由位于此处的游戏世界管理<code>src/game/server/gameworld.h</code>"
- 03:4203:42, 5 April 2023 diff hist +215 N Translations:Development/29/zh Created page with "这个游戏使用自己的[https://en.wikipedia.org/wiki/Entity_component_system 实体组件系统],所有其他实体派生到的主类是<code>CEntity</code>,位于<code>src/game/server/Entity.h</code>中。"
- 03:4103:41, 5 April 2023 diff hist +19 N Translations:Development/28/zh Created page with "==== 服务器 ===="
- 03:4103:41, 5 April 2023 diff hist +69 N Translations:Development/27/zh Created page with "所有玩游戏的代码都在这里,分为客户端和服务器。"
- 03:4003:40, 5 April 2023 diff hist +23 N Translations:Development/26/zh Created page with "=== src/game 目录 ===" current
- 03:4003:40, 5 April 2023 diff hist +108 N Translations:Development/25/zh Created page with "游戏引擎就在这里,它处理大多数与游戏无关的东西,比如图形、声音、网络等。"
- 03:3903:39, 5 April 2023 diff hist +28 N Translations:Development/24/zh Created page with "=== src/engine 文件夹 ==="
- 03:3903:39, 5 April 2023 diff hist +143 N Translations:Development/23/zh Created page with "由于DDNet是一个跨平台游戏,需要一个抽象层来简化开发,因此该目录包含许多有用的函数来处理这一问题。" current
- 03:3903:39, 5 April 2023 diff hist +25 N Translations:Development/22/zh Created page with "=== src/base 文件夹 =="
- 03:3803:38, 5 April 2023 diff hist +59 N Translations:Development/21/zh Created page with "现在你可以构建DDNet了,可以开始编辑它了。"
- 03:3803:38, 5 April 2023 diff hist +21 N Translations:Development/20/zh Created page with "== 源代码布局 ==" current
- 03:3703:37, 5 April 2023 diff hist +381 N Translations:Development/19/zh Created page with "以下是一些通用信息: *目前,源代码是使用C++17标准编译的,但您会看到代码的许多部分更像C,因为只有大多数新代码使用C++17。 *<code>std::string</code>很少使用,字符数组加<code>system.h</code>方法才是常态。 *大多数输入输出代码、格式化和Print都是使用<code>system.h</code>提供的方法完成的。"
- 03:3603:36, 5 April 2023 diff hist +18 N Translations:Development/18/zh Created page with "== 通用信息 =="
- 03:3503:35, 5 April 2023 diff hist +94 N Translations:Development/17/zh Created page with "<syntaxhighlight lang="bash"> mkdir build cd build cmake .. make -j$(nproc) </syntaxhighlight>" current
- 03:3503:35, 5 April 2023 diff hist +169 N Translations:Development/16/zh Created page with "我们使用CMake来控制编译进程,如果你所有的依赖项都下载了,那么它会很简单,只要输入这些命令(确保你在DDNet文件夹下):"
- 03:3303:33, 5 April 2023 diff hist +17 N Translations:Development/15/zh Created page with "== 编译DDNet ==" current
- 03:3303:33, 5 April 2023 diff hist +145 N Translations:Development/14/zh Created page with "控制台输入 <code>sudo pacman -S --needed base-devel cmake curl freetype2 git glew gmock libnotify opusfile python sdl2 sqlite wavpack</code>"
- 03:3203:32, 5 April 2023 diff hist +19 N Translations:Development/13/zh Created page with "对于Arch Linux:" current
- 03:3203:32, 5 April 2023 diff hist +178 N Translations:Development/12/zh Created page with "如果您在Linux上,您可以通过阅读DDNet github页面上的自述文件来安装所有需要的依赖项:https://github.com/ddnet/ddnet#dependencies-在linux上--macos"
- 03:3103:31, 5 April 2023 diff hist +21 N Translations:Development/11/zh Created page with "== 下载依赖项 =="
- 03:3103:31, 5 April 2023 diff hist +152 N Translations:Development/10/zh Created page with "如果您不熟悉git/github,可以在这里学习基本知识: [https://docs.github.com/en/get-started/quickstart/hello-world Hello World - Github]"
- 03:3003:30, 5 April 2023 diff hist +197 N Translations:Development/9/zh Created page with "源代码位于[https://github.com/ddnet/ddnet Github],您可以在不需要帐户的情况下通过Clone获得源代码,但如果您想将更改放入官方源代码,则需要一个账号。"
- 03:2903:29, 5 April 2023 diff hist +21 N Translations:Development/8/zh Created page with "== 获取源代码 ==" current
- 03:2903:29, 5 April 2023 diff hist +183 N Translations:Development/7/zh Created page with "如果您的Linux发行版中还没有git,请安装它,例如在大多数基于debian/ubuntu的发行版中,你可以打开终端,输入:<code>sudo-apt-install git</code>。"
- 03:2703:27, 5 April 2023 diff hist +142 N Translations:Development/6/zh Created page with "DDNet的源代码使用[https://git-scm.com/ Git]托管,这是一个版本控制系统,也是与多个开发人员协作的重要工具。"
- 03:2603:26, 5 April 2023 diff hist +140 N Translations:Development/5/zh Created page with "学习C++的一些有用资源: * [https://www.learncpp.com/ learncpp.com] * [https://en.cppreference.com/w/ cppreference.com] * 百度。"
- 03:2403:24, 5 April 2023 diff hist +130 N Translations:Development/4/zh Created page with "首先,DDNet是使用 C++ 语言编写的,您需要相当熟悉它,但您也可以了解基础知识并了解更多信息。"
- 03:2303:23, 5 April 2023 diff hist +296 N Translations:Development/3/zh Created page with "截至目前,处于一下原因,我们强烈建议使用Linux环境在DDNet中开发: * 大多数DDNet贡献者实际上使用Linux来贡献。 * 更容易的软件包管理,您可以轻松地安装所有需要的库并开始贡献。 * 本文还没有Windows版本,主要关注Linux。"
- 03:2003:20, 5 April 2023 diff hist +24 N Translations:Development/2/zh Created page with "== 你的开发环境 =="
- 03:1903:19, 5 April 2023 diff hist +177 N Translations:Development/1/zh Created page with "本文皆在教你如何对 DDNet '''''开发''''' ,因为这是一款开源游戏(源代码公开),它依赖于一些善良的人们来用他们的放松时间贡献。"
- 03:1403:14, 5 April 2023 diff hist 0 m Settings and Commands/zh 修改了错别字(喷漆背包 -> 喷气背包)