Skip to content

Commit

Permalink
Merge pull request #45605 from code-dot-org/levelbuilder
Browse files Browse the repository at this point in the history
DTS (Levelbuilder > Staging) [robo-dts]
  • Loading branch information
deploy-code-org committed Apr 1, 2022
2 parents 9eb3917 + b66bea7 commit 720aa3d
Show file tree
Hide file tree
Showing 237 changed files with 37,683 additions and 803 deletions.
22 changes: 17 additions & 5 deletions dashboard/config/blocks/BadGuys/BadGuys_makeNewBadGuysSprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,35 @@ function makeNewBadGuysSprite(costume,location) {
switch (costume) {
case 'wolf':
case 'wolf_sunglasses':
size = 208;
size = 240;
break;
case 'tarantula':
case 'tarantula_sunglasses':
size = 29;
size = 35;
break;
case 'shark':
case 'shark_sunglasses':
size = 220;
size = 283;
break;
case 'snake':
case 'snake_sunglasses':
size = 141;
size = 171;
break;
case 'pirahna':
case 'pirahna_sunglasses':
size = 71;
size = 79;
break;
case 'marmalade':
size = 78;
break;
case 'foxington':
size = 223;
break;
case 'luggins':
size = 215;
break;
case 'fluffit':
size = 217;
break;
case 'car_group':
size = 150;
Expand Down
18 changes: 18 additions & 0 deletions dashboard/config/blocks/BadGuys/BadGuys_setSizeAll_dropdown.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
function setSizeAll_dropdown(scale) {
setProp({costume: "all"}, "scale", 100 * scale);
setProp({costume: "wolf"}, "scale", 240 * scale);
setProp({costume: "wolf_sunglasses"}, "scale", 240 * scale);
setProp({costume: "tarantula"}, "scale", 35 * scale);
setProp({costume: "tarantula_sunglasses"}, "scale", 35 * scale);
setProp({costume: "shark"}, "scale", 283 * scale);
setProp({costume: "shark_sunglasses"}, "scale", 283 * scale);
setProp({costume: "snake"}, "scale", 171 * scale);
setProp({costume: "snake_sunglasses"}, "scale", 171 * scale);
setProp({costume: "pirahna"}, "scale", 79 * scale);
setProp({costume: "pirahna_sunglasses"}, "scale", 79 * scale);
setProp({costume: "marmalade"}, "scale", 78 * scale);
setProp({costume: "foxington"}, "scale", 223 * scale);
setProp({costume: "luggins"}, "scale", 215 * scale);
setProp({costume: "fluffit"}, "scale", 217 * scale);
setProp({costume: "car_group"}, "150", 100 * scale);
}
34 changes: 34 additions & 0 deletions dashboard/config/blocks/BadGuys/BadGuys_setSizeAll_dropdown.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"category": "Sprites",
"config": {
"func": "setSizeAll_dropdown",
"blockText": "set all sprites size to {SIZE}",
"args": [
{
"name": "SIZE",
"options": [
[
"extra small",
"0.50"
],
[
"small",
"0.75"
],
[
"medium",
"1.00"
],
[
"large",
"2.00"
],
[
"extra large",
"3.00"
]
]
}
]
}
}
26 changes: 19 additions & 7 deletions dashboard/config/blocks/BadGuys/BadGuys_setSize_dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,41 @@ function setSize_dropdown(sprite, scale) {
switch (sprite.costume) {
case 'wolf':
case 'wolf_sunglasses':
size = 208 * scale / 100;
size = 240 * scale;
break;
case 'tarantula':
case 'tarantula_sunglasses':
size = 29 * scale / 100;
size = 35 * scale;
break;
case 'shark':
case 'shark_sunglasses':
size = 220 * scale / 100;
size = 283 * scale;
break;
case 'snake':
case 'snake_sunglasses':
size = 141 * scale / 100;
size = 171 * scale;
break;
case 'pirahna':
case 'pirahna_sunglasses':
size = 71 * scale / 100;
size = 79 * scale;
break;
case 'marmalade':
size = 78 * scale;
break;
case 'foxington':
size = 223 * scale;
break;
case 'luggins':
size = 215 * scale;
break;
case 'fluffit':
size = 217 * scale;
break;
case 'car_group':
size = 150 * scale / 100;
size = 150 * scale;
break;
default:
size = scale;
size = 100 * scale;
break;
}
setProp(sprite, "scale", size);
Expand Down
18 changes: 9 additions & 9 deletions dashboard/config/blocks/BadGuys/BadGuys_setSize_dropdown.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@
"name": "SIZE",
"options": [
[
"extra large",
"300"
"extra small",
"0.50"
],
[
"large",
"200"
"small",
"0.75"
],
[
"medium",
"100"
"1.00"
],
[
"small",
"75"
"large",
"2.00"
],
[
"extra small",
"50"
"extra large",
"3.00"
]
]
}
Expand Down
1 change: 1 addition & 0 deletions dashboard/config/libraries/theBadGuys.interpreted.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var newSpriteScale = 1.00;
96 changes: 94 additions & 2 deletions dashboard/config/locales/scripts.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33949,7 +33949,7 @@ en:
description_student:
description_teacher:
lesson-3:
name: Explore design mode and events in App Lab
name: Build a digital prototype in App Lab
description_student:
description_teacher:
lesson-4:
Expand Down Expand Up @@ -34047,7 +34047,83 @@ en:
name: Unit wrap up
description_student:
description_teacher:
lesson_groups: {}
Introduction to AI and machine learning:
name: Introduction to AI and machine learning
description_student: |-
**You will:**

* Get an introduction to artificial intelligence and machine learning.
* Get a preview of the first week of the AI and Machine Learning unit content.

**Suggested time:** 25 minutes
description_teacher: |-
**You will:**

* Get an introduction to artificial intelligence and machine learning.
* Get a preview of the first week of the AI and Machine Learning unit content.

**Suggested time:** 25 minutes
Train a machine learning model:
name: Train a machine learning model
description_student: |-
**You will:**

* Train a machine learning model using AI Lab.

**Suggested time:** 35 minutes
description_teacher: |-
**You will:**

* Train a machine learning model using AI Lab.

**Suggested time:** 35 minutes
Engage with machine learning apps:
name: Engage with machine learning apps
description_student: |-
**You will:**

* Engage with machine learning apps in App Lab.

**Suggested time:** 20 minutes
description_teacher: |-
**You will:**

* Engage with machine learning apps in App Lab.

**Suggested time:** 20 minutes
Consider real world implications:
name: Consider real world implications
description_student: |-
**You will:**

* Consider real-world implications of AI and machine learning.

**Suggested time:** 20 minutes
description_teacher: |-
**You will:**

* Consider real-world implications of AI and machine learning.

**Suggested time:** 20 minutes
Unit wrap up:
name: Unit wrap up
description_student: |-
**You will:**

* Explore end of chapter projects.
* Make a plan for implementing the unit with your students.

**Suggested time:** 20 minutes
description_teacher: |-
**You will:**

* Explore end of chapter projects.
* Make a plan for implementing the unit with your students.

**Suggested time:** 20 minutes
lesson_groups:
lessonGroup-2:
display_name: Teaching AI and machine learning
name: vpl-csd7-ci-pilot-2022
title: 'Module 7: Preparing to Teach AI and Machine Learning'
description_audience: ''
Expand Down Expand Up @@ -34093,10 +34169,18 @@ en:
lessons:
lesson-1:
name: 'Hello World CSC '
description_student:
description_teacher:
lesson-2:
name: 'Ecosystems: Interactions, Energy & Dynamics'
lesson-3:
name: Biological Evolution
description_student:
description_teacher:
Hello World CSC:
name: Hello World CSC
description_student: In this lesson, you will learn to create and animate sprites and make them interactive using events.
description_teacher: 'In this **skill-building** lesson, students will learn to create and animate sprites and make them interactive using events. '
lesson_groups: {}
name: csc-pilot-2022-ecosystems
title: ''
Expand All @@ -34114,6 +34198,10 @@ en:
name: Coding My Time Capsule
lesson-4:
name: Gallery Walk
Poem Art:
name: Poem Art
description_student: 'Poetry is making art with words. Add visual effects and images to your own animated poem. '
description_teacher: "In this CS and ELA integrated lesson for new coders, students will animate a poem with code to illustrate the mood of a poem. Students will read and detect the mood of a poem. They will then find corresponding effects and images to help illustrate the poem's mood. Finally, students will use events (code) to illustrate a shift in mood or animate the introduction of new images in a poem. \n"
lesson_groups: {}
name: csc-pilot-2022-timecapsule
title: ''
Expand Down Expand Up @@ -34144,6 +34232,10 @@ en:
name: Code Your Fable
lesson-3:
name: Share Your Fable
Hello World CSC:
name: Hello World CSC
description_student: In this lesson, you will learn to create and animate sprites and make them interactive using events.
description_teacher: 'In this **skill-building** lesson, students will learn to create and animate sprites and make them interactive using events. '
lesson_groups: {}
name: csc-pilot-2022-fables
title: ''
Expand Down
2 changes: 1 addition & 1 deletion dashboard/config/scripts/csa_u3l10_l3_2022.bubble_choice
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name 'CSA U3L10-L3_2022'
display_name 'Finding Duplicates'
description 'level description here'
description 'Check if a 1D array contains duplicate values.'

sublevels
level 'CSA U3L10-L3a_2022'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name 'CSA U3L10-L4 CR_2022'
display_name 'Code Review: Finding Duplicates'
description 'level description here'
description 'Request a code review from your peers.'

sublevels
level 'CSA U3L10-L4a CR_2022'
Expand Down
2 changes: 1 addition & 1 deletion dashboard/config/scripts/csa_u3l11_l1_2022.bubble_choice
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name 'CSA U3L11-L1_2022'
display_name 'Data for Social Good Project'
description 'level description here'
description 'Choose your user scenario (or create your own!) for your Data for Social Good Project.'

sublevels
level 'CSA U3L11-L1a_2022'
Expand Down
2 changes: 1 addition & 1 deletion dashboard/config/scripts/csa_u3l12_l1_2022.bubble_choice
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name 'CSA U3L12-L1_2022'
display_name 'Data for Social Good Project'
description 'level description here'
description 'Choose your user scenario (or create your own!) for your Data for Social Good Project.'

sublevels
level 'CSA U3L12-L1a_2022'
Expand Down
2 changes: 1 addition & 1 deletion dashboard/config/scripts/csa_u3l12_l2_2022.bubble_choice
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name 'CSA U3L12-L2_2022'
display_name 'Data for Social Good Project'
description 'level description here'
description 'Request a code review from your peers.'

sublevels
level 'CSA U3L12-L2a_2022'
Expand Down
2 changes: 1 addition & 1 deletion dashboard/config/scripts/csa_u3l13_l1_2022.bubble_choice
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name 'CSA U3L13-L1_2022'
display_name 'Data for Social Good Project'
description 'level description here'
description 'Choose your user scenario (or create your own!) for your Data for Social Good Project.'

sublevels
level 'CSA U3L13-L1a_2022'
Expand Down
2 changes: 1 addition & 1 deletion dashboard/config/scripts/csa_u3l7_l4_2022.bubble_choice
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name 'CSA U3L7-L4_2022'
display_name 'Using Polymorphism'
description 'level description here'
description 'Create 1D arrays to store objects and access the subclass versions of methods.'

sublevels
level 'CSA U3L7-L4a_2022'
Expand Down
2 changes: 1 addition & 1 deletion dashboard/config/scripts/csa_u3l9_l4_2022.bubble_choice
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name 'CSA U3L9-L4_2022'
display_name 'Reversing a 1D Array'
description 'level description here'
description 'Reverse 1D arrays for various scenarios.'

sublevels
level 'CSA U3L9-L4a_2022'
Expand Down
2 changes: 1 addition & 1 deletion dashboard/config/scripts/csa_u3l9_l5_cr_2022.bubble_choice
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name 'CSA U3L9-L5 CR_2022'
display_name 'Code Review: Reversing an Array'
description 'level description here'
description 'Request a code review from your peers.'

sublevels
level 'CSA U3L9-L5a CR_2022'
Expand Down

0 comments on commit 720aa3d

Please sign in to comment.