Page 107 - CG_v2.1_flipBooks_class_6
P. 107

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.



                                                                                  More on MakeCode Arcade     105
   102   103   104   105   106   107   108   109   110   111   112