0,]']±>Sï}WÿÍu§ðp8·d%qy)6o;]ÉA¦ösï÷ôôô”°ÂVl†3=6=E=D47 and mx<190 then if my>125 and my<135 then andy=true elseif my>105 and my<115 then johan=true elseif my>85 and my<95 then ellie=true elseif my>65 and my<75 then tim=true elseif my>41 and my<58 then you=true elseif my>13 and my<31 then alert=true end end end if andy or ellie or johan or tim or you or alert then hearts=true end achievements() transitions('INTRO','OPPORTUNITY',0) end function lvl_opportunity() cls(12) -- roads line(130,0,330,200,13) line(60,0,260,200,13) line(0,120,300,20,13) line(0,80,300,-20,13) tri(130,29,220,25,170,75,12) tri(130,23,70,75,170,75,12) -- tri(10,140,130,140,100,110,12) tri(80,0,-10,0,80,40,13) tri(0,67,-10,0,80,40,13) line(80,0,80,40,14) line(80,40,0,67,14) tri(210,0,210,66,300,0,13) tri(300,150,210,66,300,0,13) line(210,0,210,65,14) line(210,65,240,95,14) tri(220,35,220,56,230,45,14) tri(230,64,220,56,230,45,14) line(100,110,10,140,14) line(100,110,130,140,14) line(110,120,140,110,14) line(140,110,170,140,14) circ(160,70,5,13) if sm==0 then circ(120,50,3,13) circ(180,50,4,13) elseif sm==1 then circ(160,64,3,13) circ(180,50,4,13) elseif sm==2 then circ(160,64,3,13) circ(160,58,4,13) elseif sm>2 then circ(160,64,3,13) circ(160,58,4,13) rect(158,60,5,3,2) rect(158,60,3,10,2) line(156,65,153,68,1) line(162,65,166,68,1) pix(160,57,0) pix(158,57,0) line(157,58,155,58,3) end circ(80,80,4,13) circ(80,75,3,13) circ(80,71,2,13) line(82,71,83,71,3) line(77,75,75,77,1) line(84,75,86,77,1) if ml then sm=sm+1 snow=true end if sm>2 then print('Random people on the street',30,104,0) print('building snowman,',30,111,0) print('making snowangels and',30,118,0) print('having a snowbalfight',30,125,0) end achievements() transitions('REJECTION','APPRECIATION',0) end function lvl_appreciation() cls(8) cup(70,20,1,1) circ(70,20,26,1) cup(40,75,1,0) circ(40,75,25,1) marshmallow(40,70) cup(90,120,1,-1) circ(90,120,24,1) cup(140,30,-1,1) circ(140,30,26,1) cup(200,60,-1,0) circ(200,60,25,1) cup(160,110,-1,-1) circ(160,110,26,1) marshmallow(200,105) marshmallow(215,115) marshmallow(203,113) marshmallow(223,93) for i,m in ipairs(mm) do marshmallow(m.x,m.y) end rect(7,122,145,11,0) rect(8,123,143,9,12) print("mini marshmallows, anyone?",10,125,0) if #mm>0 then rect(107,2,69,17,0) rect(108,3,67,15,12) print('Hot cocoa is',110,5,0) print('the best <3',112,11,0) end if #mm>2 then rect(122,67,95,26,0) rect(123,68,93,24,12) print("Never thought",139,70,0) print("such cool people",125,77,0) print("live nearby",155,84,0) end if #mm>5 then rect(7,37,68,17,0) rect(8,38,66,15,12) print("I can't feel",10,40,0) print("my hands xD",10,46,0) end achievements() transitions('OPPORTUNITY','REALITY',0) marshmallow(mx,my) if ml and #mm<20 then if (mx>50 and mx<90 and my>0 and my<40) or (mx>22 and mx<60 and my>56 and my<94) or (mx>72 and mx<108 and my>102 and my<138) or (mx>120 and mx<160 and my>10 and my<50) or (mx>182 and mx<218 and my>42 and my<78) or (mx>140 and mx<180 and my>90 and my<130) then mallows=true m={x=mx,y=my} table.insert(mm,m) end end end function lvl_reality() cls(8) cup(70,20,1,1) circ(71,21,19,1) circ(72,22,17,14) cup(40,75,1,0) circ(41,75,20,1) cup(90,120,1,-1) circ(91,119,19,1) circ(92,118,19,14) cup(140,30,-1,1) circ(139,31,19,1) circ(139,32,18,14) cup(200,60,-1,0) circ(199,60,19,1) circ(198,60,17,14) cup(160,110,-1,-1) circ(159,109,20,1) marshmallow(150,105) if t_a~=nil then x=math.max(90,140-(t-t_a)) rect(45,x+1,150,140,0) rect(47,x+3,146,140,0) rectb(47,x+13,146,140,15) circ(95,x+6,1,15) rect(105,x+5,40,3,15) rect(50,x+20,140,24,15) print('JOHAN',57,x+23,0) print('JOHAN',56,x+23,6) print("Am in hospital. Car",53,x+30,13) print("crashed on way to work.",53,x+36,13) end achievements() transitions('APPRECIATION','OUTRO',0) end function lvl_outro() cls(0) print("When 'festivities in the city'",25,20,4) print("Becomes 'the roads are too busy'",25,30,4) print("When 'laughter in the park'",25,45,4) print("Becomes 'noise off the chart'",25,55,4) print("That's when the joys of life",25,70,4) print("Have become a burden on the mind",25,80,4) print("That's when you left 'living'",25,95,4) print("And 'being lived' becomes more fitting",25,105,4) transitions('REALITY','CREDITS',4) end function lvl_credits() cls(0) print('Thanks to these amazing people:',30,10,4) print('CLEMENTINE - Script feedback & hugs',30,30,4) print('DANI - food & movies',30,40,4) print('SAMUS - cuddles & hugs',30,50,4) print('DANIEL - food',30,60,4) print('JOHANNES - food',30,70,4) print('JOSHUA - honest words',30,80,4) print('JORDAN - sleeping quarters & candy',30,90,4) print('And many more at',70,110,4) print('SPELKOLLEKTIVET in Sweden <3',40,120,4) transitions('OUTRO',nil,4) end function transitions(back,forward,color) if not finish then if back=='OUTRO' then back='REALITY' elseif forward=='OUTRO' then forward='CREDITS' end end if back=='REALITY' or forward=='REALITY' then t_a=t end if back~=nil then print('<',3,60,color,false,4) if ml then if mx>0 and mx<20 and my>55 and my<85 then lvl=back end end if btnp(2) then lvl=back end end if forward~=nil then print('>',225,60,color,false,4) if ml then if mx>220 and mx<240 and my>55 and my<85 then lvl=forward end end if btnp(3) then lvl=forward end end end function achievements() if hearts then spr(19,2,2,0) else spr(3,2,2,0) end if snow then spr(20,2,10,0) else spr(4,2,10,0) end if mallows then spr(21,2,18,0) else spr(5,2,18,0) end if hearts and snow and mallows then finish=true spr(22,1,25,0) else spr(6,1,25,0) end end function marshmallow(x,y) circ(x+1,y,4,13) circ(x,y,4,12) end function cup(x,y,sx,sy) circ(x+sx,y+sy,31,0) circ(x,y,31,14) circ(x,y,30,13) circ(x,y,27,14) end function mouser() mx,my,ml=mouse() -- handle lingering click if prev_ml and ml then return mx,my,false end -- handle normal click prev_ml=ml return mx,my,ml end