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,0,0,0,0),
(0,0,0,89,89,89,21,21,89,89,21,15,89,21,89,89,89,0,0,0,0,0,0,0),
(0,0,0,89,89,90,21,89,89,89,21,15,89,21,89,89,89,89,89,90,0,0,0,0),
(0,0,0,89,89,90,21,89,89,89,89,21,89,89,89,89,89,89,89,89,0,0,0,0),
(0,0,0,0,89,90,89,89,89,21,89,89,90,89,89,21,89,89,89,89,0,0,0,0),
(0,0,0,0,0,89,89,89,89,21,89,89,89,89,21,21,21,21,21,21,0,0,0,0),
(0,0,0,0,0,89,89,89,89,89,21,21,21,21,21,21,21,21,0,0,0,0,0,0),
(0,0,0,0,0,89,89,89,89,89,21,21,21,21,21,21,21,0,0,0,0,0,0,0),
(0,0,0,0,0,0,89,89,90,89,89,21,21,21,21,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,90,90,90,90,90,90,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,90,90,90,90,90,90,1,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,4,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,4,4,4,4,1,1,4,4,4,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,4,4,4,4,4,1,1,4,4,4,4,0,0,0,0,0,0,0,0,0),
(0,0,0,0,4,4,4,4,4,1,1,4,4,4,4,0,0,0,0,0,0,0,0,0),
(0,0,0,0,4,4,4,4,4,1,1,4,4,4,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,90,90,4,4,4,1,15,1,1,1,0,0,0,0,0,0,0,0,0,0),
(0,0,0,90,90,90,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0),
(0,0,0,90,90,90,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0),
(0,0,0,90,90,90,1,1,1,1,17,1,1,1,1,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,1,1,1,17,1,1,1,1,1,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0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,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0),
(0,0,1,1,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0),
(0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0),
(0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0),
(0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0),
(0,0,0,0,1,1,1,1,1,1,89,89,89,1,1,1,1,1,0,0,0,0,0,0),
(0,0,0,0,1,1,1,1,1,89,89,21,89,89,89,89,0,0,0,0,0,0,0,0),
(0,0,0,0,89,89,21,21,21,89,21,15,89,21,89,89,0,0,0,0,0,0,0,0),
(0,0,0,89,89,89,21,21,89,89,21,15,89,21,89,89,89,0,0,0,0,0,0,0),
(0,0,0,89,89,90,21,89,89,89,21,15,89,21,89,89,89,89,89,90,0,0,0,0),
(0,0,0,89,89,90,21,89,89,89,89,21,89,89,89,89,89,89,89,89,0,0,0,0),
(0,0,0,0,89,90,89,89,89,21,89,89,90,89,89,21,89,89,89,89,0,0,0,0),
(0,0,0,0,0,89,89,89,89,21,89,89,89,89,21,21,21,21,21,21,0,0,0,0),
(0,0,0,0,0,89,89,89,89,89,21,21,21,21,21,21,21,21,0,0,0,0,0,0),
(0,0,0,0,0,89,89,89,89,89,21,21,21,21,21,21,21,0,0,0,0,0,0,0),
(0,0,0,0,0,0,89,89,90,89,89,21,21,21,21,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,90,90,90,90,90,90,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,90,90,90,90,90,90,1,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,4,1,1,1,1,1,1,1,0,0,0,0,0,0,0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Type =
( (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0),
(0,0,1,1,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0),
(0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0),
(0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0),
(0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0),
(0,0,0,0,1,1,1,1,1,1,89,89,89,1,1,1,1,1,0,0,0,0,0,0),
(0,0,0,0,1,1,1,1,1,89,89,21,89,89,89,89,0,0,0,0,0,0,0,0),
(0,0,0,0,89,89,21,21,21,89,21,15,89,21,89,89,0,0,0,0,0,0,0,0),
(0,0,0,89,89,89,21,21,89,89,21,15,89,21,89,89,89,0,0,0,0,0,0,0),
(0,0,0,89,89,90,21,89,89,89,21,15,89,21,89,89,89,89,89,90,0,0,0,0),
(0,0,0,89,89,90,21,89,89,89,89,21,89,89,89,89,89,89,89,89,0,0,0,0),
(0,0,0,0,89,90,89,89,89,21,89,89,90,89,89,21,89,89,89,89,0,0,0,0),
(0,0,0,0,0,89,89,89,89,21,89,89,89,89,21,21,21,21,21,21,0,0,0,0),
(0,0,0,0,0,89,89,89,89,89,21,21,21,21,21,21,21,21,0,0,0,0,0,0),
(0,0,0,0,0,89,89,89,89,89,21,21,21,21,21,21,21,0,0,0,0,0,0,0),
(0,0,0,0,0,0,89,89,90,89,89,21,21,21,21,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,90,90,90,90,90,90,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,90,90,90,90,90,90,1,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,4,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,4,4,4,4,1,1,1,1,4,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,4,4,4,4,4,90,90,90,1,4,4,0,0,0,0,0,0,0,0,0),
(0,0,0,0,4,4,4,4,4,90,90,90,90,4,4,0,0,0,0,0,0,0,0,0),
(0,0,0,0,4,4,4,4,4,90,90,90,90,4,90,90,90,0,0,0,0,0,0,0),
(0,0,0,0,0,4,4,4,4,90,90,90,1,1,0,90,90,0,0,0,0,0,0,0),
(0,0,0,0,0,1,1,1,1,1,1,15,17,17,15,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,19,1,1,1,1,1,1,1,19,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,1,19,1,1,1,1,1,19,19,1,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,1,1,19,18,1,1,19,1,1,1,0,0,0,0,0,0,0,0),
(0,0,0,0,0,1,1,1,1,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0),
(0,0,0,0,19,1,1,1,1,0,0,0,1,1,1,1,1,0,0,0,0,0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),
(0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0),
(0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0),
(0,0,0,0,0,0,0,1,1,1,1,1,1,89,89,89,1,1,1,1,1,0,0,0),
(0,0,0,0,0,0,0,1,1,1,1,1,89,89,21,89,89,89,89,0,0,0,0,0),
(0,0,0,0,0,0,0,89,89,21,21,21,89,21,15,89,21,89,89,0,0,0,0,0),
(0,0,0,0,0,0,89,89,89,21,21,89,89,21,15,89,21,89,89,89,0,0,0,0),
(0,0,0,0,0,0,89,89,90,21,89,89,89,21,15,89,21,89,89,89,89,89,90,0),
(0,0,0,0,0,0,89,89,90,21,89,89,89,89,21,89,89,89,89,89,89,89,89,0),
(0,0,0,0,0,0,0,89,90,89,89,89,21,89,89,90,89,89,21,89,89,89,89,0),
(0,0,0,0,0,0,0,0,89,89,89,89,21,89,89,89,89,21,21,21,21,21,21,0),
(0,0,0,0,0,0,0,0,89,89,89,89,89,21,21,21,21,21,21,21,21,0,0,0),
(0,0,0,0,0,0,0,0,89,89,89,89,89,21,21,21,21,21,21,21,0,0,0,0),
(0,0,0,0,0,0,0,0,0,89,89,90,89,89,21,21,21,21,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,90,90,90,90,90,90,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,90,90,90,90,90,90,1,0,0,90,90,0,0,0),
(0,0,0,0,0,0,0,0,0,1,1,4,4,4,4,1,1,0,0,90,90,90,0,0),
(0,0,0,0,0,0,0,4,4,1,4,4,4,4,4,4,4,4,4,90,90,90,0,0),
(0,0,0,0,0,0,0,4,1,1,4,4,4,4,4,4,4,4,4,90,90,90,0,0),
(0,0,0,0,0,0,4,4,1,1,1,4,4,4,4,4,4,4,4,90,90,0,0,0),
(0,0,0,0,0,90,4,4,1,1,1,4,4,4,4,4,4,1,0,0,0,0,0,0),
(0,0,0,0,0,90,4,4,1,1,1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,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,1,1,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0),
(0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0),
(0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0),
(0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0),
(0,0,0,0,0,1,1,1,1,1,1,89,89,89,1,1,1,1,1,0,0,0,0,0),
(0,0,0,0,0,1,1,1,1,1,89,89,21,89,89,89,89,0,0,0,0,0,0,0),
(0,0,0,0,0,89,89,21,21,21,89,21,15,89,21,89,89,0,0,0,0,0,0,0),
(0,0,0,0,89,89,89,21,21,89,89,21,15,89,21,89,89,89,0,0,0,0,0,0),
(0,0,0,0,89,89,90,21,89,89,89,21,15,89,21,89,89,89,89,89,90,0,0,0),
(0,0,0,0,89,89,90,21,89,89,89,89,21,89,89,89,89,89,89,89,89,0,0,0),
(0,0,0,0,0,89,90,89,89,89,21,89,89,90,89,89,21,89,89,89,89,0,0,0),
(0,0,0,0,0,0,89,89,89,89,21,89,89,89,89,21,21,21,21,21,21,0,0,0),
(0,0,0,0,0,0,89,89,89,89,89,21,21,21,21,21,21,21,21,0,0,0,0,0),
(0,0,0,0,0,0,89,89,89,89,89,21,21,21,21,21,21,21,0,0,0,0,0,0),
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,0,0,0,0,0,0,1,1,1,19,19,19),
(0,0,19,19,19,1,1,1,1,1,0,0,0,0,0,0,0,0,1,1,19,19,19,0),
(0,0,19,19,19,1,1,1,1,0,0,0,0,0,0,0,0,0,0,19,19,19,0,0),
(0,0,0,19,19,19,19,1,0,0,0,0,0,0,0,0,0,0,0,19,19,0,0,0),
(0,0,0,0,19,19,19,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,19,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0));
//********
var
w, d: integer;
gd, gm: smallint;
x, y, i, stlen, index: integer;
ch: char;
Info: string;
MarioIndex: integer;
procedure DrawSprite(S: SpriteType; xx, yy: integer);
var
r, c: integer;
begin
for r := 0 to 49 do
for c := 0 to 23 do
if s[r, c] <> 0 then putpixel(xx + c, r + yy, s[r, c]);
end;
procedure EraseSprite(S: SpriteType; xx, yy: integer);
var
r, c: integer;
begin
for r := 0 to 49 do
for c := 0 to 23 do
if s[r, c] <> 0 then putpixel(xx + c, r + yy, 0);
end;
begin
gd := vesa;
Gm := installusermode(800, 600, 256, 1, 8000, 6000);
randomize;
InitGraph(gD, gM, '');
info := 'FFFUFFUFDFDFDFFFDFDFFFDFFDFDFFDF';
stlen := length(info);
w := 24;
d := 4;
x := 0;
y := 400;
setcolor(7);
marioindex := 0;
for i := 1 to Stlen do
begin
rectangle(x, y, x + w, y + d);
ch := info[i];
case ch of
'F': Inc(x, w);
'U': begin
Dec(Y, D);
Inc(x, w);
end;
'D': begin
Inc(Y, D);
Inc(x, w);
end;
end;
end;
outtextxy(400, 500, 'Press any key');
readkey;
x := 0;
y := 400;
for i := 1 to Stlen do
begin
case marioindex of
0: drawsprite(mar50x24A_0, x, y - 50);
1: drawsprite(mar50x24a_1, x, y - 50);
2: drawsprite(mar50x24a_2, x, y - 50);
3: drawsprite(mar50x24a_3, x, y - 50);
4: drawsprite(mar50x24a_4, x, y - 50);
end;
delay(250);
case marioindex of
0: erasesprite(mar50x24a_0, x, y - 50);
1: erasesprite(mar50x24a_1, x, y - 50);
2: erasesprite(mar50x24a_2, x, y - 50);
3: erasesprite(mar50x24a_3, x, y - 50);
4: erasesprite(mar50x24a_4, x, y - 50);
end;
ch := info[i];
case ch of
'F': Inc(x, w);
'U': begin
Dec(Y, D);
Inc(x, w);
end;
'D': begin
Inc(Y, D);
Inc(x, w);
end;
end;
Inc(marioindex);
if marioindex > 4 then marioindex := 0;
end;
drawsprite(mar50x24a_0, x - w, y - 50);
repeat
until keypressed;
CloseGraph;
end.