Created
May 19, 2013 16:44
-
-
Save martenlienen/5608203 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Player movedPlayer = this.world.getPlayer().apply(transform); | |
for (blockingTile : alle blockingTiles) { | |
if (movedPlayer.touches(blockingTile) { | |
return new IdentityTransform(); | |
} | |
} | |
return transform; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment