美文网首页
scratch programming-function(1)-

scratch programming-function(1)-

作者: 思求彼得赵 | 来源:发表于2020-08-13 01:32 被阅读0次

    2020-08-11
    function is a very important concept in programming.
    even in an object-oriented programming language, we still can find that function exists in the CLASS or OBJECT which is called method or sometimes function.


    in Scratch, the function is not difficult to understand and can be easy to use.

    you can find there is a My Blocks group. and please open the Make a Block.

    my blocks

    you can name your new block. and setup other parameters. but now , let's just name it.


    image.png

    as a first example. I made two blocks:
    turnRight make the role turn right and draw a circle. and the turnLeft block makes the role turn left and draw a circle.

    image.png

    now we use our own blocks to program.


    image.png

    let's try it.
    https://scratch.mit.edu/projects/417069758

    相关文章

      网友评论

          本文标题:scratch programming-function(1)-

          本文链接:https://www.haomeiwen.com/subject/lrxydktx.html