Skip to content

Commit

Permalink
Merge pull request #22398 from code-dot-org/clare-levelbuilder-merge
Browse files Browse the repository at this point in the history
levelbuilder merge
  • Loading branch information
clareconstantine committed May 14, 2018
2 parents 557ad60 + 21e98fc commit da2572e
Show file tree
Hide file tree
Showing 22 changed files with 408 additions and 58 deletions.
6 changes: 3 additions & 3 deletions dashboard/config/locales/scripts.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9012,9 +9012,9 @@ en:
Alien Dance Party - Input:
name: Alien Dance Party - Input
title: Introduction to Sprite Lab (PILOT)
description_audience: ''
description_short: ''
description: ''
description_audience: Course E/F Students
description_short: This is a pilot course for Code.org's new Sprite Lab tool for Courses E and F
description: This is a pilot course for Code.org's new Sprite Lab tool for Courses E and F
csd1-dlp-18:
stages:
Deeper Learning Overview:
Expand Down
17 changes: 15 additions & 2 deletions dashboard/config/scripts/levels/CSD U3 Sprites anitab 1_2018.level
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"markdown_instructions": "# Images\r\n\r\nOver on the **Animations Tab**, you'll see three images that have been loaded for you. You can get to the animations tab by clicking the **Animation** button above the display area.\r\n\r\n<img src=\"https://images.code.org/f694a37bbadcf0533e7b19d8c0f5309b-image-1465580394090.35.11 PM.png\" style=\"width:300px;float:right\">\r\n\r\nOnce you have created a sprite, you can **use the `sprite.setAnimation()` command to change the look of your sprite from a rectangle to a picture.** All the images you have loaded in the Animation Tab show up in the `sprite.setAnimation()` dropdown. The alien is set up for you as an example.\r\n\r\n# Do This\r\nChange the sprite to your favorite image from the animations tab.\r\n\r\n* A sprite that is set to an image has already been created for you.\r\n* Run the code to see how it works.\r\n* Change the input to the `setAnimation` command to change the look of the sprite.\r\n* Try out all the different images.",
"is_k1": "false",
"skip_instructions_popup": "false",
"never_autoplay_video": "false",
"never_autoplay_video": "true",
"disable_param_editing": "true",
"disable_variable_editing": "false",
"use_modal_function_editor": "false",
Expand Down Expand Up @@ -54,11 +54,24 @@
"start_blocks": "var coolSprite = createSprite(300,300);\r\ncoolSprite.setAnimation(\"alien\");\r\ndrawSprites();",
"parent_level_id": 8761,
"name_suffix": "_2018",
"reference_links": [
"/docs/csd-1718/sprites/index.html",
"/docs/csd-1718/drawing_shapes_map/index.html",
"/docs/csd-1718/shape_size_map/index.html",
"/docs/csd-1718/random_numbers_csd/index.html",
"/docs/csd-1718/variables_intro_csd/index.html",
"/docs/csd-1718/naming_variables/index.html"
],
"map_reference": "/docs/csd-1718/animation_tab/index.html",
"video_key": "csd_gamelab_animation_tab",
"show_type_hints": "false",
"contained_level_names": null
},
"published": true,
"notes": "",
"audit_log": "[{\"changed_at\":\"2017-05-26 16:24:08 +0000\",\"changed\":[\"code_functions\",\"markdown_instructions\",\"encrypted_examples\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2018-02-22 23:50:42 +0000\",\"changed\":[\"code_functions\",\"start_animations\",\"encrypted_examples\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2018-02-27 19:20:21 +0000\",\"changed\":[\"code_functions\",\"encrypted_examples\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"}]"
"audit_log": "[{\"changed_at\":\"2017-05-26 16:24:08 +0000\",\"changed\":[\"code_functions\",\"markdown_instructions\",\"encrypted_examples\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2018-02-22 23:50:42 +0000\",\"changed\":[\"code_functions\",\"start_animations\",\"encrypted_examples\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2018-02-27 19:20:21 +0000\",\"changed\":[\"code_functions\",\"encrypted_examples\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2018-05-11 19:29:48 +0000\",\"changed\":[\"code_functions\",\"never_autoplay_video\",\"encrypted_examples\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"}]",
"level_concept_difficulty": {
}
}]]></config>
<blocks/>
</Gamelab>
19 changes: 17 additions & 2 deletions dashboard/config/scripts/levels/CSD U3 Sprites anitab 2_2018.level
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"markdown_instructions": "# Upload your own image\r\n\r\nYou can also use the Animation tab to upload or draw your own image.\r\n\r\n# Do This\r\nYou are going to make a flying kite. You can search the web for an image or create a new animation from scratch by drawing your own kite.\r\n\r\n* Download your kite image. Images with transparent backgrounds work best.\r\n* Open the animations tab.\r\n* Click <img src=\"https://images.code.org/346f6657dba57b0c3bd5deb534f76b69-image-1466194432449.13.05 PM.png\" style=\"width:50px\"> and then <img src=\"https://images.code.org/60c0371b45b29f10a3c8530db9154428-image-1466194434329.13.16 PM.png\" style=\"width:50px\"> to upload an image.\r\n* Select the file from your computer.\r\n* Rename your image so it is easy to remember. To rename it click the text below the image.\r\n* Back in code mode, use `sprite.setAnimation()` to make your `kite` sprite show your new animation.\r\n\r\nDon't worry if your kite image is too big! You'll learn how to fix that in the next level.",
"is_k1": "false",
"skip_instructions_popup": "false",
"never_autoplay_video": "false",
"never_autoplay_video": "true",
"disable_param_editing": "true",
"disable_variable_editing": "false",
"use_modal_function_editor": "false",
Expand Down Expand Up @@ -68,11 +68,26 @@
"teacher_markdown": "# Recommended Search Engines\r\n\r\nBecause we can't know which sites might be blocked in your district, we've avoided pointing students to a specific search engine. Not all search engines make it easy to set Creative Commons filters - some of the easiest include:\r\n\r\n* [Creative Commons Search](https://search.creativecommons.org/)\r\n* [Google Image Advanced Search](https://www.google.com/advanced_image_search)\r\n* [Wikimedia Commons](https://commons.wikimedia.org/)\r\n* [Flickr Creative Commons](https://www.flickr.com/creativecommons/)",
"parent_level_id": 8762,
"name_suffix": "_2018",
"reference_links": [
"/docs/csd-1718/sprites/index.html",
"/docs/csd-1718/drawing_shapes_map/index.html",
"/docs/csd-1718/shape_size_map/index.html",
"/docs/csd-1718/random_numbers_csd/index.html",
"/docs/csd-1718/variables_intro_csd/index.html",
"/docs/csd-1718/naming_variables/index.html"
],
"map_reference": "/docs/csd-1718/animation_tab/index.html",
"video_key": "csd_gamelab_animation_tab",
"disable_procedure_autopopulate": "false",
"top_level_procedure_autopopulate": "false",
"show_type_hints": "false",
"contained_level_names": null
},
"published": true,
"notes": "",
"audit_log": "[{\"changed_at\":\"2017-05-26 16:25:41 +0000\",\"changed\":[\"code_functions\",\"markdown_instructions\",\"encrypted_examples\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-08 23:39:39 +0000\",\"changed\":[\"code_functions\",\"markdown_instructions\",\"encrypted_examples\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-13 18:36:02 +0000\",\"changed\":[\"code_functions\",\"markdown_instructions\",\"encrypted_examples\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-13 20:42:48 +0000\",\"changed\":[\"code_functions\",\"show_debug_watch\",\"encrypted_examples\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"}]"
"audit_log": "[{\"changed_at\":\"2017-05-26 16:25:41 +0000\",\"changed\":[\"code_functions\",\"markdown_instructions\",\"encrypted_examples\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-08 23:39:39 +0000\",\"changed\":[\"code_functions\",\"markdown_instructions\",\"encrypted_examples\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-13 18:36:02 +0000\",\"changed\":[\"code_functions\",\"markdown_instructions\",\"encrypted_examples\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-13 20:42:48 +0000\",\"changed\":[\"code_functions\",\"show_debug_watch\",\"encrypted_examples\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2018-05-11 19:34:02 +0000\",\"changed\":[\"code_functions\",\"never_autoplay_video\",\"encrypted_examples\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"}]",
"level_concept_difficulty": {
}
}]]></config>
<blocks/>
</Gamelab>
19 changes: 17 additions & 2 deletions dashboard/config/scripts/levels/CSD U3 Sprites anitab 3_2018.level
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"markdown_instructions": "# Resizing with Scale\r\n\r\nIn the _Sprites_ drawer of the toolbox, you'll see a new block called `sprite.scale`. It lets you change the size of a sprite in relation to its original size. `sprite.scale = 1` is the normal size. `sprite.scale = 0.5` makes your sprite half as big, while `sprite.scale = 2` makes it twice as big.\r\n\r\n# Do This\r\n\r\nThe program should already include your newly uploaded image, but it's probably not the _perfect_ size. Use `sprite.scale` to change the size of your `kite` sprite.\r\n\r\n_Hint: the order of your code matters! You need to add `sprite.scale` **after** you've created the sprite, but **before** you draw the sprite with `drawSprites()`. For clarity, try to keep all of your sprite code together at the top of your program._",
"is_k1": "false",
"skip_instructions_popup": "false",
"never_autoplay_video": "false",
"never_autoplay_video": "true",
"disable_param_editing": "true",
"disable_variable_editing": "false",
"use_modal_function_editor": "false",
Expand Down Expand Up @@ -66,11 +66,26 @@
"expand_debugger": "false",
"parent_level_id": 8764,
"name_suffix": "_2018",
"reference_links": [
"/docs/csd-1718/sprites/index.html",
"/docs/csd-1718/drawing_shapes_map/index.html",
"/docs/csd-1718/shape_size_map/index.html",
"/docs/csd-1718/random_numbers_csd/index.html",
"/docs/csd-1718/variables_intro_csd/index.html",
"/docs/csd-1718/naming_variables/index.html"
],
"map_reference": "/docs/csd-1718/animation_tab/index.html",
"video_key": "csd_gamelab_animation_tab",
"disable_procedure_autopopulate": "false",
"top_level_procedure_autopopulate": "false",
"show_type_hints": "false",
"contained_level_names": null
},
"published": true,
"notes": "",
"audit_log": "[{\"changed_at\":\"2017-05-26 16:30:30 +0000\",\"changed\":[\"code_functions\",\"markdown_instructions\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-08 23:38:29 +0000\",\"changed\":[\"code_functions\",\"markdown_instructions\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-13 20:42:54 +0000\",\"changed\":[\"code_functions\",\"show_debug_watch\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"}]"
"audit_log": "[{\"changed_at\":\"2017-05-26 16:30:30 +0000\",\"changed\":[\"code_functions\",\"markdown_instructions\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-08 23:38:29 +0000\",\"changed\":[\"code_functions\",\"markdown_instructions\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-13 20:42:54 +0000\",\"changed\":[\"code_functions\",\"show_debug_watch\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2018-05-11 21:41:03 +0000\",\"changed\":[\"code_functions\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2018-05-11 21:41:33 +0000\",\"changed\":[\"code_functions\",\"never_autoplay_video\",\"contained_level_names\",\"encrypted_examples\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"}]",
"level_concept_difficulty": {
}
}]]></config>
<blocks/>
</Gamelab>
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,25 @@
"encrypted_examples": "IFAh74xxYCSRQiQ/VohLxQ4UuxlKuewM5b+XuDx6ZiObiwMkNRDZT5to6cJH\nax0RzUN1R7n8gLs279Ot8z1o+w==\n",
"parent_level_id": 8760,
"name_suffix": "_2018",
"reference_links": [
"/docs/csd-1718/drawing_shapes_map/index.html",
"/docs/csd-1718/shape_size_map/index.html",
"/docs/csd-1718/random_numbers_csd/index.html",
"/docs/csd-1718/variables_intro_csd/index.html",
"/docs/csd-1718/naming_variables/index.html"
],
"map_reference": "/docs/csd-1718/sprites/index.html",
"video_key": "csd_gamelab_sprites_1",
"disable_procedure_autopopulate": "false",
"top_level_procedure_autopopulate": "false",
"show_type_hints": "false",
"contained_level_names": null
},
"published": true,
"notes": "",
"audit_log": "[{\"changed_at\":\"2017-06-08 23:40:57 +0000\",\"changed\":[\"markdown_instructions\",\"code_functions\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-13 20:41:37 +0000\",\"changed\":[\"show_debug_watch\",\"code_functions\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-26 18:25:58 +0000\",\"changed\":[\"code_functions\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"}]"
"audit_log": "[{\"changed_at\":\"2017-06-08 23:40:57 +0000\",\"changed\":[\"markdown_instructions\",\"code_functions\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-13 20:41:37 +0000\",\"changed\":[\"show_debug_watch\",\"code_functions\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-26 18:25:58 +0000\",\"changed\":[\"code_functions\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2018-05-11 19:12:43 +0000\",\"changed\":[\"code_functions\",\"encrypted_examples\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"}]",
"level_concept_difficulty": {
}
}]]></config>
<blocks/>
</Gamelab>
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@
],
"parent_level_id": 8757,
"name_suffix": "_2018",
"encrypted_examples": [

],
"reference_links": [
"/docs/csd-1718/drawing_shapes_map/index.html",
"/docs/csd-1718/shape_size_map/index.html",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"disable_procedure_autopopulate": "false",
"parent_level_id": 5044,
"name_suffix": "_2018",
"contained_level_names": null,
"reference_links": [
"/docs/csd-1718/drawing_shapes_map/index.html",
"/docs/csd-1718/shape_size_map/index.html",
Expand All @@ -63,7 +62,8 @@
],
"map_reference": "/docs/csd-1718/sprites/index.html",
"top_level_procedure_autopopulate": "false",
"show_type_hints": "false"
"show_type_hints": "false",
"contained_level_names": null
},
"published": true,
"notes": "",
Expand Down
11 changes: 10 additions & 1 deletion dashboard/config/scripts/levels/CSD U3 Sprites text_2018.level
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,20 @@
"encrypted_examples": "MA6Tn1YV3/Xqlg1aRFhiSf0LGozoW8G1KY++3TJeOHlKb2HROOgqNkOLncyP\nbIbzqg7DRVjEA2gJx1ItPOvBsg==\n",
"parent_level_id": 8768,
"name_suffix": "_2018",
"map_reference": "/docs/gamelab/text/index.html",
"disable_procedure_autopopulate": "false",
"top_level_procedure_autopopulate": "false",
"show_type_hints": "false",
"reference_links": [
"/docs/gamelab/textSize/index.html"
],
"contained_level_names": null
},
"published": true,
"notes": "",
"audit_log": "[{\"changed_at\":\"2017-05-26 16:32:33 +0000\",\"changed\":[\"code_functions\",\"markdown_instructions\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-08 23:36:46 +0000\",\"changed\":[\"code_functions\",\"markdown_instructions\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-13 20:43:08 +0000\",\"changed\":[\"code_functions\",\"show_debug_watch\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-26 18:32:25 +0000\",\"changed\":[\"code_functions\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"}]"
"audit_log": "[{\"changed_at\":\"2017-05-26 16:32:33 +0000\",\"changed\":[\"code_functions\",\"markdown_instructions\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-08 23:36:46 +0000\",\"changed\":[\"code_functions\",\"markdown_instructions\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-13 20:43:08 +0000\",\"changed\":[\"code_functions\",\"show_debug_watch\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2017-06-26 18:32:25 +0000\",\"changed\":[\"code_functions\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2018-05-11 21:45:04 +0000\",\"changed\":[\"code_functions\",\"encrypted_examples\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"},{\"changed_at\":\"2018-05-11 21:46:50 +0000\",\"changed\":[\"code_functions\",\"encrypted_examples\",\"contained_level_names\"],\"changed_by_id\":324,\"changed_by_email\":\"elizabeth@code.org\"}]",
"level_concept_difficulty": {
}
}]]></config>
<blocks/>
</Gamelab>
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@
"top_level_procedure_autopopulate": "false",
"parent_level_id": 8722,
"name_suffix": "_2018",
"contained_level_names": null,
"reference_links": [
"/docs/csd-1718/drawing_shapes_map/index.html",
"/docs/csd-1718/shape_size_map/index.html",
"/docs/csd-1718/random_numbers_csd/index.html"
],
"map_reference": "/docs/csd-1718/variables_intro_csd/index.html",
"video_key": "csd_gamelab_variables_1",
"show_type_hints": "false"
"show_type_hints": "false",
"contained_level_names": null
},
"published": true,
"notes": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@
"callout_json": "[\r\n {\r\n \"localization_key\": \"grid\",\r\n \"callout_text\": \"Click here to show the grid.\",\r\n \"element_id\": \"#grid-checkbox\",\r\n \"on\": \"\",\r\n \"qtip_config\": {\r\n \"codeStudio\": {\r\n \"canReappear\": true,\r\n \"dropletPaletteCategory\": \"\"\r\n },\r\n \"style\": {\r\n \"classes\": \"\"\r\n },\r\n \"position\": {\r\n \"my\": \"left center\",\r\n \"at\": \"right center\",\r\n \"adjust\": {\r\n \"x\": 0,\r\n \"y\": 0\r\n }\r\n }\r\n }\r\n }\r\n]",
"parent_level_id": 8738,
"name_suffix": "_2018",
"encrypted_examples": [

],
"map_reference": "/docs/csd-1718/variables_intro_csd/index.html",
"video_key": "csd_gamelab_variables_1",
"disable_procedure_autopopulate": "false",
Expand Down

0 comments on commit da2572e

Please sign in to comment.