You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

138 lines
11 KiB

//********Pac Man***********//
const unsigned char PM_1[]={0x7, 0xc1, 0x18, 0x31, 0x20, 0x9, 0x41, 0x85, 0x41, 0x85, 0x80, 0x3, 0x80, 0x3, 0x81, 0xff, 0x80, 0x3, 0x80, 0x3, 0x40, 0x5, 0x40, 0x5, 0x20, 0x9, 0x18, 0x31, 0x7, 0xc1, };
const unsigned char PM_2[]={0x7, 0xc1, 0x18, 0x31, 0x20, 0x9, 0x41, 0x85, 0x41, 0x85, 0x80, 0x19, 0x80, 0x61, 0x81, 0x81, 0x80, 0x61, 0x80, 0x19, 0x40, 0x5, 0x40, 0x5, 0x20, 0x9, 0x18, 0x31, 0x7, 0xc1, };
const unsigned char PM_3[]={0x7, 0xc1, 0x18, 0x31, 0x20, 0x9, 0x41, 0x91, 0x41, 0xa1, 0x80, 0x41, 0x80, 0x81, 0x81, 0x1, 0x80, 0x81, 0x80, 0x41, 0x40, 0x21, 0x40, 0x11, 0x20, 0x9, 0x18, 0x31, 0x7, 0xc1, };
const unsigned char PM_4[]={0x7, 0x1, 0x19, 0x1, 0x21, 0x1, 0x41, 0x1, 0x41, 0x1, 0x81, 0x1, 0x81, 0x1, 0x81, 0x1, 0x81, 0x1, 0x81, 0x1, 0x41, 0x1, 0x41, 0x1, 0x21, 0x1, 0x19, 0x1, 0x7, 0x1, };
const unsigned char PM_5[]={0x0, 0x1, 0x0, 0x1, 0x20, 0x1, 0x50, 0x1, 0x48, 0x1, 0x84, 0x1, 0x82, 0x1, 0x81, 0x1, 0x82, 0x1, 0x84, 0x1, 0x48, 0x1, 0x50, 0x1, 0x20, 0x1, 0x0, 0x1, 0x0, 0x1, };
const unsigned char PM_6[]={0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 0x60, 0x1, 0x98, 0x1, 0x86, 0x1, 0x81, 0x1, 0x86, 0x1, 0x98, 0x1, 0x60, 0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1, };
Sprite S_PacMan_1(PM_1,15,15); S_PacMan_1.CreateReverse();
Sprite S_PacMan_2(PM_2,15,15); S_PacMan_2.CreateReverse();
Sprite S_PacMan_3(PM_3,15,15); S_PacMan_3.CreateReverse();
Sprite S_PacMan_4(PM_4,15,15); S_PacMan_4.CreateReverse();
Sprite S_PacMan_5(PM_5,15,15); S_PacMan_5.CreateReverse();
Sprite S_PacMan_6(PM_6,15,15); S_PacMan_6.CreateReverse();
Sprite S_PacMan[]={S_PacMan_1,S_PacMan_2,S_PacMan_3,S_PacMan_2};
Sprite S_PM_Die[]={S_PacMan_1,S_PacMan_2,S_PacMan_3,S_PacMan_4,S_PacMan_5,S_PacMan_6};
Animation A_PM(S_PacMan , 4, 200);
Animation A_PM_Die(S_PM_Die , 6, 200);
Animation A_PacMan[]={A_PM,A_PM_Die};
//************Ghost***************//
const unsigned char Afraid1[]={0xf, 0xe1, 0x1f, 0xf1, 0x3f, 0xf9, 0x73, 0x9d, 0x61, 0xd, 0xed, 0x6f, 0xed, 0x6f, 0xf3, 0x9f, 0xff, 0xff, 0xff, 0xff, 0xd3, 0x97, 0xcc, 0x67, 0xff, 0xff, 0xf7, 0xdf, 0x63, 0x8d, };
const unsigned char Afraid2[]={0xf, 0xe1, 0x1f, 0xf1, 0x3f, 0xf9, 0x73, 0x9d, 0x61, 0xd, 0xed, 0x6f, 0xed, 0x6f, 0xf3, 0x9f, 0xff, 0xff, 0xff, 0xff, 0xcc, 0x67, 0xd3, 0x97, 0xff, 0xff, 0xf7, 0xdf, 0x63, 0x8d, };
const unsigned char G1[]={0xf, 0xe1, 0x1f, 0xf1, 0x3f, 0xf9, 0x73, 0x9d, 0x61, 0xd, 0xf9, 0xcf, 0xf9, 0xcf, 0xf3, 0x9f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf7, 0xdf, 0x63, 0x8d, };
Sprite S_Ghost(G1,15,15);
Animation A_GhostN(S_Ghost);
Sprite S_Afraid1(Afraid1,15,15);
Sprite S_Afraid2(Afraid2,15,15);
Sprite S_Afraid[]={S_Afraid1,S_Afraid2};
Animation A_GhostA(S_Afraid,2,200);
Animation A_Ghost[]={A_GhostN,A_GhostA};
const unsigned char tileset[]={0x1f, 0x1f, 0x1f, 0xbf, 0xbf, 0xbf, 0xff, 0x1f, 0xff, 0x7f, 0x9f, 0xbf, 0xdf, 0x3f, 0xbf, 0xbf, 0x9f, 0x7f, 0xbf, 0x3f, 0xdf, 0x9f, 0x9f, 0x9f, 0x3f, 0x3f, 0x3f, 0xff, 0x1f, 0x1f, 0x1f, 0x1f, 0xff, 0x1f, 0x9f, 0x5f, 0x5f, 0x9f, 0x1f, 0x1f, 0x3f, 0x5f, 0x5f, 0x3f, 0x1f, 0x5f, 0xff, 0x5f, 0x7f, 0x9f, 0x9f, 0xdf, 0x3f, 0x3f, 0x9f, 0x9f, 0x7f, 0x3f, 0x3f, 0xdf, };
bool tileprop[]={0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0};
unsigned char * level[]={
"3222222222222222222222222222222222222229999222222222222222222222222222222222222224",
"1000000000000000000000000000000000000007008000000000000000000000000000000000000001",
"1000000000000000000000000000000000000007008000000000000000000000000000000000000001",
"100\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00700800\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?001",
"1000000000000000000000000000000000000007008000000000000000000000000000000000000001",
"1000000000000000000000000000000000000007008000000000000000000000000000000000000001",
"100\?00=99999999;00\?00=99999999999;00\?00700800\?00=99999999999;00\?00=99999999;00\?001",
"1000007000000008000007000000000008000007008000007000000000008000007000000008000001",
"100@A0700000000800000700000000000800000700800000700000000000800000700000000800@A01",
"100BC0700000000800\?00700000000000800\?00700800\?00700000000000800\?00700000000800BC01",
"1000007000000008000007000000000008000007008000007000000000008000007000000008000001",
"1000007000000008000007000000000008000007008000007000000000008000007000000008000001",
"100\?00>::::::::<00\?00>:::::::::::<00\?00>::<00\?00>:::::::::::<00\?00>::::::::<00\?001",
"1000000000000000000000000000000000000000000000000000000000000000000000000000000001",
"1000000000000000000000000000000000000000000000000000000000000000000000000000000001",
"100\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?001",
"1000000000000000000000000000000000000000000000000000000000000000000000000000000001",
"1000000000000000000000000000000000000000000000000000000000000000000000000000000001",
"100\?00=99999999;00\?00=99;00\?00=99999999999999999999;00\?00=99;00\?00=99999999;00\?001",
"1000007000000008000007008000007000000000000000000008000007008000007000000008000001",
"1000007000000008000007008000007000000000000000000008000007008000007000000008000001",
"100\?00>::::::::<00\?00700800\?00>::::::::0000::::::::<00\?00700800\?00>::::::::<00\?001",
"1000000000000000000007008000000000000007008000000000000007008000000000000000000001",
"1000000000000000000007008000000000000007008000000000000007008000000000000000000001",
"100\?00\?00\?00\?00\?00\?00700800\?00\?00\?00\?00700800\?00\?00\?00\?00700800\?00\?00\?00\?00\?00\?001",
"1000000000000000000007008000000000000007008000000000000007008000000000000000000001",
"1000000000000000000007008000000000000007008000000000000007008000000000000000000001",
"522222222222222400\?00700099999999;00000>::<00000=99999999000800\?003222222222222226",
"0000000000000001000007000000000008000000000000007000000000008000001000000000000000",
"0000000000000001000007000000000008000000000000007000000000008000001000000000000000",
"000000000000000100\?007000::::::::<00000000000000>::::::::000800\?001000000000000000",
"0000000000000001000007008000000000000000000000000000000007008000001000000000000000",
"0000000000000001000007008000000000000000000000000000000007008000001000000000000000",
"000000000000000100\?00700800000000000000000000000000000000700800\?001000000000000000",
"0000000000000001000007008000000000000000000000000000000007008000001000000000000000",
"0000000000000001000007008000000000000000000000000000000007008000001000000000000000",
"000000000000000100\?00700800000322222220000002222222400000700800\?001000000000000000",
"0000000000000001000007008000001000000000000000000001000007008000001000000000000000",
"0000000000000001000007008000001000000000000000000001000007008000001000000000000000",
"222222222222222600\?00>::<00000100000000000000000000100000>::<00\?005222222222222222",
"0000000000000000000000000000001000000000000000000001000000000000000000000000000000",
"0000000000000000000000000000001000000000000000000001000000000000000000000000000000",
"000000000000000000\?00000000000100000000000000000000100000000000\?000000000000000000",
"0000000000000000000000000000001000000000000000000001000000000000000000000000000000",
"0000000000000000000000000000001000000000000000000001000000000000000000000000000000",
"222222222222222400\?00=99;00000100000000000000000000100000=99;00\?003222222222222222",
"0000000000000001000007008000001000000000000000000001000007008000001000000000000000",
"0000000000000001000007008000001000000000000000000001000007008000001000000000000000",
"000000000000000100\?00700800000522222222222222222222600000700800\?001000000000000000",
"0000000000000001000007008000000000000000000000000000000007008000001000000000000000",
"0000000000000001000007008000000000000000000000000000000007008000001000000000000000",
"000000000000000100\?00700800000000000000000000000000000000700800\?001000000000000000",
"0000000000000001000007008000000000000000000000000000000007008000001000000000000000",
"0000000000000001000007008000000000000000000000000000000007008000001000000000000000",
"000000000000000100\?00700800000=99999999999999999999;00000700800\?001000000000000000",
"0000000000000001000007008000007000000000000000000008000007008000001000000000000000",
"0000000000000001000007008000007000000000000000000008000007008000001000000000000000",
"322222222222222600\?00>::<00000>::::::::0000::::::::<00000>::<00\?005222222222222224",
"1000000000000000000000000000000000000007008000000000000000000000000000000000000001",
"1000000000000000000000000000000000000007008000000000000000000000000000000000000001",
"100\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00700800\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?001",
"1000000000000000000000000000000000000007008000000000000000000000000000000000000001",
"1000000000000000000000000000000000000007008000000000000000000000000000000000000001",
"100\?00=99999999;00\?00=99999999999;00\?00700800\?00=99999999999;00\?00=99999999;00\?001",
"1000007000000008000007000000000008000007008000007000000000008000007000000008000001",
"1000007000000008000007000000000008000007008000007000000000008000007000000008000001",
"100\?00>:::::000800\?00>:::::::::::<00\?00>::<00\?00>:::::::::::<00\?007000:::::<00\?001",
"1000000000007008000000000000000000000000000000000000000000000000007008000000000001",
"1000000000007008000000000000000000000000000000000000000000000000007008000000000001",
"10@A00\?00\?00700800\?00\?00\?00\?00\?00\?00\?00000000\?00\?00\?00\?00\?00\?00\?00700800\?00\?00@A01",
"10BC00000000700800000000000000000000000000000000000000000000000000700800000000BC01",
"1000000000007008000000000000000000000000000000000000000000000000007008000000000001",
"799999;00\?00700800\?00=99;00\?00=99999999999999999999;00\?00=99;00\?00700800\?00=999998",
"7000008000007008000007008000007000000000000000000008000007008000007008000007000008",
"7000008000007008000007008000007000000000000000000008000007008000007008000007000008",
"7:::::<00\?00>::<00\?00700800\?00>::::::::0000::::::::<00\?00700800\?00>::<00\?00>:::::8",
"1000000000000000000007008000000000000007008000000000000007008000000000000000000001",
"1000000000000000000007008000000000000007008000000000000007008000000000000000000001",
"100\?00\?00\?00\?00\?00\?00700800\?00\?00\?00\?00700800\?00\?00\?00\?00700800\?00\?00\?00\?00\?00\?001",
"1000000000000000000007008000000000000007008000000000000007008000000000000000000001",
"1000000000000000000007008000000000000007008000000000000007008000000000000000000001",
"100\?00=99999999999999000099999999;00\?00700800\?00=99999999000099999999999999;00\?001",
"1000007000000000000000000000000008000007008000007000000000000000000000000008000001",
"1000007000000000000000000000000008000007008000007000000000000000000000000008000001",
"100\?00>::::::::::::::::::::::::::<00\?00>::<00\?00>::::::::::::::::::::::::::<00\?001",
"1000000000000000000000000000000000000000000000000000000000000000000000000000000001",
"1000000000000000000000000000000000000000000000000000000000000000000000000000000001",
"100\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?00\?001",
"1000000000000000000000000000000000000000000000000000000000000000000000000000000001",
"1000000000000000000000000000000000000000000000000000000000000000000000000000000001",
"5222222222222222222222222222222222222222222222222222222222222222222222222222222226",
};