使用开源 Java 游戏引擎开始游戏开发是个好主意吗?
我遵循了一些教程,其中向您展示了如何制作自己的动画类和声音类以及基础知识,但我想知道如果我只使用 jMonkey 或 Lightweight Java 等开源 java 游戏引擎是否会有好处游戏库,而不是从头开始编写自己的游戏引擎?您对此有何看法?
I have followed tutorials where they show you how to make your own animation class and sound class as well as the basics but I was wondering if it would be beneficial if I were to just use an open source java game engine like jMonkey or the Lightweight Java Game Library, instead of coding my own game engine from scratch? What are you thoughts on this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对谁有利?您是在尝试学习,还是与一群人一起制作游戏?
您的目标是了解游戏引擎的工作原理,还是制作游戏?两者都会给你带来你无法获得的知识,而且都不是完整的故事。
学习如何创建自己的引擎很有用,学习其他人如何构建游戏引擎也很有用。使用现有的引擎将使您离制作大型游戏更近一步。
只要您选择 2D 引擎,这两种选择都不会真正妨碍您制作小型 2D 游戏。如果您尝试在 3D 引擎中制作 2D 游戏,则需要花费更多时间来学习,因为 3D 又增加了一层复杂性。
Beneficial to whom? Are you trying to learn, or to make a game with a group of people?
Is your goal to learn how games engines work, or make a game? Both will give you knowledge you wouldn't get otherwise, and neither is the complete story.
Learning how to create your own engine is useful, and learning how other people build game engines is also useful. Using an existing engine will get you one step closer to making a large game.
Neither choice will really hinder you much from making a small 2D game, as long as you're picking a 2D engine. If you try to make a 2D game in a 3D engine, that will take quite a bit more time to learn, as 3D adds another level of complexity.
LWJGL 是一个优秀的平台,不是因为它为您打造了整个引擎,而是因为它为 OpenGL 和 OpenAL 等库提供了出色的接口。
然而,这实际上取决于您正在制作什么类型的游戏以及其复杂程度。由于这似乎是一个业余爱好类型的项目,因此使用中间件层可能会很好,但请确保您仍然了解它在做什么。
请注意,jMonkey 和 LWJGL 相当不同,因为 jMonkey 实际上在很大程度上是一个完整的游戏引擎。
LWJGL is an excellent platform to use, not because it makes your whole engine for you, but because it provides great interfaces into libraries such as OpenGL and OpenAL.
However, it really depends on what kind of game you're making and with what complexity. Since it seems this is a hobby type project, it's probably good to use a middleware layer, however make sure that you still understand what it's doing.
Note that jMonkey and LWJGL are fairly different, since jMonkey is actually a full game engine for the most part.