HaxeFlixel / flixel

Free, cross-platform 2D game engine powered by Haxe and OpenFL
https://haxeflixel.com/
MIT License
1.92k stars 427 forks source link

add FlxBasePath, extends base in FlxPath #3153

Closed Geokureli closed 1 month ago

Geokureli commented 1 month ago

FlxPath does too much, in a way that makes it hard to do anything else. FlxBasePath allows to you create your own follow logic. This is mainly because FlxPath has a lot of features that I feel I need to work around, and other features that, frankly, don't make any sense to me, like axes.

FlxBasePath is also a complete overhaul of FlxPath and will eventually fecilitate it's replacement in a (much) later version. Here's is a list of those changes:

Note: FlxObject.path is still a FlxPath, if you want to use custom path logic you'll need to manage it yourself

Long Term

I'd like to deprecate FlxPath or rename it to FlxPathLegacy and then make a new simplified version that doesn't have: axes, immovable and all the specific functions currently replaced by new FlxBasePath ones

To Do

Thoroughly check that FlxPath still works, lol