{"id":22887194,"url":"https://github.com/electrostat-lab/cross-platform-template","last_synced_at":"2026-04-13T01:40:22.098Z","repository":{"id":41921759,"uuid":"420807766","full_name":"Electrostat-Lab/Cross-platform-template","owner":"Electrostat-Lab","description":" A cross-platform template game for jMonkeyEngine providing compatibility for both desktop and android environments.","archived":false,"fork":false,"pushed_at":"2023-03-14T09:45:30.000Z","size":11266,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-03T10:52:42.878Z","etag":null,"topics":["android","cross-platform","desktop","electrostat-lab","game","gradle","jme3"],"latest_commit_sha":null,"homepage":"https://hub.jmonkeyengine.org/t/cross-platform-template-game/46582","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Electrostat-Lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-24T22:11:08.000Z","updated_at":"2025-03-27T19:19:16.000Z","dependencies_parsed_at":"2024-08-08T23:40:24.231Z","dependency_job_id":null,"html_url":"https://github.com/Electrostat-Lab/Cross-platform-template","commit_stats":null,"previous_names":["electrostat-lab/cross-platform-template","monkey-droid/crossplatformmodule"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/Electrostat-Lab/Cross-platform-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Electrostat-Lab%2FCross-platform-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Electrostat-Lab%2FCross-platform-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Electrostat-Lab%2FCross-platform-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Electrostat-Lab%2FCross-platform-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Electrostat-Lab","download_url":"https://codeload.github.com/Electrostat-Lab/Cross-platform-template/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Electrostat-Lab%2FCross-platform-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31736723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T22:19:12.206Z","status":"ssl_error","status_checked_at":"2026-04-12T22:18:33.088Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","cross-platform","desktop","electrostat-lab","game","gradle","jme3"],"created_at":"2024-12-13T20:31:25.888Z","updated_at":"2026-04-13T01:40:22.074Z","avatar_url":"https://github.com/Electrostat-Lab.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cross-platform-template \n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/09d937b3dd2549aea7e304aedc050764)](https://www.codacy.com/gh/Monkey-Droid/CrossPlatformModule/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=Monkey-Droid/CrossPlatformModule\u0026amp;utm_campaign=Badge_Grade)\n\nA cross platform template for jMonkeyEngine games supporting both common-platform and platform-specific environment using gradle sub-projects.\n\n# Modules: \n1) Game module `:game` : holds `build.gradle` dependencies for the game code \u0026 should hold your code.\n2) Game-assets module `:game-assets`: holds game assets at `./game-assets/src/main/resources` and supports java code specific to loading assets which is also a cross-platform module.\n3) Desktop module `:desktop` : holds `build.gradle` for desktop dependencies and implements the `:game` module and the `game-assets` module, this module can hold the desktop dependent gui and hardware code.\n4) Android module `:android` : holds `build.gradle` for the android dependencies and implements the `:game` module and the `game-assets` module, this module can hold android dependent gui and hardware code.\n\n# Features: \n- [x] A platform independent assets module `:game-assets` for game assets.\n- [x] A platform independent game module `:game` for game logic.\n- [x] Android Support via `:android` module.\n- [x] Desktop Support via `:desktop` module.\n- [x] Desktop executable jar building task.\n- [x] Automate game building using gradle tasks via GitHub CI.\n- [ ] Automate game releasing `on-release` via GitHub CI `on-release` action.\n- [ ] Android emulator and adb helper tasks (wip).\n\n# Running Game: \n\n### On Desktop: \n\n```gradle\n./gradlew run\n```\n\n### On Android: \n\nInstall the app on a connected device via adb.\n\n```bash\n┌─[✗]─[twisted@parrot]─[~/AndroidStudioProjects/CrossPlatformModule]\n└──╼ $./gradlew :android:installDebug\n\n\u003e Task :app:installDebug\nInstalling APK 'app-debug.apk' on 'Redmi Note 6 Pro - 10' for app:debug\nInstalled on 1 device.\n\nBUILD SUCCESSFUL in 4s\n33 actionable tasks: 1 executed, 32 up-to-date\n```\n\n# Building Game:\n\n### Desktop: \n```bash\n$./gradlew :desktop:clean \u0026\u0026\n ./gradlew :desktop:build \u0026\u0026 \n ./gradlew :desktop:copyJars \u0026\u0026 \n ./gradlew :desktop:releaseJar \n```\n![](https://github.com/Scrappers-glitch/CrossPlatformModule/blob/master/screenshots/desktop/Screenshot%20at%202021-10-25%2000-08-45.png)\n\n### Android: \n```gradle\n$./gradlew :android:clean \u0026\u0026\n ./gradlew :android:build \u0026\u0026 \n ./gradlew :android:assemble\n```\n![](https://github.com/Scrappers-glitch/CrossPlatformModule/blob/master/screenshots/android/Screenshot_20211025-000113671.jpg)\n\n![](https://github.com/Scrappers-glitch/CrossPlatformModule/blob/master/screenshots/android/Screenshot_20211025-000108283.jpg)\n\n## Appendix: \n\n### Credits: \n=\u003e Thanks [Ali_RS](https://hub.jmonkeyengine.org/u/ali_rs/summary) for the suggestion of separating game and game-assets module from desktop and android ones. \u003cbr/\u003e\n=\u003e Thanks [wizzardo](https://hub.jmonkeyengine.org/u/wizzardo/summary) for fixing creating jar from desktop issue. \u003cbr/\u003e\n\n### References: \n\n=\u003e [Android studio-AGP-Gradle release notes](https://developer.android.com/studio/releases/gradle-plugin)\n\n=\u003e [Gradle wrapper for android](https://developer.android.com/studio/build/building-cmdline)\n\n=\u003e [Gradle DSL](https://docs.gradle.org/current/dsl/index.html)\n\n=\u003e [Gradle multi-project-builds](https://docs.gradle.org/current/userguide/multi_project_builds.html)\n\n=\u003e [Gradle/Groovy Udacity course by google](https://github.com/udacity/ud867/blob/master/1.11-Exercise-ConfigureFileSystemTasks/solution.gradle)\n\n=\u003e See JMonkeyEngine Android Examples: \n- [jme3-simple-examples](https://github.com/Scrappers-glitch/jme3-Simple-Examples)\n- [DB-Training-App](https://github.com/Scrappers-glitch/DBTraining)\n- [SEE-Demo](https://github.com/Scrappers-glitch/Superior-Extended-Engine/tree/master/demoApp)\n\n=\u003e See JMonkeyEngine RPI armhf Desktop Example: \n- [JmeCarPhysicsTestRPI](https://github.com/Scrappers-glitch/JmeCarPhysicsTestRPI)\n- [GPIOJmeCarTest](https://github.com/Software-Hardware-Codesign/JmeCarPhysicsTestRPI/blob/master/src/main/java/GPIOJmeCarTest.java)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectrostat-lab%2Fcross-platform-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felectrostat-lab%2Fcross-platform-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felectrostat-lab%2Fcross-platform-template/lists"}