Page 48 - Computer Genius Class 02
P. 48

In the previous class you have learnt about the Blocky program and its two types of
                  games: Puzzle and Maze. Now, we will learn about the next games and their blocks

                  in detail.
                  Let us start with Bird game.

                   Bird Game


                  The Bird game teaches the concept of rotation by an angle to the users. This game
                  is used to:
                     rotate the objects by non-conventional angles.

                     apply different conditions used in programming.

                     specify position of objects on ‘x’ and ‘y’ axis.
                     change instructions in the variable blocks.

                  In this game, the user has to move the bird from the initial position to the nest after
                  catching a  orm on the  ay. This game has 1  le els. The di culty increases  ith
                  simple turning in a single direction to check conditions before turning in multiple

                  directions.
                  Before playing the game, let us learn about the blocks and their uses.




                            Block                                            Used to


                                              This block turns  the  object  in the  left direction  from  the
                                              direction it is facing.

                                              This   loc   allo s  the   ird  to   y  in  one  direction  till  the

                                              condition is true and change direction when the condition
                                              becomes false.

                                              The condition that allows the bird to move in the direction
                                              in do section of the block till the condition is true otherwise

                                              move in the direction in the else section of the block when
                                              the condition becomes false.


                  To play Bird game, follow the given steps:

                   Step   1   Type www.blockly.games in the address bar of the web browser and press

                             Enter key. A Blockly Games welcome screen appears.







                       46    Computer Genius-II
   43   44   45   46   47   48   49   50   51   52   53