Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 131 - logicode 2609 C6
P. 131

    Incoming network traffic

                       Typing on keyboard
                       Timer

                        In mobile apps, the events that happen are the results of the user doing something (on a click
                       of button the orientation of the phone screen changes)

                     WHAT ARE EVENT HANDLERS?

                     Event handler is a block of code which get executed when the event occurs and it is associated
                     with the event.

                     Examples of Event Handlers:
                        In Makecode Arcade, you display message by using ‘splash’ block . ‘splash’ block will get execute
                        when you click on ‘start the simulator’ button. In this ‘start the simulator’ button is an event
                        handler.
                       When you click “send” for a text message, it sends the message and makes a sound.
                       When you purchase an app from an app store, the phone asks for a password.

                       When you click an icon for an app, the app opens.

                            Hashtag

                          #Open source: It means the code of a software is available for anyone to see, use and change.
                          #Debugging: It is the process of finding and fixing mistakes in a computer program.

                           REVISIT

                       ▶   Traffic lights contain sensors that are programmed to calculate how many cars or pedestrians are
                         present at a specific point.
                       ▶   Coding or programming, is the process of creating codes to instruct a computer to perform a
                         specific task.
                       ▶   To interact with computers, you need a language that the computer understands, which is called a
                         programming language.
                       ▶   A dictionary is a book that contains words and phrases in alphabetical order with their meanings.
                       ▶   Pseudocode is used to describe the steps of an algorithm in a human-understandable language.
                       ▶   MakeCode Arcade is a free, open-source, online integrated development environment (IDE) for
                         game production.
                          Block Toolbox, Programming Workspace, Game Simulator, Game Controls, etc. are some
                         components of the Makecode Arcade Window.
                          Sprites blocks, controller blocks, game blocks, etc. are types of blocks category.
                          We can add a sprite using the given two options: creating a new sprite using the image editor or
                         using a built-in sprite from Gallery.
                          Block-based coding uses a drag and drop approach.

                                                                                               Using MakeCode Arcade  129

| 126 127 128 129 130 131 132 133 134 135 136 |