Page 137 - Trackpad_V5_Book 6
P. 137

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!






 134  Pro (Ver. 5.0)-VI                                                  Techipedia (Microsoft MakeCode Arcade)  135
   132   133   134   135   136   137   138   139   140   141   142