New answers tagged

2

To me it looks like the joystick is simply controlling two deltas; the Y-axis controls the pitch of the cannon and the X-axis controls the force or power of the cannon. I don't think you need to consider any pivot point for this. Taking the pitch only as an example, you can implement it by keeping track of a baseAngle and a deltaAngle of the cannon. The ...


0

use the Stage class to render ui things private Stage stage; @override public void show() { ... stage = new Stage(); // create the button final ImageButton shuffleButton = new ImageButton(/*maybe need some params*/); shuffleButton.addListener(new ClickListener() { @Override public boolean touchDown(InputEvent event, float x, ...


Top 50 recent answers are included