Commit 8489570
authored
Major change to FlxTilemap/FlxTiles Improve collision, debug drawing, add various features (#3158)
* drawDebug boundingBox helpers
* allow tile instances to determine overlap
* simplify createTile
* make overlapsObject dynamic
* cc
* add orient + forEachOverlappingTile
* add separateObjects and similar helpers, revert overlapsWithCallback changes
* doc
* deprecate overrides
* fix deprecation warning
* add isOverlappingTile and docs to base
* add since
* cc
* doc
* remove new public helpers
* extract legacy code to new func
* cc
* add legacyCollision to coverage
* separate tests
* cleanup computeOverlap funcs
* add separate, computeOverlap tests
* check diagonal against walls
* check immovable, recursively in collision
* add other orient helpers
* add overloaded setTile/getTile methods + tests
* soft deprecation
* small cleanup
* better backwards compatibility
* add since
* more since
* more since
* dd getRowAt, getColumnAt, rowExists and columnExists
* D'oh!
* D'OH!
* processOverlaps -> objectOverlapsTiles + tests
* small changes
* test literal edge case
* more small stuff
* D'OH!!1 parent 27d0097 commit 8489570
File tree
11 files changed
+1420
-575
lines changed- flixel
- math
- path
- tile
- tests
- coverage
- unit/src/flixel
- path
- tile
11 files changed
+1420
-575
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
216 | 216 | | |
217 | | - | |
218 | | - | |
| 217 | + | |
| 218 | + | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | | - | |
223 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
224 | 227 | | |
225 | 228 | | |
226 | 229 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
| 620 | + | |
| 621 | + | |
624 | 622 | | |
625 | 623 | | |
626 | 624 | | |
| |||
647 | 645 | | |
648 | 646 | | |
649 | 647 | | |
650 | | - | |
| 648 | + | |
651 | 649 | | |
652 | 650 | | |
653 | 651 | | |
654 | 652 | | |
655 | 653 | | |
656 | 654 | | |
657 | 655 | | |
658 | | - | |
| 656 | + | |
659 | 657 | | |
660 | 658 | | |
661 | 659 | | |
| |||
664 | 662 | | |
665 | 663 | | |
666 | 664 | | |
667 | | - | |
| 665 | + | |
668 | 666 | | |
669 | 667 | | |
670 | 668 | | |
| |||
0 commit comments