70行C语言代码实现贪吃蛇
本文实例为大家分享了C语言实现贪吃蛇的具体代码,供大家参考,具体内容如下 #include #include #include #include #define MAX_WIDE 50 #define MAX_HIGH 16 short dx = 1, dy = 0, randxy, score = 0; COORD coord; struct Snake{ short len; short body[MAX_WIDE*MAX_HIGH]; }snake; void draw() { for(s
下载地址
用户评论