109

c语言简单版坦克大战-hailong-51CTO博客

 6 years ago
source link: http://blog.51cto.com/haidragon/2069456
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
1.地图。用一个二维数组。所有的打印都在数组里有对应的值。2.用户坦克。敌人坦克。子弹。都分开写在一个文件里。3.用户坦克。有自己的一些方法。移动。初始化坦克。创建坦克。打印。清理。改变方向。判断生值。判断能否移动。还要判断是否在home附近4.敌人坦克。跟用户一样。同时都可以自动移动。转向。5.子弹(有生命值。不符合要求生命就为false。敌方坦克之间反复利用。)。这里是分开的。分用户与敌人的子

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK