黃梓豪
    • 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

      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.
      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

    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.
    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
    --- title: '遊戲程式設計期末專題' tags: 遊戲程式設計 --- # Plant & Zombie 目錄 [TOC] --- ## 遊戲介紹 ### 遊戲類別 * 塔防遊戲 * 策略闖關 ### 遊戲世界觀 > 在世界某個角落,有位邪惡的科學家研發出可怕的科技。 > 此科技可以將大量的人們變成只會一昧攻擊人類的殭屍,但在此時有另一位科學家正在想辦法怎根除這個問題。 > 但他先想出暫時防止的方法就是利用庭院的植物來進行基因改造,使用植物來防止殭屍的入侵。 > 因此剩存的人們只能在庭院種起神奇的植物來預防,並等待可以讓殭屍消除的解藥出現。 ### 遊戲特點 > 此遊戲與其他塔防遊戲類似,玩家可以放置一系列擁有攻擊或防禦功能的物體,來阻止不斷到來的敵人,防止敵人的攻擊。 > 但我們會在關卡通關、設計多一些不同的巧思。 > 例如變化成要成功挑戰到指定秒數才過關,強度隨秒數增加而增強。 ### 遊戲進行方式 >會有數條通道可以放置植物來攻擊殭屍,而殭屍隨機出現在某一條通道,並沿直線前進。而普通植物也只能攻擊或抵禦一條軌道上的殭屍。 >一開始會有一定的太陽能量來放置不同植物,而每數秒會獲取固定的太陽能量,然後玩家可以放置額外增加能量的太陽花來加速太陽能量的獲取。 >接下來,玩家可透過太陽能量扣除來放置攻擊或防守的植物在某通道中的格子裡來防止各種強度、血量的殭屍。 ><font color="red">**殭屍強度和出現頻率會依時間而增強。**</font> ### 遊戲達成目標 :::warning >在150秒內,必須抵抗殭屍的進攻,成功抵擋150秒就Win_Game。 >每次遊玩只有10顆愛心,殭屍走到後方房子處就會扣一顆愛心,當愛心歸零就End_Game。 ::: --- ## 圖片與音效來源 * 圖片 : https://sc.chinaz.com/yinxiao/120827248030.htm * 音效 : https://www.aigei.com/s?q=%E6%A4%8D%E7%89%A9%E5%A4%A7%E6%88%98%E5%83%B5%E5%B0%B8&type=2d --- ## 操作說明 * 進入選單介面 * 進入選單點擊螢幕殭屍就開始進行遊戲 * 進入遊戲畫面 * >左鍵點擊太陽來收集太陽數量,當收集的太陽數量達到植物的太陽消耗量就可以左鍵點擊上面植物列表來防禦殭屍,假如太陽數不足則無法點擊放置植物。 > 當已經點擊上方列表就會產生植物在鼠標上,然後就可以左鍵移動點擊放置植物到綠色草地的框框中。放置時以植物本體為中心點放置到框框中,別以鼠標為中心點!!!!。 --- ## 植物與殭屍物件特色 ### 植物 1. **太陽** : 收集太陽來種植植物。沒被收集的太陽過幾秒會消失,所以要出現就要快收集。 2. **太陽花** : 可以產生更多太陽在花旁邊。 3. **堅果** : 有較厚血量來暫時抵擋殭屍的進攻前進。 4. **豌豆射擊手** : 可以用正常速度射擊普通豌豆來攻擊。 5. **機關槍豌豆射擊手** : 可以用較快較強的火焰豌豆來攻擊。 6. **寒冰豌豆射擊手** : 可以用寒冰的豌豆來攻擊殭屍,被攻擊到的殭屍速度會變慢。 7. **鏟子** : 可以把不想要的植物挖掉。 --- ### 殭屍 1. **一般殭屍** : 血量較少攻擊較低。出現於前期,出現頻率低。 2. **旗幟殭屍** : 血量較高攻擊較高。出現於後期,出現頻率高。 --- ## 遊戲畫面 * 遊戲選單介面 ![](https://i.imgur.com/geocT6f.jpg =70%x) * 遊戲遊玩介面 ![](https://i.imgur.com/n8d9QJI.jpg =70%x) * 遊戲結束畫面 ![](https://i.imgur.com/wpnC4Rp.jpg =70%x) --- ## 人員分工 * **黃梓豪** : 場景網格建置、攻擊植物的生成建置、殭屍的生成與攻擊邏輯建置、太陽與太陽花邏輯建置、鏟子與防禦植物的邏輯建置、系統測試。 * **范哲瑋** : 攻擊植物的生成與攻擊邏輯建置、遊戲選單建置、關卡通關設計建置、系統測試、找尋相關美術圖。

    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

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    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