棋盘 [英] chessboard

查看:112
本文介绍了棋盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在DevC Allegro库中使用一个棋盘和一个骑士,但是我当时没有找到任何东西.其实我想问你如何用鼠标在棋盘上移动一个骑士.我脑子里有这样的主意.我画一个棋盘,为每个正方形分配一个坐标,然后用鼠标制作动画.我将骑士放置在任何正方形上,骑士将移动64个正方形(不会经过同一正方形).
谢谢您的帮助,我还想要一件事.拜托,您可以给我发送Allegro教程或电子书的链接吗?

美好的一天.

I want a chessboard and knight in DevC allegro library, but I didn''t find anything for that point. Actually I want to ask you how can I move a knight in chessboard with a mouse. I got such an idea in my mind. I draw a chessboard and I assign a coordinate for each square and I make an animation with mouse. I put knight in any square and the knight will move 64 squares(won''t pass through same square).
Thank you for your help and I want one more thing. Please, can you send me a link for an allegro tutorial or e-book?

Good day.

推荐答案

看看
Take a look here[^] for some ideas and samples.


这篇关于棋盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆