Skip to content

add define to remove health fields#3067

Merged
Geokureli merged 2 commits intoHaxeFlixel:devfrom
Geokureli:health
Mar 11, 2024
Merged

add define to remove health fields#3067
Geokureli merged 2 commits intoHaxeFlixel:devfrom
Geokureli:health

Conversation

@Geokureli
Copy link
Copy Markdown
Member

@Geokureli Geokureli commented Mar 11, 2024

Continuation of #3065

I wasn't happy with the deprecation message of "you don't need it anymore, because you can extend", that's not what redundant means, the field should have never been added, to begin with.

I've added the defines: FLX_NO_HEALTH to remove it, and it's inversion: FLX_HEALTH. this way people can remove it in their projects now and add their own health system. when flixel 6.0.0 is released FLX_NO_HEALTH will be true by default, and FLX_HEALTH will be it's inversion so people can easily fix old projects

@Geokureli Geokureli added this to the 5.7.0 milestone Mar 11, 2024
@Geokureli Geokureli merged commit 8897a56 into HaxeFlixel:dev Mar 11, 2024
@Geokureli Geokureli deleted the health branch March 11, 2024 02:48
@moxie-coder
Copy link
Copy Markdown
Contributor

that’s honestly more better then what I did, my bad for the original message on it 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants