Well, the first thing you have to do is learn to program (unless you already know how). Then you need an engine to run it on, unity works very well for that. After that, maybe do the unity scripting tutorial to learn how to apply your scripts to the game. Then you junt have to find a host for your game.