Improved tutorial, made smooth camera a setting

This commit is contained in:
Anuken
2017-10-16 22:54:11 -04:00
parent 254782c4e8
commit 670d080fae
6 changed files with 95 additions and 19 deletions

View File

@@ -44,7 +44,12 @@ public class Player extends DestructibleEntity{
@Override
public void draw(){
Draw.rect("player", (int)x, (int)y, direction.angle()-90);
if(Vars.snapCamera && Settings.getBool("smoothcam")){
Draw.rect("player", (int)x, (int)y, direction.angle()-90);
}else{
Draw.rect("player", x, y, direction.angle()-90);
}
}
@Override