- Notifications
You must be signed in to change notification settings - Fork1
A cross-platform template game for jMonkeyEngine providing compatibility for both desktop and android environments.
License
Electrostat-Lab/Cross-platform-template
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A cross platform template for jMonkeyEngine games supporting both common-platform and platform-specific environment using gradle sub-projects.
- Game module
:game: holdsbuild.gradledependencies for the game code & should hold your code. - Game-assets module
:game-assets: holds game assets at./game-assets/src/main/resourcesand supports java code specific to loading assets which is also a cross-platform module. - Desktop module
:desktop: holdsbuild.gradlefor desktop dependencies and implements the:gamemodule and thegame-assetsmodule, this module can hold the desktop dependent gui and hardware code. - Android module
:android: holdsbuild.gradlefor the android dependencies and implements the:gamemodule and thegame-assetsmodule, this module can hold android dependent gui and hardware code.
- A platform independent assets module
:game-assetsfor game assets. - A platform independent game module
:gamefor game logic. - Android Support via
:androidmodule. - Desktop Support via
:desktopmodule. - Desktop executable jar building task.
- Automate game building using gradle tasks via GitHub CI.
- Automate game releasing
on-releasevia GitHub CIon-releaseaction. - Android emulator and adb helper tasks (wip).
./gradlew runInstall the app on a connected device via adb.
┌─[✗]─[twisted@parrot]─[~/AndroidStudioProjects/CrossPlatformModule]└──╼ $./gradlew :android:installDebug> Task :app:installDebugInstalling APK'app-debug.apk' on'Redmi Note 6 Pro - 10'for app:debugInstalled on 1 device.BUILD SUCCESSFULin 4s33 actionable tasks: 1 executed, 32 up-to-date
$./gradlew :desktop:clean&& ./gradlew :desktop:build&& ./gradlew :desktop:copyJars&& ./gradlew :desktop:releaseJar
$./gradlew :android:clean&& ./gradlew :android:build&& ./gradlew :android:assemble
=> ThanksAli_RS for the suggestion of separating game and game-assets module from desktop and android ones.
=> Thankswizzardo for fixing creating jar from desktop issue.
=>Android studio-AGP-Gradle release notes
=>Gradle/Groovy Udacity course by google
=> See JMonkeyEngine Android Examples:
=> See JMonkeyEngine RPI armhf Desktop Example:
About
A cross-platform template game for jMonkeyEngine providing compatibility for both desktop and android environments.
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.


