-
-
Notifications
You must be signed in to change notification settings - Fork 934
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: Change Tiled batched rendering to batched rendering per layer (#…
…1317) This fix introduces a list of SpriteBatch maps corresponding to the visible TileLayers. The BatchMaps are then rendered in order of the layers.
- Loading branch information
Showing
6 changed files
with
170 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ dependencies: | |
tiled: ^0.7.2 | ||
xml: ^5.3.0 | ||
meta: ^1.7.0 | ||
collection: ^1.15.0 | ||
flutter: | ||
sdk: flutter | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<map version="1.5" tiledversion="1.7.2" orientation="orthogonal" renderorder="right-down" width="2" height="1" tilewidth="16" tileheight="16" infinite="0" nextlayerid="3" nextobjectid="1"> | ||
<tileset firstgid="1" name="green_tile" tilewidth="16" tileheight="16" tilecount="1" columns="1"> | ||
<image source="green_sprite.png" width="16" height="16"/> | ||
</tileset> | ||
<tileset firstgid="2" name="red_tile-base" tilewidth="16" tileheight="16" tilecount="1" columns="1"> | ||
<image source="red_sprite.png" width="16" height="16"/> | ||
</tileset> | ||
<layer id="2" name="red_tile-base" width="2" height="1"> | ||
<data encoding="base64" compression="zlib"> | ||
eJxjYmBgYAJiAAAgAAU= | ||
</data> | ||
</layer> | ||
<layer id="1" name="green_tile-top" width="2" height="1"> | ||
<data encoding="base64" compression="zlib"> | ||
eJxjZIAAAAAQAAI= | ||
</data> | ||
</layer> | ||
</map> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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