From 2d5c1d25e424361cdc5522a96b906533c92fbed4 Mon Sep 17 00:00:00 2001 From: MikeDX Date: Mon, 1 Feb 2016 21:14:36 +0000 Subject: [PATCH] added regions for harry death / respawn to appear correctly --- pitfall.PRG | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/pitfall.PRG b/pitfall.PRG index 4235fd5..be5b5eb 100644 --- a/pitfall.PRG +++ b/pitfall.PRG @@ -550,15 +550,20 @@ begin playsound(fx.death); - while(t=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; @@ -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 @@ -735,7 +744,7 @@ loop end if(y==groundy) - + region=0; if(key(_space) && yx!=-4 && !lastspace) yx=-4; playsound(fx.jump); @@ -830,6 +839,8 @@ loop if(alive==1) if(yx<8) yx++; + else + end end end @@ -958,12 +969,14 @@ loop while(ygroundy-24) graph=11; end frame; + + //region=0; + end end