Skip to content
/ raymob Public
forked from Bigfoot71/raymob

Simple raylib implementation for Android

License

Notifications You must be signed in to change notification settings

ghera/raymob

 
 

Repository files navigation

raymob fork for a multiplatform project based on raylib-iOS

⚠️ This is an unofficial fork of raymob providing multiplatform (Android / iOS / Windows / macOS / Linux) support.

This fork is not affiliated with the official raymob project.

What is different from upstream

  • Switched the dependency from raylib to raylib-iOS;

  • Moved raylib submodule path to share it across across IDEs;

  • Minor tooling updates.

Recommended project structure

MyProject
├── desktop (VSCode project for Windows / macOS / Linux)
├── ios (Xcode project - see example in raylib-iOS)
├── android (Android Studio project - this repository)
├── core (common code shared across all platforms)
└── raylib (raylib-iOS submodule)

Status

This fork is intended for experimental and personal use. It is not production-ready.


raymob icon

raymob Targeting raylib 5.5+ Supported Platforms License License

raymob is a simple implementation of raylib for Android.

Prerequisites

You will need SDK API 34 and NDK r23 (or higher, compatible with CMake 3.30.3).

If you already have this version of SDK and NDK without having Android Studio, you should still be able to compile the project using gradlew.bat for Windows or gradlew for Linux or MacOS.

How to Use?

  1. Clone the repository and automatically initialize and update all submodules:
    git clone --recurse-submodules https://github.com/Bigfoot71/raymob.git
    
  2. Open the gradle.properties file and fill in the necessary values for your application, such as the app name, package name, version, etc.
  3. That's it! You can start coding your raylib app in the app/src/main/cpp directory!

Note

Do not modify the instances of com.raylib.raymob and raymob as they will be automatically replaced during compilation with the information provided in gradle.properties.

Compatibility

By default, the raymob template targets APIs 24 to 34, which corresponds from Android 7.0 to Android 13 (so 96% of devices according to apilevels.com).

This project is fully C/C++ compatible for the logical part with raylib and you can also customize the Java part to your wishes.

Additional Features

In this project, you have access to the header file raymob.h, which provides functions for controlling sensors, vibration, and the Android soft keyboard, as well as lower-level functions such as obtaining the android_app, manipulating the cache, managing resources, and calling Java functions from your native code.

Useful Links

Contributions

If you believe that your repositories or gists related to raymob can be beneficial to others, please feel free to reach out to me or open a pull request to have them added here. I welcome contributions and collaborations to enhance the raymob project and make it more valuable for the community.

You can also contribute to the project by reporting issues, suggesting improvements, or helping to document the project. Your input is highly appreciated!

Support

If you have any questions or encounter problems when using this implementation, please do not hesitate to ask for help by submitting an issue on this repository, this may help other users.

About

Simple raylib implementation for Android

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 82.3%
  • Java 13.3%
  • CMake 4.4%