oxygine game - oxygine/oxygine-framework GitHub Wiki
oxygine-game
oxygine-framework is the main building element around which your application will be based. However, you might require additional features, for example sound playback, loading/drawing freetype fonts or making a dialogue system. These features are not included by default in oxygine-framework. You can use third-party solutions or set up existing ones:
oxygine-game is an example based on oxygine-framework/example/game5 with all extensions listed above set up for different platforms (iOS/Android/VisualStudio/CMake/Emscripten). All included repositories are set up using github submodules.
- clone oxygine-game with submodules:
git clone https://github.com/oxygine/oxygine-game.git
cd oxygine-game
git submodule update --init --recursive
- go to folder oxygine-game/my_awesome_game/project
- open project with VisualStudio/XCode/AndroidStudio
The rename_project.py utility is also included in oxygine-game. It lets you change the name of your entire project to whatever name you want.
Usage example:
python rename_project.py my_new_oxygine_game
This command will rename all files, packages, solutions, xcode project and everything else from the default name 'my_awesome_game' to the name 'my_new_oxygine_game'
You may take the code to start your own game by copying the repositories, all you have to do is delete/adjust C++ code in the example. Also, oxygine-game can be used to assist you in setting up these expansions for different platforms exploring commits history.
For example:
- how to connect oxygine-sound for android: https://github.com/oxygine/oxygine-game/commit/f6337bf756f0b9aad1436d5a7c5a1683d6291589
- how example code changed upon addition of oxygine-flow: https://github.com/oxygine/oxygine-game/commit/54cf01e5fff53a11cad13438dec435ede6d246c8
- how to create a delegate for iOS that is missing from the main oxygine examples: https://github.com/oxygine/oxygine-game/commit/ea1fd740b7d1c928832aca9617566a19e7098f9e
- follows the suggested folder structure for oxygine projects
- et cetera
Using oxygine-game as the starting point can save you a decent amount of time.