-
-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify autotiling code more, loop-based autotile erasing algorithm
The non-corner autotile erasing algorithm now uses a loop to perform the same actions as before, just without code duplication. The `TileMap::autotile_corner` base function has been removed in favour of moving its functionality of placing corners to `autotile()`, where it will be checked whether the tilemap is a corner and the respective actions will be done. The autotile corner tile position offset of `0.5f` is now added by the `TileMap` autotiling functions as well. Fixes an issue, where autotile erasing empty tiles adjacently to other tiles will not fix-up the existing tiles.
- Loading branch information
1 parent
a31e75e
commit 126e60e
Showing
4 changed files
with
77 additions
and
102 deletions.
There are no files selected for viewing
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
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
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
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