A simple Pong clone made to demonstrate the use of GameAPI for creating standalone games in the Retro Engine. This project also serves as a template for anyone looking to make their own games.
Currently, there isn't much more to the game than endlessly playing against a basic AI, although I do plan to add a few extra features, such as a two-player mode.
This building guide assumes you are already familiar with the building process for the RSDKv5(U) Decompilation.
Clone the repo recursively, using:
git clone https://github.com/MegAmi24/Pong-GameAPI --recursive
If you've already cloned the repo, run this command inside of the repository:
git submodule update --init --recursive
No external dependencies are required; simply type the following commands in the repository's root directory:
cmake -B build
cmake --build build --config release
The resulting build will be located somewhere in build/ depending on your system.
The following CMake arguments are available when compiling:
- Use these on the
cmake -B buildstep like so:cmake -B build -DRETRO_REVISION=2
RETRO_REVISION: What RSDKv5 revision to compile for. Takes an integer, defaults to3(RSDKv5U).RETRO_MOD_LOADER_VER: Manually sets the mod loader version. Takes an integer, defaults to the current latest version.GAME_INCLUDE_EDITOR: Whether or not to include functions for use in certain RSDKv5 scene editors. Takes a boolean, defaults toon.
Simply open the solution and build the project. Make sure that the architecture, engine revision, and mod loader version match with the target engine binary.
After setting up the RSDKv5(U) decompilation for building, you will need to add a symbolic link for the directory to the Pong GameAPI repository so that the game will be built as part of the APK.
To add the symlink, write the appropriate command in [RSDKv5-decompilation-root]/android/app/jni:
- Windows:
mklink /d Game "[path-to-pong-repo]" - Linux:
ln -s "[path-to-pong-repo]" Game - If you'd like to build this as a mod rather than the main game, replace
GamewithPongGameAPI.
After adding the symlink, build the RSDKv5(U) decompilation in Android Studio.
A: Submit an issue in the issues tab and I might take a look into it.
A: Unfortunately, I will most likely not implement it. Although I do want to add a few things to this game, I still want it to be basic overall. The main focus of this project is demonstrating GameAPI as described above.
A: Of course! The reason I made this is because I've seen several people ask how to set up a standalone RSDK game, so hopefully this should help with just that. Just don't go doing anything illegal!
- Rubberduckycooly and st×tic for GameAPI.
- skyelineee for creating Sonic 2 Mania, a GameAPI project that I occasionally looked at for reference for C++ GameAPI.
- Everyone in the Retro Engine Modding Server for the support!