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ᙙᙙᙙᙙᙙDJDJJDJᙙᙙᙙᙙᙙᙙᙙᙙᙙᙙᙙJJJDJJDJJJJᙞᙞᙞᙞᙞᙞᙞᙞᙞᙞᙞJDDDDᙞᙞᙞᙞᙞᙞᙞᙞᙞᙞᙞDDJJJJJJJJJ陙陙陙陙陙陙陙陙陙陙陙JJJJ陙陙陙陙陙陙陙陙陙陙陙骪DDDD骪JJJJJJDJJDJJDJDJDJ骪D""""""""U\U\U\U\""""""""U\U\U\JJJJᙙ""""""""UU\\\UU\\\UU\\\UU\\\""""""""UU\\\UU\\\UU\\\ᙙJJDDᙙ""""""""\\\\\\\\""""""""\\\\\\ᙙDJDJJDJᙙ""""""""\\\\\\\\\\\\\\\\""""""""\\\\\\\\\\\\ᙙJJJDJJD""""""""\\\\\\\\""""""""\\\\\\JJJJᙞ""""""""UUUUUUUU""""""""UUUUUUᙞJDDDDᙞ""""""""\\\\\\\\\\\\\\\\\\\\""""""""\\\\\\\\\\\\\\\ᙞDDJJJJ""""""""UUUUUUUU""""""""UUUUUUJJJJJ陙""""""""\\\\\\\\\\""""""""\\\\\\\\\陙JJJJ陙""""""""UU\U\U\""""""""U\U\U\Ş陙骪DDDD""""""""\\\\̾뾾\U\\\\\U\\\\\U\""""""""\\\\U\\\\\U\\\\\U\""""""""\̾\\\""""""""\\\骪JJJJ""""""""\̾\\\""""""""\\\JJDJJDJJ""""""""\ž^^\\\\\\\\\\\""""""""\\\\\\\\\\\\DJDJDJ""""""""U\\\U\\U\\""""""""U\\U\\U\\̞骪D""""""""\\\\\\""""""""\\\\\\U\U\̾\U\U\U\U\U\U\JJJJᙙUU\\\UU\̾\\\UU\\\UU\\\UU\\\UU\\\UU\\\UU\\\ᙙJJDDᙙ\\\\ž\\\\\\\\\\\\ᙙDJDJJDJᙙ\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ᙙJJJDJJD\\\\\\\\\\\\\\\\\JJJJᙞUUUUUUUUUUUUUUUUᙞJDDDDᙞ\\\\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DJJDJᙙ\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ᙙJJJDJJD\\\\\\\\\\\\\\\\\\JJJJᙞUUUUUUUUUUUUUUUUUUᙞJDDDDᙞ\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ᙞDDJJJJUUUUUUUUUUUUUUUUUUJJJJJ陙\\\\\\\\\\\\\\\\\\\\\\\\\\\陙JJJJ陙U\U\U\U\U\U\U\U\U\Ş陙骪DDDD\\\\U\\\\\U\\\\\U\\\\\U\\\\\U\\\\\U\\\\\U\\\\\U\\\\\U\\\\\\\\\\骪JJJJ\\\\\\\\\JJDJJDJJ\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\DJDJDJU\\U\\U\\U\\U\\U\\U\\U\\U\\̞骪D\\\\\\\\\\\\\\\\\\U\U\U\U\U\U\U\U\U\JJJJᙙUU\\\UU\\\UU\\\UU\\\UU\\\UU\\\UU\\\UU\\\UU\\\ᙙJJDDᙙ\\\\\\\\\\\\\\\\\\ᙙDMp-- title: betty -- author: volter\voltage -- desc: pc -- script: lua local tail={"0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","y","q","w","r","t","u","o","p","s","f","g","h","j","k","l","z","x","v","n","m","?",".",",","<",">","/",";",":","[","]","{","}","!"} local booltail={["0"]=true,["1"]=true,["2"]=true,["3"]=true,["4"]=true,["5"]=true,["6"]=true,["7"]=true,["8"]=true,["9"]=true,["a"]=true, ["b"]=true,["c"]=true,["d"]=true,["e"]=true,["y"]=true,["q"]=true,["w"]=true,["r"]=true,["t"]=true,["u"]=true,["o"]=true,["p"]=true, ["s"]=true,["f"]=true,["g"]=true,["h"]=true,["j"]=true,["k"]=true,["l"]=true,["z"]=true,["x"]=true,["v"]=true,["n"]=true,["m"]=true, ["?"]=true,["."]=true,[","]=true,["<"]=true,[">"]=true,["/"]=true,[";"]=true,[":"]=true,["["]=true,["]"]=true,["{"]=true,["}"]=true,["!"]=true} local world={} for a=1,10 do world[a]={px=96,py=96} for i=1,64 do world[a][i]={} for j=1,64 do world[a][i][j]="0" end end end local stool={x=72,y=72,log={id=1,num=1},locate=1} local smx,smy=0,0 local pmx,pmy=0,0 local spd=0 local anum=1 local ts=16 local w=15 local h=9 local palete1="deeed6dad45e6dc2cad2aa996daa2c8595a1d27d2c597dce757161d04648346524854c304e4a4e30346d442434140c1c" local flr,cos,sin=math.floor,math.cos,math.sin local load={ "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005555555555505555555555555555500000000000000000000000000000000000533333333351111111500000000050000000000000000000000000000000000053333333335111111150b00b00b05000000000000000000000000000000000005333333333510111115000000000500000000000000000000000000000000000533333333322222222222200022250000000000000000000000000000000000053333333332222222222220a02225000000000000000000000000000000000005333333333222222222222000222500000000000000000000000000000000000533333333351111111500000000050000000000000000000000000000000000053333333335111111150b00b00b0500000000000000000000000000000000000533333333351111111500000000050000000000000000000000000000000000055555555555555555555555555555000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "00000000000000000000000000000000000000000000000000000000000000000444444444044440000000000000000000000000000000000000000000000000040000000000004000000000000000000000000000000000000000000000000004010q0000008040000000000000000000000000000000000000000000000000040000000000004000000000000000000000000000000000000000000000000004020y0000009040000000000000000000000000000000000000000000000000040000000000004000000000000000000000000000000000000000000000000004030e000000a040000000000000000000000000000000000000000000000000040000000000004000000000000000000000000000000000000000000000000004040d000000b040000000000000000000000000000000000000000000000000040000000000004000000000000000000000000000000000000000000000000004050c0000000040000000000000000000000000000000000000000000000000040000000000004000000000000000000000000000000000000000000000000004060b0000000040000000000000000000000000000000000000000000000000040000000000004000000000000000000000000000000000000000000000000004070a0000000040000000000000000000000000000000000000000000000000040000000000004000000000000000000000000000000000000000000000000004080900000000400000000000000000000000000000000000000000000000000400000000000040000000000000000000000000000000000000000000000000044444444000004444000000000000000000000000000000000000000000000000000000400000000400000000000000000000000000000000000000000000000000000040wrtuopp40000000000000000000000000000000000000000000000000000004000000004000000000000000000000000000000000000000000000000000000444444444400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" } local triger={t=1,a=false} for i=1,4 do triger[i]={x=-16,y=-16,locate=1,anum=2} end triger[1]={x=3*16,y=3*16,locate=1,anum=2} triger[2]={x=3*16,y=6*16,locate=2,anum=1} triger[3]={x=8*16,y=3*16,locate=1,anum=2} triger[4]={x=8*16,y=6*16,locate=2,anum=1} local p={x=32,y=64,sx=0,sy=0,sp=256} local ts=16 local block={["4"]=true,["5"]=true,["6"]=true,["a"]=true,["8"]=true,["b"]=true} local t=0 local m={x=30,y=17,tx=0,ty=0,a=0} local select=false local x,y=0,0 local n=1 local m=2 function TIC() cls() if btnp(7) and select==false then x,y=math.random(10,54),math.random(10,54) while true do x,y=math.random(10,54),math.random(10,54) if not block[world[anum][x][y]]then break end end select=true elseif btnp(7) and select then select=false x,y=0,0 end --if not block[world[anum][x][y]] then p.x=x*16 p.y=y*16 end if select then spd=spd+.2 if spd>4 then spd=8 end camera(x*16,y*16,flr(p.x/16)*16,flr(p.y/16)*16,120,68,1,spd) if flr((p.x+120+pmx)/16)==x and flr((p.y+68+pmy)/16)==y then p.x=flr((p.x+pmx)/16)*16+8 p.y=flr((p.y+pmy)/16)*16+8 select=false slct(true,n) p.sp=256 n=n+1 if n>3 then n=1 end end else pmx,pmy,x,y,spd=0,0,0,0,0 end mapa() if triger.a==false and select==false then player() end spr(p.sp,120-pmx,60-pmy,15,1,0,0,2,3) t=t+1 print(flr((p.x+120+pmx)).." "..flr((p.y+68+pmy))) for i=1,#triger do if triger[i].locate==anum then rect(triger[i].x-p.x-pmx,triger[i].y-p.y-pmx,16,16,2) end end if stool.locate==anum then rectb(stool.x-p.x,stool.y-p.y,16,16,2) spr(352,stool.x-p.x,stool.y-p.y-16,0,1,0,0,2,2) if math.floor(stool.x/16)==math.floor((p.x+120)/16) and math.floor(stool.y/16)==math.floor((p.y+68)/16) then devlog(stool,m,btnp(5)) if btnp(4) then m=m+1 end if m>4 then m=2 end end end end local cam={x=0,y=0} function mapa() for i=1,#triger do if triger[i].locate==anum and callrect(128,76,triger[i].x-p.x,triger[i].y-p.y,16,16)then triger.a=true if triger.t==50 then p.sp=256 world[anum].px=p.x world[anum].py=p.y+32 anum=triger[i].anum t=0 p.x=world[anum].px p.y=world[anum].py end end end if triger.a and triger.t<50 then triger.t=triger.t+1 for i=1,48 do bytepal=palete1:sub(i*2-1,i*2) local byte=tonumber(bytepal,16) poke(0x03FC0+i-1,byte/triger.t) end else triger.a=false end if triger.a==false and triger.t>1 then triger.t=triger.t-1 for i=1,48 do bytepal=palete1:sub(i*2-1,i*2) local byte=tonumber(bytepal,16) poke(0x03FC0+i-1,byte/triger.t) end end if select==false then cam.x=flr(cam.x) cam.y=flr(cam.y) if p.x>cam.x and cam.x<(64-w)*ts then cam.x=cam.x+1 elseif p.x0 then cam.x=cam.x-1 end if p.y>cam.y and cam.y<(64-h)*ts then cam.y=cam.y+1 elseif p.y0 then cam.y=cam.y-1 end else if p.x+pmx>cam.x and cam.x<(64-w)*ts then cam.x=cam.x+spd elseif p.x+pmx0 then cam.x=cam.x-spd end if p.y+pmy>cam.y and cam.y<(64-h)*ts then cam.y=cam.y+spd elseif p.y+pmy0 then cam.y=cam.y-spd end end local id=0 if t==0 then for i=1,64 do for j=1,64 do world[anum][i][j]=string.sub(load[anum],id+1,id+1) id=id+1 end end end if cam.x>=0 and cam.y>=0 and cam.x<(64-w)*ts and cam.y<(64-h)*ts then for i=flr((cam.x)/ts),flr(((cam.x)+ts*w)/ts) do for j=flr((cam.y)/ts),flr(((cam.y)+ts*h)/ts) do local id=0 for n=0,#tail do if tail[n]==world[anum][i+1][j+1] then id=n-1 end end if id%16>7 then id=id+8 end if booltail[world[anum][i+1][j+1]] then spr((id*2),i*16-p.x-pmx,j*16-p.y-pmy,-1,1,0,0,2,2) end end end end print("camx="..cam.x.." camy="..cam.y,0,60) end function player() if btn(0)and p.y+68>1 then p.sy=p.sy-.1 p.sp=308+t%24//8*2 elseif btn(1)and p.y+68<64*16 then p.sy=p.sy+.1 p.sp=256+t%24//8*2 else if p.sy<0 then p.sy=p.sy+.08 elseif p.sy>0 then p.sy=p.sy-.08 end if (p.sy<1 and p.sy>0) or (p.sy>-1 and p.sy<0) then p.sy=0 end end if btn(2)and p.x+120>1 then p.sx=p.sx-.1 p.sp=304+t%16//8*2 elseif btn(3)and p.x+68<64*16 then p.sx=p.sx+.1 p.sp=262+t%16//8*2 else if p.sx<0 then p.sx=p.sx+.08 elseif p.sx>0 then p.sx=p.sx-.08 end if (p.sx<1 and p.sx>0) or (p.sx>-1 and p.sx<0) then p.sx=0 end end if p.sy>1 then p.sy=1 elseif p.sy<-1 then p.sy=-1 end if p.sx>1 then p.sx=1 elseif p.sx<-1 then p.sx=-1 end if solid(p.x,p.y+15+p.sy) or solid(p.x+15,p.y+15+p.sy) or solid(p.x,p.y+p.sy) or solid(p.x+15,p.y+p.sy) then p.sy=0 end if solid(p.x+p.sx,p.y) or solid(p.x+15+p.sx,p.y) or solid(p.x+p.sx,p.y+15) or solid(p.x+15+p.sx,p.y+15) then p.sx=0 end p.x=p.x+p.sx p.y=p.y+p.sy end function solid(x,y) return block[world[anum][flr((x+136)/16)][flr((y+84)/16)]] end function callrect(x1,y1,x2,y2,w,h) return(x1>x2 and x1y2 and y1