1. 程式人生 > >unity3D-learnin:Priests and Devils

unity3D-learnin:Priests and Devils

  • 閱讀以下游戲指令碼

Priests and Devils

Priests and Devils is a puzzle game in which you will help the Priests and Devils to cross the river within the time limit. There are 3 priests and 3 devils at one side of the river. They all want to get to the other side of this river, but there is only one boat and this boat can only carry two persons each time. And there must be one person steering the boat from one side to the other side. In the flash game, you can click on them to move them and click the go button to move the boat to the other direction. If the priests are out numbered by the devils on either side of the river, they get killed and the game is over. You can try it in many > ways. Keep all priests alive! Good luck!

程式需要滿足的要求:

  • 列出遊戲中提及的事物(Objects)
  • 用表格列出玩家動作表(規則表),注意,動作越少越好
  • 請將遊戲中物件做成預製
  • 在 GenGameObjects 中建立 長方形、正方形、球 及其色彩代表遊戲中的物件。
  • 使用 C# 集合型別 有效組織物件
  • 整個遊戲僅 主攝像機 和 一個 Empty 物件, 其他物件必須程式碼動態生成!!! 。 整個遊戲不許出現 Find 遊戲物件, SendMessage 這類突破程式結構的 通訊耦合 語句。 違背本條準則,不給分
  • 請使用課件架構圖程式設計,不接受非 MVC 結構程式
  • 注意細節,例如:船未靠岸,牧師與魔鬼上下船運動中,均不能接受使用者事件!
答:遊戲中提及的事物(object)有:
牧師Priest),(boat),魔鬼devil),河流(river),河岸River bank)。