2022-03-08 03:13:53 -05:00
|
|
|
package funkin;
|
2021-12-30 00:09:16 -05:00
|
|
|
|
|
|
|
import flixel.FlxCamera;
|
|
|
|
import flixel.FlxSprite;
|
|
|
|
import flixel.graphics.tile.FlxDrawBaseItem;
|
|
|
|
import openfl.display.MovieClip;
|
|
|
|
|
|
|
|
class FlxSwf extends FlxSprite
|
|
|
|
{
|
2023-01-22 22:25:45 -05:00
|
|
|
public var swf:MovieClip;
|
2021-12-30 00:09:16 -05:00
|
|
|
|
2023-01-22 22:25:45 -05:00
|
|
|
public function new()
|
|
|
|
{
|
|
|
|
super();
|
|
|
|
}
|
2021-12-30 00:09:16 -05:00
|
|
|
|
2023-01-22 22:25:45 -05:00
|
|
|
override function draw()
|
|
|
|
{
|
|
|
|
for (camera in cameras)
|
|
|
|
{
|
|
|
|
if (!camera.visible || !camera.exists) continue;
|
2021-12-30 00:09:16 -05:00
|
|
|
|
2023-01-22 22:25:45 -05:00
|
|
|
getScreenPosition(_point, camera).subtractPoint(offset);
|
|
|
|
// assume no render blit for now
|
|
|
|
// use camera.canvas
|
|
|
|
// camera.canvas.graphics.
|
|
|
|
}
|
|
|
|
}
|
2021-12-30 00:09:16 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
class FlxDrawSwfItem extends FlxDrawBaseItem<FlxDrawSwfItem>
|
|
|
|
{
|
2023-01-22 22:25:45 -05:00
|
|
|
public function new()
|
|
|
|
{
|
|
|
|
super();
|
|
|
|
type = FlxDrawItemType.TILES;
|
|
|
|
}
|
2021-12-30 00:09:16 -05:00
|
|
|
|
2023-01-22 22:25:45 -05:00
|
|
|
override function render(camera:FlxCamera)
|
|
|
|
{
|
|
|
|
super.render(camera);
|
|
|
|
}
|
2021-12-30 00:09:16 -05:00
|
|
|
}
|