#include<iostream>
#include<ctime>
#include<stdlib.h>
#include<easyx.h>
#include<graphics.h>
#include<conio.h>
#pragma comment(lib,"winmm.lib")
using namespace std;
struct Move
{
int x;
int y;
};
enum{
max = 22 };
IMAGE image[max];
IMAGE bigimage[max];
IMAGE beijinimage[1];
Move str[max] = {
{
375, 211 },
{
418, 139 },
{
487, 85 },
{
550, 80 },
{
630, 88 },
{
665, 170 },
{
685, 250 },
{
658, 340 },
{
609, 430 },
{
534, 514 },
{
460, 572 },
{
375, 614 },
{
298, 572 },
{
221, 514 },
{
148, 430 },
{
124, 340 },
{
69, 250 },
{
92, 170 },
{
147, 88 },
{
220, 85 },
{
282, 97 },
{
337, 139 },
};
void Init()
{
putimage(0, 0, &beijinimage[0]);
int sum = 0;
for (int j = 0; j < max; j++)
{
Sleep(200);
putimage(str[j].x, str[j].y, &image[(j + sum) % max]);
sum