Page 125 - KEC Khaitan C5 Flipbook
P. 125
TOOLBOX
Code.org's App Lab, contains different categories of blocks used for programming. Here's
what each category generally does:
UI controls: Create buttons, text inputs, and labels for user interaction.
Data: Store and manage structured information like lists and databases.
Control: Manage program flow using loops, conditionals, and event handlers.
Variables: Store and update dynamic values for
calculations and tracking.
Canvas: Draw and display custom graphics or
animations.
Turtle: Use simple commands to draw shapes and
patterns.
Math: Perform calculations, random numbers, and logic operations.
Functions: Create reusable code blocks to simplify programming.
USING IMAGE ELEMENTS AS SPRITES
Sprites (characters or objects) can be used for interactive elements in your app. Since
App Lab doesn’t have a built-in sprite system like Game Lab, you can customize sprites
using Image elements.
The steps to customize sprites in App lab are given below:
Step 1 Click on the Design tab.
Step 2 Click on the Image element from Design Toolbox and drag it to the screen.
Step 3 Click Choose under image in PROPERTIES panel.
Designing User Interfaces and Simulating Data 123

