编写游戏引擎时需要了解的事情

发布于 2024-10-08 21:01:59 字数 663 浏览 0 评论 0原文

作为一种爱好,我涉足游戏开发已经有一段时间了,但我无法让我的游戏至少在一些图形上闪闪发光。我决定编写一个简单的测试游戏引擎,仅关注图形的表示 - 形状、纹理和表面。

虽然我有一些为自己的游戏设计的非常简单的游戏引擎,但我想创建一个可以用来显示和玩图形的游戏引擎。我将用 C++ 来做这件事。由于这是我第一次使用主要引擎,该引擎不会专注于 3D 图形,它将是等距图形和 2D 图形的混合体。

我以前的引擎已经合并(能够绘制)或专注于简单的平面(几乎 2D)非令人印象深刻的图形设计和表示:

  • 玩家
  • NPC
  • 对象
  • 墙壁和表面
  • 纹理

此外,我还有一些基本的AI,有时甚至声音

他们还保存加载游戏。

他们没有地图编辑器或关卡编辑器。这会成为未来的问题吗?这时我必须指出,我的一些游戏没有完成,因为我懒得写最后几个关卡。

我现在的问题是:如果一个人想编写(开发)一个更好的图形游戏引擎及其所有功能,那么应该知道哪些事情。

I have been dabbling in game development as a hobby for a while now, and I cannot seam to quite get my games to sparkle at least a bit with some graphics. I have decided to write a simple test game engine that only focuses on the representation of graphics - shapes, textures and surfaces.

While I have a few very simple game engines designed for my own games under my belt, I want to create a game engine that I can use to display and play with graphics. I'm going to do this in C++. Since this is my first time with a major engine, the engine in not going to focus on 3D graphics, it's going to be a mixture of isometric and 2D graphics.

My previous engines have incorporated (been able to draw) or focused on simple flat (almost 2D) non impressive graphic designs and representations of:

  • the player
  • NPCs
  • objects
  • walls and surfaces
  • textures

Also, I had some basic AI and sometimes even sound.

They also saved and loaded games.

They didn't have a map editor or a level editor. Is this going to be a problem in the future? At this time I have to point out that some of my games didn't get finished because I was to lazy to write the few last levels.

My question at this point would be: What are some things one should know if one wants to write (develope) a better graphical game engine with all it's functions.

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

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

发布评论

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

评论(1

单身狗的梦 2024-10-15 21:01:59

我会获取各个游戏公司(Quake 引擎等)发布的源代码并从那里开始。

向现有的伟大事物学习是了解你还不知道的事情的好方法,尤其是那些你甚至不知道自己不知道的事情。

I'd grab the source that has been released by various game houses (Quake engine etc) and go from there.

Learning from existing greatness is a good way to get your head around things you don't know yet, especially those things that you don't even know you don't know.

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