Page 68 - Dig_CodeAI_V2.1_Class_7
P. 68

11     Click on the Game category of blocks.
























                                             12     Drag the splash block and drop it below the set to block.
























                                                                    14  Drag the block a and drop it into the
                                                                   message area of the splash block. The value
                        13  Click on the Variables blocks category.
                                                                   of the variable is displayed on the output.

                  Similarly, we can create many variables.

                  Using Math Blocks

                  In  MakeCode  Arcade,  Math  blocks are  used  to  perform  various  mathematical  operations  and
                  computations in your games and projects, like addition, subtraction, multiplication and division. The
                  following table show different Math blocks:


                               Block                 Name                           Description


                                                addition          Return the sum of the two numbers.


                                                subtraction       Return the difference of the two numbers.



                      66     DigiCode AI (Ver. 2.1)-VII
   63   64   65   66   67   68   69   70   71   72   73