Skip to content

Commit

Permalink
added regions for harry death / respawn to appear correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeDX committed Feb 1, 2016
1 parent 353d9f6 commit 2d5c1d2
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions pitfall.PRG
Original file line number Diff line number Diff line change
Expand Up @@ -550,15 +550,20 @@ begin

playsound(fx.death);

while(t<fpsec*2)
t++;
frame;
frame(fps*200);

end
lives--;
if(lives>=0)
harryid=harry();
son.y=y-30;
if(y>160)
define_region(2,18,167,26,32);
else
define_region(2,24,73,35,95);
end

harryid.region=2;

else
loop
frame;
Expand All @@ -584,15 +589,19 @@ begin
region=2;
playsound(fx.death);

while(y<150)
while(y<160)
y++;
frame(200);

frame;
end

frame(fps*25);

lives--;
if(lives>=0)
harryid=harry();
end
define_region(2,24,73,35,95);
harryid.region=2;

end

Expand Down Expand Up @@ -735,7 +744,7 @@ loop
end

if(y==groundy)

region=0;
if(key(_space) && yx!=-4 && !lastspace)
yx=-4;
playsound(fx.jump);
Expand Down Expand Up @@ -830,6 +839,8 @@ loop
if(alive==1)
if(yx<8)
yx++;
else

end
end
end
Expand Down Expand Up @@ -958,12 +969,14 @@ loop

while(y<boty)
y++;

if(y>groundy-24)
graph=11;
end

frame;

//region=0;

end

end
Expand Down

0 comments on commit 2d5c1d2

Please sign in to comment.