Skip to content

Commit 1554ecf

Browse files
committed
all live examples working
1 parent cfc38d2 commit 1554ecf

File tree

114 files changed

+26
-17
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+26
-17
lines changed

content/examples/Basics/Image/LoadDisplayImage/LoadDisplayImage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "Load and Display",
3-
"title": "Load and Display",
2+
"name": "Load and Display Image",
3+
"title": "Load and Display Image",
44
"author": "",
55
"level": "Beginner",
66
"order": "0",

content/examples/Basics/Image/RequestImage/liveSketch.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ function runLiveSketch(s) {
2727

2828
// Load images asynchronously
2929
for (var i = 0; i < imgCount; i++) {
30-
imageLoader('/livesketch/requestimage/PT_anim' + s.nf(i, 4) + '.png', i);
30+
imageLoader(
31+
'/livesketch-manual/sequence/PT_anim' + s.nf(i, 4) + '.png',
32+
i
33+
);
3134
}
3235
};
3336

content/examples/Topics/Animation/AnimatedSprite/liveSketch.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@ function runLiveSketch(s) {
1717
var drag = 30.0;
1818

1919
s.preload = () => {
20-
animation1 = new Animation('/livesketch/animatedsprite/PT_Shifty_', 38);
21-
animation2 = new Animation('/livesketch/animatedsprite/PT_Teddy_', 60);
20+
animation1 = new Animation(
21+
'/livesketch-manual/animatedsprite/PT_Shifty_',
22+
38
23+
);
24+
animation2 = new Animation(
25+
'/livesketch-manual/animatedsprite/PT_Teddy_',
26+
60
27+
);
2228
};
2329

2430
s.setup = () => {

content/examples/Topics/Animation/Sequential/liveSketch.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ function runLiveSketch(s) {
1818
var images = [];
1919

2020
s.preload = () => {
21-
images[0] = s.loadImage('/livesketch/sequential/PT_anim0000.png');
22-
images[1] = s.loadImage('/livesketch/sequential/PT_anim0001.png');
23-
images[2] = s.loadImage('/livesketch/sequential/PT_anim0002.png');
24-
images[3] = s.loadImage('/livesketch/sequential/PT_anim0003.png');
25-
images[4] = s.loadImage('/livesketch/sequential/PT_anim0004.png');
26-
images[5] = s.loadImage('/livesketch/sequential/PT_anim0005.png');
27-
images[6] = s.loadImage('/livesketch/sequential/PT_anim0006.png');
28-
images[7] = s.loadImage('/livesketch/sequential/PT_anim0007.png');
29-
images[8] = s.loadImage('/livesketch/sequential/PT_anim0008.png');
30-
images[9] = s.loadImage('/livesketch/sequential/PT_anim0009.png');
31-
images[10] = s.loadImage('/livesketch/sequential/PT_anim0010.png');
32-
images[11] = s.loadImage('/livesketch/sequential/PT_anim0011.png');
21+
images[0] = s.loadImage('/livesketch-manual/sequence/PT_anim0000.png');
22+
images[1] = s.loadImage('/livesketch-manual/sequence/PT_anim0001.png');
23+
images[2] = s.loadImage('/livesketch-manual/sequence/PT_anim0002.png');
24+
images[3] = s.loadImage('/livesketch-manual/sequence/PT_anim0003.png');
25+
images[4] = s.loadImage('/livesketch-manual/sequence/PT_anim0004.png');
26+
images[5] = s.loadImage('/livesketch-manual/sequence/PT_anim0005.png');
27+
images[6] = s.loadImage('/livesketch-manual/sequence/PT_anim0006.png');
28+
images[7] = s.loadImage('/livesketch-manual/sequence/PT_anim0007.png');
29+
images[8] = s.loadImage('/livesketch-manual/sequence/PT_anim0008.png');
30+
images[9] = s.loadImage('/livesketch-manual/sequence/PT_anim0009.png');
31+
images[10] = s.loadImage('/livesketch-manual/sequence/PT_anim0010.png');
32+
images[11] = s.loadImage('/livesketch-manual/sequence/PT_anim0011.png');
3333

3434
// If you don't want to load each image separately
3535
// and you know how many frames you have, you

0 commit comments

Comments
 (0)