流星雨代码
#include"stdio.h"
#include"windows.h"
#include"easyx.h"
#include"graphics.h"
#include"math.h"
#include"time.h"
#include"conio.h"
#include"mmsystem.h"
#pragma comment(lib,"winmm.lib")
#define PI 3.14
int map[8][8] = {
1, 1, 1, 1, 1, 1, 1, 1,
1, 3, 1, 0, 0, 1, 0, 1,
1, 0, 1, 1, 1, 0, 0, 1,
1, 0, 1, 0, 1, 0, 1, 1,
1, 0, 0, 0, 0, 0, 1, 1,
1, 0, 1, 0, 1, 0, 1, 1,
1, 0, 1, 0, 1, 0, 2, 1,
1, 1, 1, 1, 1, 1, 1, 1,
};
int len = 0;
IMAGE img[5];
int k, b;
struct positon
{
int x;
int y;
}pos[64];
void push(int x,int y)
{
pos[len].x = x;
pos[len].y = y;
int tmp = map[x][y];
map[x][y] = 6;
len++;
}
void pop()
{
len--;
}
void initImg()
{
char str[30] = {
0 };
for (int i = 0; i < 5; i++)
{
sprintf(str, "%d.gif", i);
loadimage(&img[i], str, 80, 80);
}
}
void drawMap()
{
for (int i =