Could anyone recommend me a good C++ Library/API that has everything I need to make a game from scratch?
Hello, I've been planning to make a game in C++ for a while and I recently came across a video by a YouTuber called "Hopson" (https://www.youtube.com/channel/UCeQhZOvNKSBRU0Mdg7V44wA) and he made a Minecraft type game from scratch entirerly in C++ (https://www.youtube.com/watch?v=Xq3isov6mZ8). I wanted to know if anyone could recommend me a good library that has everything i need (Input and output from keyboard and mouse, texture loading, 3D rendering, Object oriented, etc) to make a simliar game. Thanks.
About this post
- Posted
- Archived
- Score
- 1 · 100% up
- Kind
- Text
- ID
- c74i15
6 comments
Professional software developer on high performance computing here. I use C++ for everything at work.
Unity is definitely what you want. C# is close enough to C++ that you will be comfortable and there is a massive amount of documentation, tutorial content, and community support.
Will there be a way to tweak lighting and shadows to make it look like the Java version of minecraft and not look Shader Enhanced?
Yes
A shader is a general term for a script that describes how light interacts with an object. This can include things like reflection, light emission, transparency, and even outlines. A texture describes what an object looks like when it is unlit. Together they determine what you see in a game (or CGI or anything else that uses computer graphics.
So yeah, you can make your objects look however you like. All it takes is a little googling and experimentation.
If you're looking for something complete, you might be better off using Unreal (Unity is C# so maybe less so that). It's all dependant on whether you need to do something which Unreal can't do well though. I'm in that position so I rolled my own too - it's quite light on libraries so I could suggest those which I use instead if you want to build your own engine. DirectX 11/C++ based:
DirectXTK - Available with Nuget, I use the texture loader and SreenGrab for screenshots but it also covers input, geometry bits, effects and audio although I don't know how well as I've done my own code for those too... I'm an idiot. It uses extremely light headers too.
RapidXml - Xml based file system use.
FMOD - If you want to build a custom audio engine it's fantastic and very decently only charges if your game/app makes over a certain amount of money. Huge customization and runs extremely well.
Easylogging++ - Logger, very good, very easy for debug.
Sdl might do, it is a bit simple so you would need to load your own models but you pretty much have cubes so not a big deal there. It isn't an engine exactly, it is what you would use to make an engine, if you want custom shaders anyway it won't be a huge leap.
If you want a full engine instead of writing shaders from scratch yourself everyone talks about godot engine for c++.