winsonOTP
  • NEW!
    NEW!  Connect Ideas Across Notes
    Save time and share insights. With Paragraph Citation, you can quote others’ work with source info built in. If someone cites your note, you’ll see a card showing where it’s used—bringing notes closer together.
    Got it
      • Create new note
      • Create a note from template
        • Sharing URL Link copied
        • /edit
        • View mode
          • Edit mode
          • View mode
          • Book mode
          • Slide mode
          Edit mode View mode Book mode Slide mode
        • Customize slides
        • Note Permission
        • Read
          • Only me
          • Signed-in users
          • Everyone
          Only me Signed-in users Everyone
        • Write
          • Only me
          • Signed-in users
          • Everyone
          Only me Signed-in users Everyone
        • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invite by email
        Invitee

        This note has no invitees

      • Publish Note

        Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

        Your note will be visible on your profile and discoverable by anyone.
        Your note is now live.
        This note is visible on your profile and discoverable online.
        Everyone on the web can find and read all notes of this public team.

        Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

        Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

        Explore these features while you wait
        Complete general settings
        Bookmark and like published notes
        Write a few more notes
        Complete general settings
        Write a few more notes
        See published notes
        Unpublish note
        Please check the box to agree to the Community Guidelines.
        View profile
      • Commenting
        Permission
        Disabled Forbidden Owners Signed-in users Everyone
      • Enable
      • Permission
        • Forbidden
        • Owners
        • Signed-in users
        • Everyone
      • Suggest edit
        Permission
        Disabled Forbidden Owners Signed-in users Everyone
      • Enable
      • Permission
        • Forbidden
        • Owners
        • Signed-in users
      • Emoji Reply
      • Enable
      • Versions and GitHub Sync
      • Note settings
      • Note Insights New
      • Engagement control
      • Make a copy
      • Transfer ownership
      • Delete this note
      • Save as template
      • Insert from template
      • Import from
        • Dropbox
        • Google Drive
        • Gist
        • Clipboard
      • Export to
        • Dropbox
        • Google Drive
        • Gist
      • Download
        • Markdown
        • HTML
        • Raw HTML
    Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
    Create Create new note Create a note from template
    Menu
    Options
    Engagement control Make a copy Transfer ownership Delete this note
    Import from
    Dropbox Google Drive Gist Clipboard
    Export to
    Dropbox Google Drive Gist
    Download
    Markdown HTML Raw HTML
    Back
    Sharing URL Link copied
    /edit
    View mode
    • Edit mode
    • View mode
    • Book mode
    • Slide mode
    Edit mode View mode Book mode Slide mode
    Customize slides
    Note Permission
    Read
    Only me
    • Only me
    • Signed-in users
    • Everyone
    Only me Signed-in users Everyone
    Write
    Only me
    • Only me
    • Signed-in users
    • Everyone
    Only me Signed-in users Everyone
    Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # 模塊化程式語言 Scratch 3.0 基礎入門系列 | Ep.3 基礎編程元素 :::info 這個系列將會帶著大家學習模塊化的程式語言「Scratch」,不須有任何程式學習基礎,也不需任何基本觀念,筆者將會帶著您從零到一開始學習! ::: ## 前言 在本系列前兩集的文章中,我們[介紹了Scratch](https://winson-otp.github.io/posts/scratch-3-ep-0/),以及[如何下載安裝 Scratch](https://winson-otp.github.io/posts/scratch-3-ep-1/),並且了解了 [Scratch 的基本概念](https://winson-otp.github.io/posts/scratch-3-ep-2/)。本集中,我們將深入探討 Scratch 的編程元素,這些元素是用於創建 Scratch 項目的基本構建塊。了解這些基本元素是編寫 Scratch 代碼的基礎,也是深入研究 Scratch 更高級主題的必備知識。 這些元素便是:舞台、角色、積木。接下來將和各位一一介紹每一個元素的意義,以及其在一個專案中的用途。 ## 舞台 ![](https://i.imgur.com/pyMT0SP.png) 當您打開 Scratch 3.0 的一個作品,又或是編輯器時,第一個讓您眼睛為之一亮的想必便是「舞台」!這裡是您創造動畫、遊戲和互動作品的地方,就像是一個屬於您自己的舞臺,您可以讓你的角色在上面盡情地表演。 ![](https://i.imgur.com/dAJejDr.png) 這個舞台是一個二維平面,可以隨心所欲地在上面擺放角色、背景圖像和其他元素,甚至可以使用 Scratch 的繪圖工具創建您自己的圖形和圖像!想像一下,您可以用您的想像力和創造力,將一個荒涼的沙漠變成一個綠草如茵的花園,或者將一個悲傷的故事變成一個歡樂的童話,全部都可以在這個舞臺上實現! 而且,這個舞台還有很多內置的功能,讓您可以更輕鬆地創作。比如您可以輕鬆地播放聲音、更改背景等等。當然,如果您需要更加自由地設計背景,舞臺編輯器就是您的好夥伴。您可以使用內置庫中的現有角色和背景,也可以使用 Scratch 繪圖工具來創建您自己的角色和背景。舞臺編輯器還可以讓您更改背景顏色、添加圖像、繪製線條等等,讓您可以隨心所欲地打造出您心中所想的世界! ## 角色 ![](https://i.imgur.com/vRZ4ulW.png) 角色就像是 Scratch 項目的主角,是各種 Scratch 遊戲和應用程序中的核心元素。這些角色可以是您想像得到的任何東西,從貓咪到宇宙飛船的外星人,甚至可以是您自己!這是一個非常有趣和創意的元素,您可以通過使用 Scratch 繪圖工具和現有的庫來創建自己的角色。 讓我們想像一下,假設您正在創建一個名為「熊貓冒險」的 Scratch 遊戲,您需要一個可愛的熊貓角色來開始遊戲。您可以打開角色編輯器,使用 Scratch 繪圖工具繪製一個可愛的熊貓形象,然後設計它的表情,使其看起來更加有趣!如果您不想從頭開始繪製熊貓,也可以從 Scratch 庫中選擇現有的熊貓角色。 在您為角色添加表情和動作之後,您需要編寫 Scratch 代碼來控制它的運動和行為。例如,您可以添加接著會介紹到的積木,讓熊貓向左或向右移動,或讓它跳躍。您可以添加積木,控制熊貓表情的變化,讓它顯示興奮、開心或沮喪等情緒。 總之,角色編輯器提供了一個非常有趣和創造性的方式,讓您設計自己的角色,編寫自己的 Scratch 代碼,並創建您自己的 Scratch 遊戲和應用程序。 ## 積木 ![](https://i.imgur.com/7ub4tAI.png) 積木就像是搭建一個橋樑的磚塊,每個積木都是代表著一個編程命令或運算,而每個橋樑的成功也取決於每一個磚塊的組合和使用。 在 Scratch 3.0 中,這些積木被分為不同的類別,每個類別都有自己獨特的顏色和符號,讓您可以更輕鬆地辨別它們。例如,運算積木是綠色的,控制積木是黃色的,變量積木是橘色的,事件積木是紫色的,感知積木是藍色的。每個積木還有一個相應的文本描述,讓您可以更好地理解它們的功能和使用方法。 除了傳統的積木之外,Scratch 3.0還引入了新的積木和功能。現在有多個新的運算積木可供選擇,包括平方根、隨機數、三角函數等等。新的變量和列表支持也大大提高了 Scratch 的功能和彈性。現在,您可以輕鬆地創建和管理自己的變量和列表,讓您更輕鬆地創建複雜的代碼。 另外,Scratch 3.0還帶來了全新的角色動畫和音效功能,讓您的角色可以更加生動和有趣。現在,您可以輕鬆地創建自己的角色動畫和音效,為您的項目增添更多的樂趣和創意。 總之,積木是 Scratch 中的基本構建塊,它們代表了編程命令和運算。Scratch 3.0中的積木被分為不同的類別,每個類別都有自己的顏色和符號,讓您更輕鬆地辨別它們。此外,新的積木和功能為Scratch帶來了更多的彈性和創意,使您可以更輕鬆地創建自己的項目和遊戲。 ## 結語 在這一篇文章中中,我們介紹了 Scratch 的基本編程元素,包括舞台、角色和積木。瞭解這些元素是編寫 Scratch 代碼的基礎,也是進一步探討 Scratch 進階內容的必要知識。Scratch 3.0 的編程元素非常豐富,包括多個類別的積木,每個類別都具有不同的功能和用途。我們鼓勵您繼續深入學習 Scratch,並通過編寫自己的項目來應用您學到的知識。在下一集中,我們將深入研究 Scratch 的更多內容,讓您對Scratch有更多的了解! 感謝您的閱讀,我們下集再見囉! ###### tags: `Scratch`

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Google Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully