我要编一个猎人捕捉猎物的程序!
一个9*9的方格,里面随机的有四个猎人,一个猎物,每个猎人(物)占一个格子.请问如何编一个界面啊??
怎么样实现一个9*9的方格,又怎么样实现猎物和猎人的移动???
急!!!!!
请教各位大虾!!!拜托了!!!!!
一个9*9的方格,里面随机的有四个猎人,一个猎物,每个猎人(物)占一个格子.请问如何编一个界面啊??
怎么样实现一个9*9的方格,又怎么样实现猎物和猎人的移动???
急!!!!!
请教各位大虾!!!拜托了!!!!!
解决方案 »
- 老长时间没发帖了,一发就是神贴...
- 真心求给我个LoadLibrary的小例子,并告诉我下面为什么用的不对,谢谢
- 如果是CHtmlview的高手,进来看看。自制了浏览器,我想取得网页的名称,怎么做?
- 关于同时Oracle和SQLserver同时插入数据后...
- 关于CButtonST类, 怎么实现ICON和文字同时显示呢? 照着很多例子写的都不行
- 求MSChart控件的资料
- 问题:怎样设计一个信息管理系统?
- 读入二进制文件,并改变其中一个字节
- 请教关于unicode编码的问题
- 比较烦琐复杂,请大家帮忙
- 在vc中使用udp socket的时候,只能用非阻塞的方式读取数据吗?
- listbox的一个小问题。。。。。。waiting........
pDC : the Device context of the window on which you want to draw the grids.nGridPerRow : the num of grids in one row.
*/
void DrawGrid(CDC *pDC, int nGridPerRow)
{
//I think it's very easy to draw the grids, isnt it?
... ...
... ...
}Second:
Draw icons or bitmaps by resource editer for hunters and quarries.
When you want to move a hunter from grid A to Grid B, just draw the hunter at the position of Grid B instead of Grid A.