Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A cross-platform template game for jMonkeyEngine providing compatibility for both desktop and android environments.

License

NotificationsYou must be signed in to change notification settings

Electrostat-Lab/Cross-platform-template

Repository files navigation

Codacy Badge

A cross platform template for jMonkeyEngine games supporting both common-platform and platform-specific environment using gradle sub-projects.

Modules:

  1. Game module:game : holdsbuild.gradle dependencies for the game code & should hold your code.
  2. 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.
  3. Desktop module:desktop : holdsbuild.gradle for desktop dependencies and implements the:game module and thegame-assets module, this module can hold the desktop dependent gui and hardware code.
  4. Android module:android : holdsbuild.gradle for the android dependencies and implements the:game module and thegame-assets module, this module can hold android dependent gui and hardware code.

Features:

  • A platform independent assets module:game-assets for game assets.
  • A platform independent game module:game for game logic.
  • Android Support via:android module.
  • Desktop Support via:desktop module.
  • Desktop executable jar building task.
  • Automate game building using gradle tasks via GitHub CI.
  • Automate game releasingon-release via GitHub CIon-release action.
  • Android emulator and adb helper tasks (wip).

Running Game:

On Desktop:

./gradlew run

On Android:

Install 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

Building Game:

Desktop:

$./gradlew :desktop:clean&& ./gradlew :desktop:build&&  ./gradlew :desktop:copyJars&&  ./gradlew :desktop:releaseJar

Android:

$./gradlew :android:clean&& ./gradlew :android:build&&  ./gradlew :android:assemble

Appendix:

Credits:

=> 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.

References:

=>Android studio-AGP-Gradle release notes

=>Gradle wrapper for android

=>Gradle DSL

=>Gradle multi-project-builds

=>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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp