-
I want to create my own tile class for FlxTilemap I created my tilemap by extending FlxTilemap (everything works fine) class MyTilemap extends FlxTilemap {
// ...
} I found this part of code in flixel. I thought at first to extend FlxBaseTilemap (like class FlxTilemap extends FlxBaseTilemap<FlxTile> {
// ...
} Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Im not sure if there is a better solution, currently. Id have to look to make sure, but it might be a good idea to change haxeFlixel to make this easier. Maybe change And then add |
Beta Was this translation helpful? Give feedback.
Im not sure if there is a better solution, currently.
Id have to look to make sure, but it might be a good idea to change haxeFlixel to make this easier. Maybe change
FlxTilemap
intoFlxTypedTilemap<T:FlxTile>
And then add
typedef FlxTilemap = FlxTypedTilemap<FlxTile>;