HaxeFlixel / flixel

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

Support for loading `FlxGraphic`'s through `FlxMouse.load` #3066

Closed DetectiveBaldi closed 6 months ago

DetectiveBaldi commented 6 months ago

I was working on a project and I noticed that FlxMouse doesn't natively support loading FlxGraphics, I found this odd, it supports BitmapData and even custom classes, why not the main one for Flixel graphics?

Geokureli commented 6 months ago

I think accepting graphics is misleading and will make people think the mouse supports animations or sub-frames, when it doesn't, I suggest just passing in graphic.bitmap rather than accepting graphics