文章目录
牧师与魔鬼
附上GitHub
游戏介绍
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!
程序需要满足的要求:
- play the game ( http://www.flash-game.net/game/2535/priests-and-devils.html )
- 列出游戏中提及的事物(Objects)
- 用表格列出玩家动作表(规则表),注意,动作越少越好
- 请将游戏中对象做成预制
- 在 GenGameObjects 中创建 长方形、正方形、球 及其色彩代表游戏中的对象。
- 使用 C# 集合类型 有效组织对象
- 整个游戏仅 主摄像机 和 一个 Empty 对象, 其他对象必须代码动态生成!!! 。 整个游戏不许出现 Find 游戏对象, SendMessage 这类突破程序结构的 通讯耦合 语句。 违背本条准则,不给分
- 请使用课件架构图编程,不接受非 MVC 结构程序
- 注意细节,例如:船未靠岸,牧师与魔鬼上下船运动中,均不能接受用户事件!
过程:
列出游戏中提及的事物(Objects)
魔鬼,牧师,船,河流,两边的陆地
用表格列出玩家动作表(规则表),注意,动作越少越好
玩家事件 | 响应条件 | 结果 |
---|---|---|
魔鬼/牧师被点击 | 游戏未结束、船没有在移动、船上少于2个人以及魔鬼/牧师与船在同一边 | 魔鬼/牧师上船 |
船被点击 | 游戏未结束、船没有在移动(船移动中不会响应)以及船上至少有一人 | 船移动到另一边陆地 |
请将游戏中对象做成预制
[外链图片转存失败(img-ZVod6xrv-1568957663024)(img/3.png)]
在 GenGameObjects 中创建 长方形、正方形、球 及其色彩代表游戏中的对象。
其中原色正方体代表牧师,原色球体代表恶魔,原始长方体代表船,还有水和陆地