Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AffineTransform playerRot = new AffineTransform();
- playerRot.rotate(player.getRotation(), player.getX(), player.getY());
- AffineTransformOp op = new AffineTransformOp(playerRot, AffineTransformOp.TYPE_NEAREST_NEIGHBOR);
- g.drawImage(op.filter(player.getImage(player.getType()), null), 250, 250, null);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement