https://github.com/electrostat-lab/game-hci
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.
https://github.com/electrostat-lab/game-hci
android android-games android-view gamepad-library java jmonkeyengine3 monkey-droid superior-extended-engine
Last synced: 4 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/electrostat-lab/game-hci
- Owner: Electrostat-Lab
- License: mit
- Created: 2020-11-09T21:57:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-03T19:36:41.000Z (12 months ago)
- Last Synced: 2024-08-08T23:29:53.111Z (9 months ago)
- Topics: android, android-games, android-view, gamepad-library, java, jmonkeyengine3, monkey-droid, superior-extended-engine
- Language: Java
- Homepage:
- Size: 70.6 MB
- Stars: 11
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Game-HCI
> Formerly known as "JmeGamepad" and "Superior-Extended-Engine" or "SEE".## [Demonstration of the library's capabilities.](https://www.youtube.com/watch?v=Gp2JJ-PCI8c) ##
##### How to implement it into your Android project :
Step 1. Add it in your root build.gradle at the end of repositories :
```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```Step 2. Add the dependency :
```gradle
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.html2) `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](https://github.com/Scrappers-glitch/Superior-Extended-Engine/files/7531994/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