Live data from Hacker News

Show HN: The full source code and assets for my custom game engine and game

news.ycombinator.com

31–38 of 38 posts

Re: Show HN: The full source code and assets for my custom game engine and game

#31
post #30

You wrote an Android app in C++. ...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.

https://developer.android.com/ndk/guides

you can use NDK to create an app with c++

Re: Show HN: The full source code and assets for my custom game engine and game

#32
post #30

You wrote an Android app in C++. ...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.

https://developer.android.com/ndk/guides you can use NDK to create an app with c++

Really cool that this is written entirely in CPP.

All the NDK demos/examples I've seen are usually using JNI in some fashion.

Re: Show HN: The full source code and assets for my custom game engine and game

#33

Earlier quoted context omitted.

https://developer.android.com/ndk/guides you can use NDK to create an app with c++

Really cool that this is written entirely in CPP. All the NDK demos/examples I've seen are usually using JNI in some fashion.

Yeah I remember that Android pretty good had documentation and tutorials about the native-activity. It was not really advertised, more of "do this if you really want to" kind of feature. But it worked perfectly.

Re: Show HN: The full source code and assets for my custom game engine and game

#35
post #27
post #26

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.

It depends a little bit on how comfortable you are with the platform and the technologies used in the codebase. Generally speaking you would look for the entrypoint into the application. For Hockey Slam you can look for the entrypoint in Windows: https://github.com/Mknsri/HockeySlam/blob/main/windows/win_m... or Android: https://github.com/Mknsri/HockeySlam/blob/main/android/app/s... Then start tracing through, looki…

Thank you very much! I appreciate you taking the time to provide these resources.

Re: Show HN: The full source code and assets for my custom game engine and game

#38
post #37

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.

The entry point into the game logic appears to be here in the Android side of things https://github.com/Mknsri/HockeySlam/blob/main/android/app/s...
Post reply on HN