You create your own game for free, you need to use a game development software. The good news is that there are many free apps for this purpose. For example, you can use Unity, Unreal Engine 5, Godot Engine, GameMaker Studio 2, etc. In case you don’t know about these tools, you can check the this article to learn more.