Git Product home page Git Product logo

electrostat-lab / jme3-simple-examples Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 2.0 395 KB

Module based jMonkeyEngine android examples

Home Page: https://jmonkeyengine.org/

Java 92.45% Kotlin 7.55%
android android-development android-library gradle jmonkeyengine3 activity-lifecycle custom-android-view fragments jmesurfaceview androidharness java monkey-droid android-studio kotlin-android

jme3-simple-examples's Introduction

jme3-Simple-Examples

Module based jMonkeyEngine Android Simple Gradle Examples.

In this repository, you will find 5 modules :

include ':helloandroidui'
include ':hellofragmentharness'
include ':helloandroidharness'
include ':hellojmesurfaceview'
include ':hellokotlin'
include ':hellolemur'
include ':hellominie'
helloandroidharness hellofragmentharness hellojmesrufaceview helloandroidui hellokotlin hellolemur hellominie
Tests jme game on an android activity AndroidHarness Tests jme game on an android fragment AndroidFragmentHarness Tests jme game on a custom android view JmeSurfaceView Tests jme game on a surface view with some android ui usages showing best practice Tests jme game using kotlin android plugin Tests lemur integration and lemur stylying with a jMonkeyEngine game Tests minie (bullet physics) with a jMonkeyEngine game

Quick start guide using android studio IDE :

  1. Clone the repository.
  2. Open android studio (any version would be fine) and Get from version control :

image

  1. To test on physical device : connect your physical device and use the developer options to enable adb via usb debugging, you can refer to use guide for more on devdloper options : https://developer.android.com/studio/debug/dev-options#debugging
  2. To test on an emulator, android launches the selected emulator directly when you run an app module.
  3. When opening android studio, you will find these modules, select a module and run :

image

  1. Congrats ! Now you can play around with android and jMonkeyEngine apis !

Quick start guide using command line gradle and adb :

  1. Download the repository on your local disk.
  2. Navigate to the root directory.
  3. To start building an example use the following command :

For windows

gradlew :helloandroidharness

For linux/mac

./gradlew :helloandroidharness
  1. To start dexing and build a debug apk for an example, use the following command :

For windows

gradlew :hellofragmentharness:assemble

For linux/mac

./gradlew :hellofragmentharness:assemble
  1. To run directly on connected devices :

For windows

gradlew :hellofragmentharness:installDebug

For linux/mac

./gradlew :hellofragmentharness:installDebug
  1. To dex a signed apk for google play, check this tutorial : https://developer.android.com/studio/publish/app-signing

For more about testing your application :

https://developer.android.com/studio/test

The anatomy of jMonkeyEngine game android application :

SimpleApplication Rendering Component Android Activity AppStates and Controls
Initializes and updates a jme game Renders a SimpleApplication using a surface view (gl component) and passes it to android activity The entry point and life cycle manager of android application, it holds the surface view Game logic is distributed among these components and can be registered inside SimpleApplication class to be updated inside game loop

jme3-simple-examples's People

Contributors

scrappers-glitch avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.