Page 81 - Computer Genius Class 06
P. 81

Kautilya Katariya from the UK is a Guinness World Record holder
                          to ta e up programming at the age o   .


                 Commonly Used Blocks


                  eginners can program using  loc   ased programming   hich allo s users to drag and drop code
                 pieces into an editor. To programme our games in  a e ode  rcade   e can use a  ariety o  code
                  loc s   hich are listed  elo
                    Sprites Blocks: These  loc s allo  you to create and de ine sprites   hich represent o  ects
                     ithin your game.  prites can  e anything  rom players and enemies to  ood items and pro ectiles.

                    Controller Blocks: These  loc s allo  you to speci y  hich  uttons on the controller trigger
                    speci ic actions. For instance  you can assign  utton   to shoot arro s in your game.
                    Game Blocks:  These   loc s  allo   us  to  control  the  game s  timeline  and  de ine   in or lose
                    conditions. They go ern the o erall  lo  and rules o  your game.

                    Music Blocks: These  loc s allo  you to enhance your game s e perience  y incorporating music
                    and sound e  ects.
                    Scene Blocks: These  loc s help you to manage the game s  ac ground and screen dimensions
                    allo ing you to customise the  isual aspects o  your game  orld.
                    Info Blocks: These  loc s pro ide control o er essential game elements such as score  li es  and
                    the game cloc .
                    Loops Blocks: These  loc s allo  you to repeatedly e ecute speci ic code  loc s under di  erent
                    conditions  ena ling you to create repetiti e game logic.

                    Logic Blocks: These  loc s are used to implement conditional logic to control  hen speci ic code
                     loc s e ecute  ased on certain conditions or criteria.
                    Variable Blocks: These  loc s allo  you to create  aria les to store data  such as sprite  elocity
                    allo ing you to manage and manipulate in game  alues.

                    Math Blocks: These  loc s allo  us to per orm  arious mathematical operations that can  e used
                    to modi y  aria les and per orm calculations  ithin your game.
                   Advanced Blocks: This  loc  comprises a range o  ad anced  unctionalities  including
                       Animation Blocks:  reate and edit sprite animations.

                       Images Blocks:  esign and edit graphics  or  oth sprites and  ac grounds.
                        Function Blocks:  e ine custom  unctions that can  e called  ithin your
                       programme.

                       Array Blocks:  reate lists o  data  or managing and storing in ormation.
                        Text Blocks:  enerate strings   hich can  e used  or creating character
                       dialogue or speech  u  les.

                        Console Blocks:  id in de ugging and trou leshooting errors in your program.


                                                                                    Using MakeCode Arcade     79
   76   77   78   79   80   81   82   83   84   85   86