Which language should I learn first for building a 3D game engine: Lua or Rust?
Asked by
polynomial
I'm looking to dive into creating my own 3D game engine from scratch, inspired by some insights from Notch about video game programming. I want to develop something unique that existing free engines can't effectively create. The challenge I'm facing is choosing between learning Lua or Rust first. I plan to integrate advanced features like dynamic real-time lighting, reflective surfaces, and sound design capabilities, all while ensuring my engine avoids infringing on patents. My mother has also warned me about potential risks of someone stealing my engine once it's complete. For beginners, which would be easier to learn first: Lua or Rust? Additionally, which language would be better for the core files of the game engine versus the game engine's library? I'm seeking advice from experienced developers who understand both languages.
Answers
Honestly, both Lua and Rust are unusual choices for building a game engine. If you're struggling with C++, which is widely used in this field, starting with that might be more productive. Lua is often used for scripting in games rather than for developing the core engine itself. If you did want a bit of experience before diving into C++, you might consider using something like Godot to get a grasp of game concepts without feeling overwhelmed. It has a solid community and is beginner-friendly.
Reply to this answer
If you're a total beginner, I'd say start with Lua to get a feel for game mechanics and programming principles. It's much easier and allows for rapid prototyping. Rust is more suited for low-level system programming and game engines, but it may not be the best choice as the first language to learn given its complexity. Build your foundational skills first with Lua, and consider tackling Rust in the future once you have more programming experience!
Reply to this answer
Lua is a good language for getting started with game programming, but I think you might want to evaluate your ultimate goals. If youโre looking at making a full engine, Rust is a viable option, but it does increase complexity and might not be beginner-friendly. It might be more beneficial to start simple and create basic games using Lua first, and then slowly work your way up to more ambitious projects.
Reply to this answer
I think Lua would be a better starting point for your game development journey. It's lightweight and has engines like LOVE that let you dive right into making games without getting too bogged down in complexity. Once you get comfortable with creating smaller games, you can gradually transition to more complex programming in Rust or even C++. Just remember to keep your ambitions in check; it might take time to build the comprehensive features you have in mind!
Reply to this answer
Between the two, I'd definitely vote for Lua. It's more accessible for beginners, especially in game development, where itโs often used for scripting rather than full engine development. Rust is great and all, but it has a steep learning curve. If you want to work on game engines later on, learning C++ could also be a significant advantage since it's the industry standard for performance. Don't rush into making a whole engine right away; start with smaller projects to build your skills!
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions