I always enjoy reading posts about indie game development and looking at the source code of games other people have built. So for any game I release I naturally I want to do the same.<p><a href="https://github.com/Mknsri/HockeySlam">https://github.com/Mknsri/HockeySlam</a><p>Hockey Slam is a hockey shootout game on Android which I built almost from scratch. Some of the engine features include 3D graphics with PBR materials, a rudimentary physics system, replays, a multithreaded job system and a hot-reload DLL platform for developing on Windows.<p>I detailed the creation of the game in it's own post, but now that time has passed I am releasing the source code and assets under the MIT license. You can still find the making of here: <a href="https://hockeyslam.com/makingof" rel="nofollow noreferrer">https://hockeyslam.com/makingof</a><p>I'm happy to answer any questions you might have.
You should probably give credit to Casey / Handmade Hero with regards to your windows platform code. Well its kinda scattered around, so probably just credit in general.
I work in tools for game devs and it's great to see more open-source work like this it's very hard to find good modern open-source game examples.
Any idea what you would have to do to get it running on iOS?<p>Did you release it? If so, how is it doing compared to your expectations? (I looked for it on the Play store but couldn't find it)
More of a general nooby question: what would be a good way to read through code like this? Where to start? How to understand what's going on and when? etc.
I'm also making a game from scratch and reinventing wheels. What is the processing that you are doing for GLES? I see the GLSL_PREPROCESS in the GLSL.
You wrote an Android app in C++.<p>...how!? How did you even learn how to do this? I've never seen a github repo or documentation or tutorials that even mentions doing this. Nothing on the developer.android website, nothing in any YouTube tutorials. I'm blown away.
Very cool. Can you point me to the main game loop? I usually start from there when reading source code for games, but I'm having trouble finding yours. Probably just my inexperience, but any links would be great.