New dynamic orientAt method in FlxTile, used to position and resize the tile based on the grid location it is meant to represent in world space.
Added helper methods: `orient
New dynamic overlapsObject method in FlxTile, can be extended or set to allow custom overlap detection for tiles whose hit shape is smaller than the tileGrid
New onCollide signal, dispatched when overlaps are checked for collision reasons
Tilemaps
New forEachOverlappingTile method in FlxTilemap, to retrieve every tile that is overlapping the given object
Using forEachOverlappingTile in overlapsWithCallbacks
Alters the createTile method (also added in 5.9.0 and therefore not released) to remove the allowCollisions and visible args, it is recommended to simply reference the map's drawIndex and collideIndex in your override if you need these to your tile instances
Added new isOverlappingTile method, allows you to check all tiles overlapping an object
Added new objectOverlapsTiles to replace the now deprecated overlapsWithCallbacks
Eschews flipCallbackParams arg, allowing better typing of both callback params
Adds isCollision flag to control whether the Tiles' collision callbacks are fired and allows for processing non-solid tiles
Added new helpers: getMapIndex, getRow, getColumn, getTileIndex, getTileData, tileExists, setTileIndex, getColumnAt, getRowAt, columnExists and rowExists
Objects
Add internal helper processCheckTilemap for calling overlap checking utils between some combination of objects and tilemaps
Add helper methods for separate and updateTouchingFlags
Debug Drawing
Checks the previously unused tile.ignoreDrawDebug when debug drawing tiles
Checks tile.debugBoundingBoxColor in debug drawing, if null, the map's debug drawing properties is used, as usual
New getDebugBoundingBoxColor in FlxObject. Meant to replace drawDebugBoundingBox, will deprecate later
(semi) Breaking changes
Previously, overlaps with callback would call the callback regardless of whether the tile overlapped the object. This change only effects objects placed exactly on the edge of a tile, and typically it was used to call separate, which would not do any separation in this case. this is technically a breaking change, but the case is so rare I'm going to add this on a minor release.
New features
Tiles
orientAt
method in FlxTile, used to position and resize the tile based on the grid location it is meant to represent in world space.overlapsObject
method in FlxTile, can be extended or set to allow custom overlap detection for tiles whose hit shape is smaller than the tileGridonCollide
signal, dispatched when overlaps are checked for collision reasonsTilemaps
forEachOverlappingTile
method in FlxTilemap, to retrieve every tile that is overlapping the given objectforEachOverlappingTile
inoverlapsWithCallbacks
createTile
method (also added in 5.9.0 and therefore not released) to remove theallowCollisions
andvisible
args, it is recommended to simply reference the map'sdrawIndex
andcollideIndex
in your override if you need these to your tile instancesisOverlappingTile
method, allows you to check all tiles overlapping an objectobjectOverlapsTiles
to replace the now deprecatedoverlapsWithCallbacks
flipCallbackParams
arg, allowing better typing of both callback paramsisCollision
flag to control whether the Tiles' collision callbacks are fired and allows for processing non-solid tilesgetMapIndex
,getRow
,getColumn
,getTileIndex
,getTileData
,tileExists
,setTileIndex
,getColumnAt
,getRowAt
,columnExists
androwExists
Objects
processCheckTilemap
for calling overlap checking utils between some combination of objects and tilemapsseparate
andupdateTouchingFlags
Debug Drawing
tile.ignoreDrawDebug
when debug drawing tilestile.debugBoundingBoxColor
in debug drawing, if null, the map's debug drawing properties is used, as usualgetDebugBoundingBoxColor
in FlxObject. Meant to replacedrawDebugBoundingBox
, will deprecate later(semi) Breaking changes
Previously, overlaps with callback would call the callback regardless of whether the tile overlapped the object. This change only effects objects placed exactly on the edge of a tile, and typically it was used to call separate, which would not do any separation in this case. this is technically a breaking change, but the case is so rare I'm going to add this on a minor release.
TODO
New unit tests