Skip to content

Commit

Permalink
Merge pull request #16332 from code-dot-org/k1-projects
Browse files Browse the repository at this point in the history
Add /p/artist_k1 and /p/playlab_k1 project pages
  • Loading branch information
joshlory committed Jul 13, 2017
2 parents 7f54e2c + aca0447 commit d71f9fd
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dashboard/app/controllers/projects_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,18 @@ class ProjectsController < ApplicationController
artist: {
name: 'New Artist Project'
},
artist_k1: {
name: 'New K1 Artist Project'
},
frozen: {
name: 'New Frozen Project'
},
playlab: {
name: 'New Play Lab Project'
},
playlab_k1: {
name: 'New K1 Play Lab Project'
},
starwars: {
name: 'New Star Wars Project'
},
Expand Down
57 changes: 57 additions & 0 deletions dashboard/config/scripts/levels/New K1 Artist Project.level
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<Artist>
<config><![CDATA[{
"game_id": 23,
"created_at": "2017-07-10T00:00:00.000Z",
"level_num": "custom",
"user_id": 16,
"properties": {
"skin": "artist",
"is_k1": "true",
"is_project_level": "true",
"skip_instructions_popup": "true",
"slider_speed": "0.9",
"disable_param_editing": "false",
"disable_variable_editing": "false",
"use_modal_function_editor": "true",
"use_contract_editor": "false",
"start_direction": "90",
"x": "200",
"y": "200",
"free_play": "true",
"impressive": "false",
"embed": "false",
"disable_sharing": "false",
"contract_highlight": "false",
"contract_collapse": "false",
"examples_highlight": "false",
"examples_collapse": "false",
"definition_highlight": "false",
"definition_collapse": "false",
"disable_examples": "false",
"scrollbars": "false",
"never_autoplay_video": "false",
"examples_required": "false",
"instructions_important": "false",
"hide_share_and_remix": "false",
"disable_if_else_editing": "false",
"discard_background": "false",
"contained_level_names": null
},
"published": true,
"notes": "",
"audit_log": "[{\"changed_at\":\"2017-06-13 21:38:59 +0000\",\"changed\":[\"start_blocks\",\"toolbox_blocks\",\"solution_blocks\",\"contained_level_names\"],\"changed_by_id\":684,\"changed_by_email\":\"audrey.clark@code.org\"},{\"changed_at\":\"2017-06-13 21:47:17 +0000\",\"changed\":[\"start_blocks\",\"toolbox_blocks\",\"solution_blocks\",\"contained_level_names\"],\"changed_by_id\":684,\"changed_by_email\":\"audrey.clark@code.org\"}]",
"level_concept_difficulty": {
}
}]]></config>
<blocks>
<start_blocks>
<xml>
<block type="when_run" id="when_run" deletable="false" movable="false"/>
</xml>
</start_blocks>
<toolbox_blocks>
<xml>
</xml>
</toolbox_blocks>
</blocks>
</Artist>
67 changes: 67 additions & 0 deletions dashboard/config/scripts/levels/New K1 Play Lab Project.level
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<Studio>
<config><![CDATA[{
"game_id": 33,
"created_at": "2017-07-10T00:00:00.000Z",
"level_num": "custom",
"user_id": 16,
"properties": {
"skin": "studio",
"success_condition": "function () {\r\n // Sample conditions:\r\n // return Studio.sprite[0].isCollidingWith(1);\r\n // return Studio.sayComplete > 0;\r\n // return Studio.sprite[0].emotion === Emotions.HAPPY;\r\n // return Studio.tickCount > 50;\r\n}",
"failure_condition": "function () {\r\n}",
"maze": "[[16,0,0,16,0,0,16,0],[0,0,0,0,0,0,0,0],[16,0,0,16,0,0,16,0],[0,0,0,0,0,0,0,0],[16,0,0,16,0,0,16,0],[0,0,0,0,0,0,0,0],[16,0,0,16,0,0,16,0],[0,0,0,0,0,0,0,0]]",
"embed": "false",
"is_k1": "true",
"is_project_level": "true",
"skip_instructions_popup": "true",
"disable_param_editing": "false",
"disable_variable_editing": "false",
"use_modal_function_editor": "true",
"use_contract_editor": "false",
"free_play": "true",
"first_sprite_index": "1",
"edge_collisions": "false",
"projectile_collisions": "false",
"allow_sprites_outside_playspace": "false",
"sprites_hidden_to_start": "true",
"coordinate_grid_background": "false",
"disable_sharing": "false",
"soft_buttons": [
"leftButton",
"rightButton",
"downButton",
"upButton"
],
"generate_function_pass_blocks": "false",
"timeout_after_when_run": "false",
"contract_highlight": "false",
"contract_collapse": "false",
"examples_highlight": "false",
"examples_collapse": "false",
"definition_highlight": "false",
"definition_collapse": "false",
"min_workspace_height": "1250",
"disable_examples": "false",
"never_autoplay_video": "false",
"examples_required": "false",
"wall_map_collisions": "false",
"block_moving_into_walls": "false",
"instructions_important": "false",
"contained_level_names": null
},
"published": true,
"notes": "",
"level_concept_difficulty": {
}
}]]></config>
<blocks>
<start_blocks>
<xml>
<block type="when_run" id="when_run" deletable="false"/>
</xml>
</start_blocks>
<toolbox_blocks>
<xml>
</xml>
</toolbox_blocks>
</blocks>
</Studio>

0 comments on commit d71f9fd

Please sign in to comment.