Skip to content

Commit ca0c47f

Browse files
zoebentleyericrosenbaum
authored andcommitted
Draft of Code a Cartoon tutorial for Oct 1st
1 parent a3f0652 commit ca0c47f

15 files changed

+153
-3
lines changed

src/containers/tips-library.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class TipsLibrary extends React.PureComponent {
5454
eventually we will find a solution that doesn't involve loading a whole project
5555
*/
5656
if (item.requiredProjectId && (item.requiredProjectId !== this.props.projectId)) {
57-
const urlParams = `/projects/${item.requiredProjectId}/editor?tutorial=${item.urlId}`;
57+
const urlParams = `/#${item.requiredProjectId}?tutorial=${item.urlId}`;
5858
return window.open(window.location.origin + urlParams, '_blank');
5959
}
6060

src/lib/libraries/decks/en-steps.js

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,19 @@ import moveArrowKeysUpDown from './steps/move-arrow-keys-up-down.en.png';
170170
import glideAroundBackAndForth from './steps/glide-around-back-and-forth.en.png';
171171
import glideAroundPoint from './steps/glide-around-point.en.png';
172172

173+
// Code a Cartoon
174+
import codeCartoonSaySomething from './steps/code-cartoon-01-say-something.jpg';
175+
import codeCartoonAnimate from './steps/code-cartoon-02-animate.gif';
176+
import codeCartoonSelectDifferentCharacter from './steps/code-cartoon-03-select-different-character.gif';
177+
import codeCartoonUseMinusSign from './steps/code-cartoon-04-use-minus-sign.gif';
178+
import codeCartoonGrowShrink from './steps/code-cartoon-05-grow-shrink.gif';
179+
import codeCartoonSelectAnotherDifferentCharacter from './steps/code-cartoon-06-select-another-different-character.gif';
180+
import codeCartoonJump from './steps/code-cartoon-07-jump.gif';
181+
import codeCartoonChangeScenes from './steps/code-cartoon-08-change-scenes.gif';
182+
import codeCartoonGlideAround from './steps/code-cartoon-09-glide-around.gif';
183+
import codeCartoonChangeCostumes from './steps/code-cartoon-10-change-costumes.gif';
184+
import codeCartoonChooseMoreCharacters from './steps/code-cartoon-11-choose-more-characters.jpg';
185+
173186
const enImages = {
174187
// Intro
175188
introMove: introMove,
@@ -341,7 +354,20 @@ const enImages = {
341354

342355
// Glide Around
343356
glideAroundBackAndForth: glideAroundBackAndForth,
344-
glideAroundPoint: glideAroundPoint
357+
glideAroundPoint: glideAroundPoint,
358+
359+
// Code a Cartoon
360+
codeCartoonSaySomething: codeCartoonSaySomething,
361+
codeCartoonAnimate: codeCartoonAnimate,
362+
codeCartoonSelectDifferentCharacter: codeCartoonSelectDifferentCharacter,
363+
codeCartoonUseMinusSign: codeCartoonUseMinusSign,
364+
codeCartoonGrowShrink: codeCartoonGrowShrink,
365+
codeCartoonSelectAnotherDifferentCharacter: codeCartoonSelectAnotherDifferentCharacter,
366+
codeCartoonJump: codeCartoonJump,
367+
codeCartoonChangeScenes: codeCartoonChangeScenes,
368+
codeCartoonGlideAround: codeCartoonGlideAround,
369+
codeCartoonChangeCostumes: codeCartoonChangeCostumes,
370+
codeCartoonChooseMoreCharacters: codeCartoonChooseMoreCharacters
345371

346372
};
347373

src/lib/libraries/decks/index.jsx

Lines changed: 125 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ import libraryPong from './thumbnails/pong.jpg';
4545
// Imagine a World
4646
import libraryImagine from './thumbnails/imagine.jpg';
4747

48+
// Code a Cartoon
49+
import libraryCodeCartoon from './thumbnails/code-a-cartoon.jpg'
50+
4851
// Videos
4952
import recordASound from './thumbnails/record-a-sound.jpg';
5053
import glideAroundThumb from './thumbnails/glide-around.jpg';
@@ -97,7 +100,128 @@ export default {
97100
],
98101
urlId: 'getStarted'
99102
},
100-
103+
104+
'code-cartoon': {
105+
name: (
106+
<FormattedMessage
107+
defaultMessage="Code a Cartoon"
108+
description="Name for the 'Code a Cartoon' how-to"
109+
id="gui.howtos.code-cartoon"
110+
/>
111+
),
112+
tags: ['code-cartoon'],
113+
// requiredProjectId: '331474033',
114+
img: libraryCodeCartoon,
115+
steps: [
116+
{
117+
title: (
118+
<FormattedMessage
119+
defaultMessage="Say Something When You Click the Green Flag"
120+
description="Step name for 'Say Something When You Click the Green Flag' step"
121+
id="gui.howtos.code-cartoon.step_codeCartoonSaySomething"
122+
/>
123+
),
124+
image: 'codeCartoonSaySomething'
125+
}, {
126+
title: (
127+
<FormattedMessage
128+
defaultMessage="Animate a Character When You Click It"
129+
description="Step name for 'Animate a Character When You Click It' step"
130+
id="gui.howtos.code-cartoon.step_codeCartoonAnimate"
131+
/>
132+
),
133+
image: 'codeCartoonAnimate'
134+
}, {
135+
title: (
136+
<FormattedMessage
137+
defaultMessage="Select a Different Character"
138+
description="Step name for 'Select a Different Character' step"
139+
id="gui.howtos.code-cartoon.step_codeCartoonSelectDifferentCharacter"
140+
/>
141+
),
142+
image: 'codeCartoonSelectDifferentCharacter'
143+
}, {
144+
title: (
145+
<FormattedMessage
146+
defaultMessage="Use a Minus Sign to Get Smaller"
147+
description="Step name for 'Use a Minus Sign to Get Smaller' step"
148+
id="gui.howtos.code-cartoon.step_codeCartoonUseMinusSign"
149+
/>
150+
),
151+
image: 'codeCartoonUseMinusSign'
152+
}, {
153+
title: (
154+
<FormattedMessage
155+
defaultMessage="Make a Character Grow and Shrink"
156+
description="Step name for 'Make a Character Grow and Shrink' step"
157+
id="gui.howtos.code-cartoon.step_codeCartoonGrowShrink"
158+
/>
159+
),
160+
image: 'codeCartoonGrowShrink'
161+
}, {
162+
title: (
163+
<FormattedMessage
164+
defaultMessage="Select a Different Character"
165+
description="Step name for 'Select a Different Character' step"
166+
id="gui.howtos.code-cartoon.step_codeCartoonSelectAnotherDifferentCharacter"
167+
/>
168+
),
169+
image: 'codeCartoonSelectAnotherDifferentCharacter'
170+
}, {
171+
title: (
172+
<FormattedMessage
173+
defaultMessage="Jump Up and Down"
174+
description="Step name for 'Jump Up and Down' step"
175+
id="gui.howtos.code-cartoon.step_codeCartoonJump"
176+
/>
177+
),
178+
image: 'codeCartoonJump'
179+
}, {
180+
title: (
181+
<FormattedMessage
182+
defaultMessage="Click a Character to Change Scenes"
183+
description="Step name for 'Click a Character to Change Scenes' step"
184+
id="gui.howtos.code-cartoon.step_codeCartoonChangeScenes"
185+
/>
186+
),
187+
image: 'codeCartoonChangeScenes'
188+
}, {
189+
title: (
190+
<FormattedMessage
191+
defaultMessage="Glide Around"
192+
description="Step name for 'Glide Around' step"
193+
id="gui.howtos.code-cartoon.step_codeCartoonGlideAround"
194+
/>
195+
),
196+
image: 'codeCartoonGlideAround'
197+
}, {
198+
title: (
199+
<FormattedMessage
200+
defaultMessage="Change Costumes"
201+
description="Step name for 'Change Costumes' step"
202+
id="gui.howtos.code-cartoon.step_codeCartoonChangeCostumes"
203+
/>
204+
),
205+
image: 'codeCartoonChangeCostumes'
206+
}, {
207+
title: (
208+
<FormattedMessage
209+
defaultMessage="Choose More Characters to Add to Your Cartoon"
210+
description="Step name for 'Choose More Characters to Add to Your Cartoon' step"
211+
id="gui.howtos.code-cartoon.step_codeCartoonChooseMoreCharacters"
212+
/>
213+
),
214+
image: 'codeCartoonChooseMoreCharacters'
215+
}, {
216+
deckIds: [
217+
'Chase-Game',
218+
'Tell-A-Story'
219+
]
220+
}
221+
],
222+
urlId: 'code-cartoon'
223+
},
224+
101225
'animate-a-name': {
102226
name: (
103227
<FormattedMessage
225 KB
Loading
278 KB
Loading
47.1 KB
Loading
285 KB
Loading
568 KB
Loading
44.1 KB
Loading
273 KB
Loading

0 commit comments

Comments
 (0)