上效果图~~~
灵感来源:谷歌chrome的小恐龙游戏(就是每次断网都会弹出来的那个)
那个#是墙。。。
<是飞弹,移动速度为墙的两倍。。。
飞弹的走位很像小恐龙里的鸟,但它并不算一个墙。。。而鸟算一个仙人掌(墙)。。。
放代码:
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<time.h>
#include<windows.h>
#define N 80
#define up 72
#define left 75
#define right 77
#define down 80
void run();
void yn();
void print(int [][N]);
void menu();
int scr