Skip to content

Instantly share code, notes, and snippets.

@martenlienen
Created May 19, 2013 16:44
Show Gist options
  • Save martenlienen/5608203 to your computer and use it in GitHub Desktop.
Save martenlienen/5608203 to your computer and use it in GitHub Desktop.
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