- C++ 68.5%
- C 25.9%
- Java 5.1%
- GLSL 0.1%
- Migrated old Ant build system to Gradle - Cleaned up stuff - Removed Facebook SDK (yuck) - Removed Android License managing - Disabled the color picker since it doesn't build anymore, will have to replace later - Disabled 64-bit archs for now - Added instructions for building on Android |
||
|---|---|---|
| build-android | ||
| build-android-lite | ||
| build-ios/principia | ||
| build-linux | ||
| build-screenshot-linux | ||
| build-windows | ||
| changes | ||
| data-mobile | ||
| data-pc | ||
| data-shared | ||
| data-src | ||
| data-unused | ||
| doc | ||
| help | ||
| lvledit | ||
| lvlinfo | ||
| progress-get | ||
| progress-verify | ||
| progresstest | ||
| src | ||
| testmaps | ||
| tests | ||
| tools | ||
| .gitignore | ||
| AUTHORS.md | ||
| LICENSE.md | ||
| make-textures.py | ||
| README.md | ||
| rebuild-android.sh | ||
| THANKS.md | ||
Principia Open Source Project
Principia is a sandbox physics game originally released in November 2013. It is the successor to the Android hit game "Apparatus".
The project can be built on Windows, Linux, Android or iOS. The iOS version lags behind and lacks a lot of UI.
NOTE! Mote documentation and resources will come.
Getting involved
Please join the Official Unofficial Discord here: https://discord.gg/qV6APzKfk9
Follow Bithack on Twitter: https://www.twitter.com/Bithack
Compiling and running
Building on Windows
- Install MSYS2 64bit
$ pacman -Syu
Terminal will ask to close it self when done. GO to start menu and run MSYS Mingw32 64-bit
$ pacman -S --neded base-devel mingw-w64-x86_64-toolchain autotools $ pacman -S mingw-w64-x86_64-gtk2 $ pacman -S mingw-w64-x86_64-curl
Navigate to the 'build-windows' folder inside where you cloned Principia, for example:
$ cd /c/Users//Principia/build-windows
$ ./autogen.sh $ ./configure $ ./go
Clean with: $ make clean
Building on Linux (Debian)
$ sudo apt-get install automake libgtk2.0-dev libgl-dev libxss-dev libxxf86vm-dev libasound2-dev libudev-dev valgrind
$ cd build-linux;
$ ./go
If everything goes well, Principia will start but then freeze at the loading screen due some uninitialize directories. Terminate Principia by replying 'y' in the gdb prompt in the terminal, then in the same terminal, go up a directory and launch it from the parent directory instead:
$ cd ..
$ build-linux/apparatus2
(this bug will be fixed in short)
Building for Android (on Linux)
These instructions can likely be easily adapted to build on any platform for Android.
Download Android Studio from: https://developer.android.com/studio
Untar the archive (your version number might differ from the example below) and run studio.sh:
$ tar xzf android-studio-2021.2.1.16-linux.tar.gz
$ cd bin; ./studio.sh
Choose Custom in the Installer, click Next a bunch of times. Android Studio will download components for a while. Once finished, in the "Welcome to Android Studio" dialog, choose "Customize" in the left menu and then click "All Settings..." at the bottom center. Open Appearance -> System Settings -> Android SDK. Click the SDK Tools tab and check the following items:
- NDK (Side by side)
- Android SDK Command-line tools
Click Apply and wait for the components to download. Close Android Studio forever.
Open a terminal and run the build scripts:
$ cd build-android;
$ export ANDROID_HOME=/home/EXAMPLE/Android/Sdk
$ ./gradlew build
ANDROID_HOME should be set to the location where Android Studio installed the SDK (which you chose during setup). You might want to put that export line in your .bashrc file.
Finally, to install the game on your device:
$ ./gradew install
License
See LICENSE.md