FlxMovie support serialized voice line matches
This commit is contained in:
@@ -7,6 +7,7 @@ import hollywoo.Movie;
|
||||
import hollywoo_flixel.ActorFlxSprite;
|
||||
import hollywoo_flixel.SceneFlxState;
|
||||
import hollywoo_flixel.SpriteTools;
|
||||
import openfl.Assets;
|
||||
|
||||
enum FlxStagePosition {
|
||||
Left;
|
||||
@@ -31,4 +32,12 @@ enum FlxScreenPosition {
|
||||
/**
|
||||
* Model/controller of a Hollywoo-Flixel film, and main execution script
|
||||
*/
|
||||
class FlxMovie extends Movie<String, FlxStagePosition, FlxStageFacing, FlxScreenPosition, ActorFlxSprite, FlxSound, String, FlxSprite, FlxSound> {}
|
||||
class FlxMovie extends Movie<String, FlxStagePosition, FlxStageFacing, FlxScreenPosition, ActorFlxSprite, FlxSound, String, FlxSprite, FlxSound> {
|
||||
public function new(director:FlxDirector, ?voiceLinesAssetPath:String) {
|
||||
var voiceLinesJson = null;
|
||||
if (voiceLinesAssetPath != null) {
|
||||
voiceLinesJson = Assets.getText(voiceLinesAssetPath);
|
||||
}
|
||||
super(director, voiceLinesJson);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user