Merge remote-tracking branch 'origin/master'
commit
6c60709b93
|
@ -18,6 +18,7 @@ public class Player extends GenericSprite {
|
|||
public static final int PLAYER_WIDTH = 52;
|
||||
public static final int PLAYER_HEIGHT = 94;
|
||||
|
||||
public static final double reach = 0.89;
|
||||
public static final int steelReachRange = 4*Tile.length;
|
||||
public int lastXDirection, lastYDirection, lastFrame;
|
||||
|
||||
|
@ -398,7 +399,7 @@ public class Player extends GenericSprite {
|
|||
public int draw(Graphics g, int frame) {
|
||||
frame %= spriteArray[0][0].length;
|
||||
if(rightMouseDown){
|
||||
g.drawOval(x+WIDTH/2-steelReachRange,y+HEIGHT/2-steelReachRange, steelReachRange*2,steelReachRange*2);
|
||||
g.drawOval((int)(x+WIDTH/2-(reach*steelReachRange)),(int)(y+HEIGHT/2-(reach*steelReachRange)), (int)(reach*steelReachRange*2),(int)(reach*steelReachRange*2));
|
||||
}
|
||||
if (!upPressed && !downPressed && !leftPressed && !rightPressed) {
|
||||
g.drawImage(spriteArray[lastXDirection][lastYDirection][0].image, x-10, y, null);
|
||||
|
|
Loading…
Reference in New Issue