Add the concept of Cameras to hollywoo

This commit is contained in:
2023-03-09 07:09:41 -07:00
parent 06931e61a1
commit ce53ef2560
6 changed files with 35 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ AWAITPLAYSOUND "pageFlip"
(defMacro makeSetAndScene [asset]
`(preload
(newFlxSet ,asset ,asset)
(newSceneFromSet ,asset ,asset Day Exterior)))
(newSceneFromSet ,asset ,asset Day Exterior (new FlxCamera))))
(var basicSceneKey AssetPaths.grayBackground1280x720__png)
(makeSetAndScene basicSceneKey)
@@ -51,7 +51,7 @@ ADDCHARACTER "black" Right FacingLeft
// Speaker name not being bumped to right side for stage-right actors while intercutting:
(preload
(newFlxSet "intercutSet" AssetPaths.whiteBackground1280x720__png)
(newSceneFromSet "intercutScene" "intercutSet" Day Exterior))
(newSceneFromSet "intercutScene" "intercutSet" Day Exterior (new FlxCamera)))
SETSCENE "intercutScene"
ADDCHARACTER "black" Right FacingLeft

View File

@@ -12,6 +12,7 @@ import flixel.FlxSprite;
import flixel.FlxSubState;
import flixel.util.FlxColor;
import flixel.tweens.FlxTween;
import flixel.FlxCamera;
@:build(kiss.AsyncEmbeddedScript.build("hollywoo-flixel", "src/hollywoo_flixel/HollywooFlixelDSL.kiss", "Test.hollywoo"))
class Test extends FlxMovie {