its called research and trial and error.
First learn to write, then write a game.
In the manual there is only a tutorial for writing a FPS ...
Its the monster hunt tutorial. Iced demo is basically the same thing. If trying for a 2D game, check out the Swarm demo.
Also, in the code base, there are lots of tips for GUI design.
Conceptializing a game is also helpful. Also, plan for spending
most of your time debugging your code. Another tip ... When
deciding on a game to write, be sure to pick one YOU find fun to play ... as you will be playing it over and over and over as you try to duplicate a bug to see if you fixed it
Also, friendly warning about double posts ...