Page 148 - Trackpad_V2.1_Class6
P. 148

GETTING STARTED WITH BLOCK CODING

                  Block-based  coding  uses drag and drop  approach. It’s a programming  activity  to  develop
                  computational thinking. You can use coding instruction 'blocks' to perform a variety of tasks.
                  To display a message 'Hello World'

                  To perform the task, follow these steps:

                  Step  1   Visit the link: https://arcade.makecode.com/, Makecode Arcade opens.



                  Step  2   Click on 'New Project'            . Write the name of your project 'Hello World..!!', and
                            then click on 'Create'.

                          The following screen appears:



                                                                           Blocks are placed here
                                                                             to execute the steps






                  Step  3   From the 'Blocks', choose 'Game', and then select  'splash', it will appear on the workspace
                            as shown:


                                                                                  Coding Tip!

                                                                                  Splash block is used
                                                                                  to display a message
                                                                                  on the  screen for
                                                                                  some time.


                                                                                       splash ''   ''


                  Step  4   Drag the 'splash' block, and drop it in the 'on start' block.


                  Step  5   Type the message 'Hello World..!!' in the 'splash' block, and the output screen will display
                            the message 'Hello World..!!'



                                               Hello World..!!             Hello World..!!









                              Well done, you have created your first block code program!






                  146   Trackpad (V2.1)-VI                                                                                                                                                               Techipedia (Microsoft MakeCode Arcade)  PB
   143   144   145   146   147   148   149   150   151   152   153