3D_HW3

编程实践

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)
  • 用表格列出玩家动作表(规则表),注意,动作越少越好
动作 条件
右边上岸 船的右边有魔鬼或者牧师
左边上岸 船的左边有魔鬼或者牧师
船移动 船上至少有一个魔鬼或者牧师
游戏结束 岸的一侧魔鬼数量大于牧师
  • 整个游戏仅 主摄像机 和 一个 Empty 对象, 其他对象必须代码动态生成!!! 。 整个游戏不许出现 Find 游戏对象, SendMessage 这类突破程序结构的 通讯耦合 语句。 违背本条准则,不给分
  • 请使用课件架构图编程,不接受非 MVC 结构程序

MVC结构框架就是用一种业务逻辑、数据、界面显示分离的方法组织代码,模型(model)-视图(view)-控制器(controller) , 这样更改UI界面的时候就不需要更改其他方面了。

最终实现效果如下
在这里插入图片描述
github地址: https://github.com/boluoDhai/3D_HW3

展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客
应支付0元
点击重新获取
扫码支付

支付成功即可阅读