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