Git Product home page Git Product logo

monkey-droid / superior-extended-engine Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 6.0 72.26 MB

An Android API housing useful re-usbable Human-computer Interfaces (HCI) in the form of in-game android views with an integration API for jMonkeyEngine.

License: MIT License

Java 100.00%
android jmonkeyengine3 android-view gamepad-library android-games java monkey-droid superior-extended-engine

superior-extended-engine's Introduction

Game-HCI

Formerly known as "JmeGamepad" and "Superior-Extended-Engine" or "SEE".

How to implement it into your Android project :

Step 1. Add it in your root build.gradle at the end of repositories :

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Step 2. Add the dependency :

	dependencies {
	        implementation 'com.github.Scrappers-glitch:Superior-Extended-Engine:1.x.x'
	}

Useful Tags/Code snippets:

  1. Constraining the game pad stick using a scale factor to the coordinates calculated from the similarity of parallel triangles :

    Code : https://github.com/Scrappers-glitch/Superior-Extended-Engine/blob/27c6dbb65e07eb2b3096b0dd07af575cc43c54f0/SuperiorPlugin/src/main/java/com/scrappers/superiorExtendedEngine/gamePad/GameStickView.java#L335
    https://www.instructables.com/A-Simple-Android-UI-Joystick/
    Linear Interpolation : https://www.mathsisfun.com/data/scatter-xy-plots.html

  2. Converting vector/rectangular coordinates (vector2d) to polar coordinates (angles) : => Used by DrivingWheel

    Code : https://github.com/Scrappers-glitch/Superior-Extended-Engine/blob/27c6dbb65e07eb2b3096b0dd07af575cc43c54f0/SuperiorPlugin/src/main/java/com/scrappers/superiorExtendedEngine/vehicles/DrivingWheelView.java#L213
    Trigonometry.pdf
    Arc of trig functions : https://www.mathsisfun.com/algebra/trig-inverse-sin-cos-tan.html
    Java atan2 docs : https://developer.android.com/reference/java/lang/Math#atan2(double,%20double)

  3. Using the game rotation vector software sensor (Geomagnetic sensor + Gyroscope) : => Used by GameDrivingMatrix

    Code : https://github.com/Scrappers-glitch/Superior-Extended-Engine/blob/27c6dbb65e07eb2b3096b0dd07af575cc43c54f0/SuperiorPlugin/src/main/java/com/scrappers/superiorExtendedEngine/gamePad/GameStickView.java#L231
    https://developer.android.com/guide/topics/sensors/sensors_position#java

superior-extended-engine's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.