Page 109 - CG_v2.1_flipBooks_class_6
P. 109

5  Type 10 in the value box of the
                    set to block for the num1 variable.




                                               6  Drag the set to                                  8  Drag the splash
                                               block again and                                     block from the
                                               drop it below the                                   Game category
                                               earlier set to block.                               and drop it below
                                                                                                   the second set to
                                                                                                   block.
                   7  Type 20 in the value box of the
                   set to block for the num2 variable.





                                10  Drag the addition block and drop it into the message area of the splash block.















                           9  Click on the
                          Math blocks
                          category.



                           12  Drag the num1 block and drop it into the left value box of the addition block.
























                                                   13  Drag the num2 block and drop it into the right value box of
                       11  Click on the Variables
                       blocks category.            the addition block. The output appears on the Game simulator.


                 Similarly, we can use other Math blocks.

                                                                                  More on MakeCode Arcade     107
   104   105   106   107   108   109   110   111   112   113   114