From 909b751218d51ec6a3e153a344e48f859e655526 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Wed, 8 Mar 2023 08:29:31 -0700 Subject: [PATCH] Failing test case for actors on stage right --- .../hollywoo-flixel/src/test/source/Test.hollywoo | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/projects/hollywoo-flixel/src/test/source/Test.hollywoo b/projects/hollywoo-flixel/src/test/source/Test.hollywoo index f85afe3c..4c696d55 100644 --- a/projects/hollywoo-flixel/src/test/source/Test.hollywoo +++ b/projects/hollywoo-flixel/src/test/source/Test.hollywoo @@ -13,7 +13,7 @@ AWAITPLAYSOUND "pageFlip" (newFlxSet ,asset ,asset) (newSceneFromSet ,asset ,asset Day Exterior))) -(var basicSceneKey AssetPaths.whiteBackground1280x720__png) +(var basicSceneKey AssetPaths.grayBackground1280x720__png) (makeSetAndScene basicSceneKey) (prop &mut sk "") (prop &mut firstWidth 0.0) @@ -36,4 +36,16 @@ AWAITPLAYSOUND "pageFlip" (testSetBackground AssetPaths.grayBackground1000x720__png) (testSetBackground AssetPaths.grayBackground1280x580__png) +// Characters on stage right not appearing for some reason: +(preload + (newActor "white" (new ActorFlxSprite AssetPaths.whiteSquare__png)) + (newActor "black" (new ActorFlxSprite AssetPaths.blackSquare__png))) + +SETSCENE basicSceneKey +ADDCHARACTER "white" Left FacingRight +ADDCHARACTER "black" Right FacingLeft +(withActor "black" actorRight + (withActor "white" actorLeft + (assert (> actorRight.x actorLeft.x)))) + (Sys.exit 0) \ No newline at end of file