Try   HackMD

塔防遊戲 從無到有

towergame unity 塔防

同樣做遊戲的影音創作者:

Ava - 凜
https://www.youtube.com/@AvaLab
森树Tree
https://www.youtube.com/@tree7156

遊戲設計資源:

https://docs.google.com/spreadsheets/d/1FTD4JoJLmWwANOw6O1rHEc3qnqgViYn2ofIokoe0afk/edit?usp=sharing

台灣遊戲獨立(Indie)開發者Group


大學畢業專題遊戲製作的筆記

先把最基本功能用最簡單的方式呈現

可以玩>如何變好玩

可以多加入一些遊戲開發社群

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Unity2D塔防遊戲教學-植物大戰殭屍

Unity 2D Tower Defense Tutorial

學習資源

【資源】整理給 Unity 初學者的起步資源 作者:樂小呈

國外遊戲開發者大大

跟著教學做小學生也會的[Unity] 塔防遊戲範例練習

隨機生成怪物
https://cindyalex.pixnet.net/blog/post/292595744-unity-2d小遊戲製作(三)-:怪物生成與死亡

UI介面: 7:27 CANVAS說明
https://youtu.be/dX1ICR6ZVWw

免費素材
https://itch.io/game-assets/free

已購買遊戲+素材:
https://www.google.com/search?client=safari&rls=en&q=itch.io+bundle+for+racial+justice+and+equality&ie=UTF-8&oe=UTF-8

rigibody
https://featherchung.wordpress.com/2017/07/02/unity基本功1-rigidbody-剛體/

等待時間
https://featherchung.wordpress.com/2017/07/09/【unity】計時器的四種寫法-with-c/

想法

不同一般塔防,可能可以用一天一回合之模式

可能第一天,玩家先選擇

下一步該解決之問題:

2020/09/10 血條跑太快了,扣太重?hp調高?
float ratio = ((float)hp/(float)max_hp);
轉浮點數

RIGIBODY

Dynamic:預設的型態,代表物體會受到重力、碰撞等物理條件的影響。

如:玩家要操作的角色。

Kinematic:完全不會受外力影響,但是可以對其他剛體發揮影響力。

如:遊戲場景裡的牆壁。

Constraints

鎖住該物體在特定方向的位移及旋轉,以便於更符合遊戲設計的邏輯。

鎖定z軸旋轉

2020/09/09
跑去畫畫 畫角色)不會畫畫

敵人用免費遊戲素材

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

先判定角色碰撞為何物

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

控制同類型的物件不要撞在一起
Edit -> Project Settings -> Physics 2D

最下方: Deadpool 取消勾選

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

就不會碰撞啦!

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

OnMouseDown

  • OnMouseDown – 滑鼠點擊事件:在滑鼠點擊物件時會觸發
  • OnMouseDrag – 滑鼠拖曳事件:在滑鼠點擊後「按住」滑鼠時會觸發
  • OnMouseUp – 滑鼠放開事件:在滑鼠點擊後,放開滑鼠時會觸發
  • OnMouseEnter – 滑鼠進入事件:在滑鼠進入物件的碰撞區時觸發
  • OnMouseExit – 滑鼠離開事件:在滑鼠離開物件的碰撞區時觸發
  • OnMouseOver – 滑鼠停滯事件:在滑鼠停留在物件的碰撞區時觸發

創造物件

Instantiate

Instantiate(gameObject, transform.position , new Quaternion(0,0,0,0));

怪物素材

https://bevouliin.com/license/

血條

https://www.youtube.com/watch?v=dX1ICR6ZVWw&feature=youtu.be

Demo 執行畫面

https://www.youtube.com/watch?v=SxKUxXn9pAA

*善用英文關鍵字可以找到更多資源*