Сообщения

Сообщения за февраль, 2023

Jmonkey engine crossplatform andoid desctop project 3.5.2

  Jmonkey engine crossplatform

jmonkey engine andoid save load data

         Node levelData = (Node) SaveGame.loadGame("jetananas/wwparis", "level");         if(levelData != null){             System.out.println(levelData.getName());         }else{                      }                  levelData = new Node();         levelData.setName("paris");         SaveGame.saveGame("jetananas/wwparis", "level", levelData);         

jmonkey engine move object to object move object to position

 package tests; import com.jme3.app.SimpleApplication; import com.jme3.light.AmbientLight; import com.jme3.light.DirectionalLight; import com.jme3.material.Material; import com.jme3.math.ColorRGBA; import com.jme3.math.Vector3f; import com.jme3.renderer.RenderManager; import com.jme3.scene.Geometry; import com.jme3.scene.Spatial; import com.jme3.scene.shape.Box; /**  * This is the Main Class of your Game. It should boot up your game and do initial initialisation  * Move your Logic into AppStates or Controls or other java classes  */ public class Tests extends SimpleApplication {          public static void main(String[] args) {         Tests app = new Tests();         app.setShowSettings(false); //Settings dialog not supported on mac         app.start();     }     private float interp = 0.0f;     private float mySpeed = 2.0f;     Spatial player...

jmonkey engine create and build andoid project

Изображение
Create project 1. go to  https://jmonkeyengine.org/start/   2. enter project name check ckeckbox andoid and download project 3. extract archive 4. open terminal 5. cd path_to_project 6. sudo nano local properties enter sdk.dir=/home/ivan/Android/Sdk  save Singn application 1. run in termianl  2. keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000 3. Place my-release-key.keystore which you generated in Step 1 under project/app 4.  Update your  gradle.properties  under  project  and add the following MYAPP_RELEASE_STORE_FILE=my-release-key.keystore MYAPP_RELEASE_KEY_ALIAS=my-key-alias MYAPP_RELEASE_STORE_PASSWORD=<The password you choose earlier with the keytool> MYAPP_RELEASE_KEY_PASSWORD=<The password you choose earlier with the keytool> 5.  Finally you need to update your   project/app/build.gradle . android { ... defaultConfig { ... } signi...

install Jmoneky engine for andoid ubuntu

install ubuntu Open terminal Install jdk   sudo apt-get update sudo apt install default-jdk Install jmonkey sdk  download latest jdk   open terminal  cd Downloads sh jmonkeyplatform-linux-x64.sh Update jmonkey engine open engine press tools->plugins->settings check Nightty select chek interval every startup restart engine Install android sdk wget https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip mkdir -p Android/Sdk unzip commandlinetools-linux-6200805_latest.zip -d Android/Sdk export ANDROID_HOME=$HOME/Android/Sdk # Make sure emulator path comes before tools. Had trouble on Ubuntu with emulator from /tools being loaded # instead of the one from /emulator export PATH="$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH" sdkmanager --sdk_root=${ANDROID_HOME} "tools" sdkmanager --update sdkmanager --list sdkmanager "build-tools;28.0.3" "platform-tools" "pl...