Skip to content
Ludens Ludens Ludens 0.3.0

Examples

This content is for the 0.1.0 version. Switch to the latest version for up-to-date documentation.

This page provides practical examples for common workflows when using Ludens.

The simplest possible setup — export your game and build with default settings.

  1. Export your RPG Maker MV game with the Android / iOS deployment option.
  2. Copy the www folder to:
    composeApp/src/commonMain/composeResources/files/www/
  3. Edit gradle.properties:
    ludens.applicationId=com.example.mygame
    ludens.applicationVersion=1.0
    ludens.applicationName=My Game
    ludens.applicationLauncherName=My Game
  4. Run:
    Terminal window
    ./gradlew assembleDebug

A debug APK at composeApp/build/outputs/apk/debug/composeApp-debug.apk ready for testing.


A full production workflow with custom branding.

  1. Complete the Minimal Setup above.

  2. Set a custom icon using Image Asset Studio:

    • Right-click composeApp/src/androidMain/res
    • Select New > Image Asset
    • Import your game icon (recommended: 512×512 px PNG)
  3. Create a signing keystore (if you don’t have one):

    • In Android Studio: Build > Generate Signed Bundle / APK
    • Select APK, click Next
    • Click Create new… and fill in the keystore details
    • Save the .jks file securely
  4. Configure signing:

    keystore.properties
    storePassword=my_secure_password
    keyPassword=my_key_password
    keyAlias=my_key_alias
    storeFile=C:/keys/my-game-key.jks
  5. Build the release APK:

    Terminal window
    ./gradlew assembleRelease

A signed release APK at composeApp/build/outputs/apk/release/composeApp-release.apk ready for distribution.


Integrate the recommended plugin for better WebView compatibility.

  1. Download YDP_Ludens.js from the rpgm-plugins repository.

  2. Place it in your RPG Maker project’s js/plugins/ folder.

  3. Open your RPG Maker project and go to the Plugin Manager.

  4. Add YDP_Ludens and move it to the top of the plugin list.

  5. Save and re-export the game.

  6. Copy the updated www folder to Ludens and rebuild.

  • Fixes font loading verification errors on older WebView versions.
  • Enables additional client-side features supported by Ludens.

A complete view of the project structure after setup:

  • Directoryludens/
    • DirectorycomposeApp/
      • Directorysrc/
        • DirectoryandroidMain/
          • Directoryres/
            • Directorymipmap-mdpi/ App icon (48px)
            • Directorymipmap-hdpi/ App icon (72px)
            • Directorymipmap-xhdpi/ App icon (96px)
            • Directorymipmap-xxhdpi/ App icon (144px)
            • Directorymipmap-xxxhdpi/ App icon (192px)
        • DirectorycommonMain/
          • DirectorycomposeResources/
            • Directoryfiles/
              • Directorywww/ Your game
                • Directoryaudio/
                • Directorydata/
                • Directoryfonts/
                • Directoryimg/
                • Directoryjs/
                  • Directoryplugins/
                    • YDP_Ludens.js
                • index.html
      • Directorybuild/
        • Directoryoutputs/
          • Directoryapk/
            • Directorydebug/ Debug APK output
            • Directoryrelease/ Release APK output
    • gradle.properties App configuration
    • keystore.properties Signing credentials
    • keystore.properties.template Template reference