Commit ffdcafc4 authored by Anish Sinha's avatar Anish Sinha
Browse files

joystick implementation

parent a2f764b4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ public class GameView extends SurfaceView implements Runnable{

    Joystick joystick = new Joystick(450,1300,100,40);

    Player p1 = new Player(0,0,0,0, getResources());
    Player p1 = new Player(0,1000,5,0, getResources());
    //undecided location


+2 −2
Original line number Diff line number Diff line
@@ -20,8 +20,8 @@ public class Joystick {
    private double actuatorX;
    private double actuatorY;

    private double XVelocity;
    private double YVelocity;
    public double XVelocity;
    public double YVelocity;

    public Joystick(int CenterPositionX, int CenterPositionY, int outerCircleRad, int innerCircleRad){
        outerCircleCenterX = CenterPositionX;