Skip to content

Commit e5f149a

Browse files
committed
Theater sources
1 parent 38b8e26 commit e5f149a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

load-test/scripts/sources.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,10 @@ export const scanner = JSON.stringify({
3131
}
3232
});
3333

34+
export const theater = JSON.stringify({
35+
sources: {
36+
"main.json":
37+
'{"source":{"MyTheater.java":{"text":"import org.code.theater.Theater;\\nimport org.code.theater.Scene;\\nimport org.code.media.Image;\\nimport java.io.FileNotFoundException;\\n\\npublic class MyTheater {\\n public static void main(String[] args) throws Exception {\\n Theater.playScenes(createScene());\\n }\\n\\n public static Scene createScene() throws FileNotFoundException {\\n Scene scene = new Scene();\\n Image image = new Image(\\"dog.jpeg\\");\\n scene.drawImage(image, 0, 0, 400);\\n scene.drawText(\\"Hello World\\", 100, 100);\\n double[] sound = {1.0, 0.0, 1.0, 0.0};\\n scene.playSound(sound);\\n\\n return scene;\\n }\\n}","isVisible":true}},"animations":{}}'
38+
},
39+
assetUrls: {"dog.jpeg": 'https://studio.code.org/v3/assets/123456/dog.jpeg'}
40+
});

0 commit comments

Comments
 (0)