Skip to content

Commit

Permalink
chore: update Changelog + add convex polygon in physics examples
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-bon committed Dec 15, 2024
1 parent 415bd6b commit 88723ab
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 83 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ A [migration guide](https://adrien-bon.github.io/bevy_ecs_tiled/migrations/v0_5.
Not having this flag was preventing to use some some of the properties
- Prevent infinite loop in case of an asset loading error
- Fix typo which was preventing to load the first object collider (#64)
- Fix convex polygon colliders (#65)

## v0.4.2

Expand Down
169 changes: 86 additions & 83 deletions assets/infinite.tmx
Original file line number Diff line number Diff line change
@@ -1,83 +1,86 @@
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.11.0" orientation="orthogonal" renderorder="right-down" width="10" height="10" tilewidth="32" tileheight="32" infinite="1" nextlayerid="3" nextobjectid="2">
<tileset firstgid="1" source="Tileset1.tsx"/>
<layer id="1" name="Tile Layer 1" width="10" height="10" offsetx="0" offsety="1">
<data encoding="csv">
<chunk x="-16" y="-16" width="16" height="16">
2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,2,2,2,2,2,2,2,6,6,6,6,
0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,2,3,3,3,3,3,0,7,7,7,7,
0,0,0,0,0,2,0,0,0,0,0,0,7,0,0,0,
0,0,0,0,0,2,0,3,3,3,3,3,7,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0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
</chunk>
<chunk x="0" y="0" width="16" height="16">
0,7,7,5,5,5,5,5,0,4,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,
0,7,7,0,5,5,5,5,5,4,0,0,0,0,0,0,
0,0,7,0,0,0,0,0,0,4,0,0,0,0,0,0,
7,0,7,5,5,5,5,5,0,4,0,0,0,0,0,0,
0,0,7,0,0,0,0,0,0,4,0,0,0,0,0,0,
7,7,7,0,5,5,5,5,5,4,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,
6,6,6,4,4,4,4,4,4,4,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4
</chunk>
</data>
</layer>
<objectgroup id="2" name="Collisions">
<object id="1" x="-128" y="97" width="223" height="157"/>
</objectgroup>
</map>
<?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.11.0" orientation="orthogonal" renderorder="right-down" width="10" height="10" tilewidth="32" tileheight="32" infinite="1" nextlayerid="3" nextobjectid="3">
<tileset firstgid="1" source="Tileset1.tsx"/>
<layer id="1" name="Tile Layer 1" width="10" height="10" offsetx="0" offsety="1">
<data encoding="csv">
<chunk x="-16" y="-16" width="16" height="16">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0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4
</chunk>
</data>
</layer>
<objectgroup id="2" name="Collisions">
<object id="1" x="-128" y="97" width="223" height="157"/>
<object id="2" x="-132" y="-74">
<polygon points="0,0 144.667,-56 233.333,-11.3333 213.333,30.6667 68,42.6667 150.667,-8"/>
</object>
</objectgroup>
</map>

0 comments on commit 88723ab

Please sign in to comment.