This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dbPassword": "123456789" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FILE: root/build.gradle | |
project(":core") { | |
apply plugin: "java" | |
dependencies { | |
compile "com.badlogicgames.gdx:gdx:$gdxVersion" | |
compile "com.badlogicgames.gdx:gdx-controllers:$gdxVersion" | |
compile "net.dermetfan.libgdx-utils:libgdx-utils:0.10.0" | |
compile "com.kotcrab.vis:vis-ui:0.7.7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class WeaponListener implements BaseComponentListener { | |
@Override | |
public void run(ListenerData data) { | |
ShootToMessage shootTo = (ShootToMessage) data.message; | |
WeaponComponent wc = (WeaponComponent) data.component; | |
MovementComponent mc = data.movementComponent; | |
// problem arises here when there is no access to the player position | |
// therefore, the bullet angle calculation cannot be done. |