Fix camera view jumping for doubled up fixed views

Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com>
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2, Sig, Sigo 2 years ago committed by GitHub
parent 0787ac4d5d
commit b9e9756b25
  1. BIN
      bin/RabiClone.jar
  2. 3
      src/sig/objects/Player.java

Binary file not shown.

@ -5,7 +5,6 @@ import java.util.List;
import sig.RabiClone; import sig.RabiClone;
import sig.engine.Action; import sig.engine.Action;
import sig.engine.Alpha;
import sig.engine.Panel; import sig.engine.Panel;
import sig.engine.Rectangle; import sig.engine.Rectangle;
import sig.engine.Sprite; import sig.engine.Sprite;
@ -441,6 +440,8 @@ public class Player extends PhysicsObject{
} }
break; break;
case FIXED: case FIXED:
newX = (tileX/Tile.TILE_SCREEN_COUNT_X)*RabiClone.BASE_WIDTH;
newY = (tileY/Tile.TILE_SCREEN_COUNT_Y)*RabiClone.BASE_HEIGHT;
break; break;
default: default:
break; break;

Loading…
Cancel
Save