-
Notifications
You must be signed in to change notification settings - Fork 480
/
CSD U3 - Sprites - Sprite v Rect.level
77 lines (77 loc) · 2.59 KB
/
CSD U3 - Sprites - Sprite v Rect.level
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<Gamelab>
<config><![CDATA[{
"game_id": 50,
"created_at": "2016-05-17T15:12:13.000Z",
"level_num": "custom",
"user_id": 155,
"properties": {
"skin": "gamelab",
"code_functions": {
"draw": null,
"drawSprites": null,
"var sprite = createSprite": {
"params": [
"200",
"200"
],
"paletteParams": [
"x",
"y"
]
},
"background": null,
"fill": null,
"noFill": null,
"stroke": null,
"strokeWeight": null,
"noStroke": null,
"color": null,
"arc": null,
"ellipse": null,
"line": null,
"point": null,
"rect": null,
"regularPolygon": null,
"shape": null,
"text": null,
"textAlign": null,
"textFont": null,
"textSize": null
},
"show_d_pad": "true",
"edit_code": true,
"embed": "false",
"markdown_instructions": "# Sprites vs Rect\r\n\r\nCurently sprites and rectangles seem really similar. It will become clear later on why sprites are more powerful than basic shapes. Before you get there though it is important to call out a major difference in the way sprites and rectangles draw.\r\n\r\n# Do This\r\nCan you will figure out the difference by just trying this?\r\n\r\n* Create a rectangle with a width and height of 30\r\n* Set the fill for the rectangle to a different color than gray (So its clear which is the rectangle)\r\n* Create a sprite and give it the same x and y values as you gave the rectangle\r\n* Make sure to call `drawSprites` in the draw loop\r\n* Run the program\r\n* Can you see the difference?",
"is_k1": "false",
"skip_instructions_popup": "false",
"never_autoplay_video": "false",
"disable_param_editing": "true",
"disable_variable_editing": "false",
"use_modal_function_editor": "false",
"use_contract_editor": "false",
"contract_highlight": "false",
"contract_collapse": "false",
"examples_highlight": "false",
"examples_collapse": "false",
"examples_required": "false",
"definition_highlight": "false",
"definition_collapse": "false",
"disable_examples": "false",
"droplet_tooltips_disabled": "false",
"lock_zero_param_functions": "false",
"free_play": "false",
"text_mode_at_start": "false",
"submittable": "false",
"hide_view_data_button": "false",
"debugger_disabled": "true",
"start_blocks": "function draw(){\r\n \r\n}",
"show_debug_watch": "true",
"contained_level_names": null
},
"published": true,
"notes": "",
"level_concept_difficulty": {
}
}]]></config>
<blocks/>
</Gamelab>