编写游戏引擎时需要了解的事情
作为一种爱好,我涉足游戏开发已经有一段时间了,但我无法让我的游戏至少在一些图形上闪闪发光。我决定编写一个简单的测试游戏引擎,仅关注图形的表示 - 形状、纹理和表面。
虽然我有一些为自己的游戏设计的非常简单的游戏引擎,但我想创建一个可以用来显示和玩图形的游戏引擎。我将用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会获取各个游戏公司(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.