unique title card FlxSprite

This commit is contained in:
2021-12-30 14:32:53 -07:00
parent 240302b7ab
commit 97010efa33

View File

@@ -72,7 +72,7 @@
(prop &mut :FlxSprite titleCard null) (prop &mut :FlxSprite titleCard null)
(method :Void showTitleCard [:Array<String> text :Continuation cc] (method :Void showTitleCard [:Array<String> text :Continuation cc]
(set titleCard (new FlxSprite)) (set titleCard (new FlxSprite))
(titleCard.makeGraphic 1280 720 FlxColor.BLACK) (titleCard.makeGraphic 1280 720 FlxColor.BLACK true)
(SpriteTools.writeOnSprite (text.shift) TITLE_SIZE titleCard (object x (Percent 0.5) y (Pixels TITLE_Y))) (SpriteTools.writeOnSprite (text.shift) TITLE_SIZE titleCard (object x (Percent 0.5) y (Pixels TITLE_Y)))
(localVar &mut subtitleY (+ TITLE_Y TITLE_SIZE TITLE_MARGIN)) (localVar &mut subtitleY (+ TITLE_Y TITLE_SIZE TITLE_MARGIN))
(doFor subtitle text (doFor subtitle text