You can find various game templates and examples here to help you get started wit making your own games.
All game templates are made in AppGameKit: www.appgamekit.com
AppGameKit is a beginner friendly tool that allow you to develop 2D, 3D , VR and AR games for multiple platforms such as Windows, Linux, MacOS, iOS, Android, FireOS, Raspbian, HTML5. Anyone interested can start coding their own games using AppGameKit.
You can download the games for free or play it in your browser. If you like it, you can consider a small amount of donation to support the development. In return, you are going to get access to the source code of the game but you can also purchase the source code directly and use it in your own games.
Some free examples also available. In case you find the examples useful, you can consider a small amount of donation.