0 D$404mNJN…L04e$аFHuqaY}Юв},…•ЁmЊ,вЊ™mТЪкд^оюж 0џџџџџџџџ2Tv˜КмўяЭЋ‰gE#2Tv˜Кмў2Tv˜Кмў@юююnfюnfffюfffрfffрffіfіџ`іџрцюfцfffџџo№џџoюююnfцn№o`n`nџџюіoрnцр33у3ууююnюццffffуfffуfіџуіџ№уіџ>333>333цю3>fцюцfffцџof>џf>џц33333333>3>ююуцnncfff3nіџуіџ№уіџ3333у333ю3у3nюn>fff>џџf>џf>џ63юую3nfц>c№o`n`nџџ6уіo3уnц33у3333>3уу>3nf6>c№oрnрnџџ6уіo>уnц3юfіџрfіюірі№џі`џџџ`o№џ`№oofffуіџџуіnіnі№уіџуnі3уff33ююџџf>`цoцџ`>№я3oц3ff>3юю333ўџџ3ўуіуі№3ўџ3nі3уfn33юуџџц3`>o>џр3№я3oц3fn>3юу333333333333333333333333333333333333333333333333333333333333333333 >9 8 77777754DDCSSScbR R B B A @ 0 1 ! с рР3ƒ ѕ@ј@є@ј@ј@є@ј@ј@ј@є@ј@є@ј@є@ј@є@ј@є@ј@є@ј@ј@є@ј@є@ј@є@ј@ј@є@є@ј@є@є@є@є@є@ј@є@ј@ј@є@ј@є@ј@є@є@ј@є@ј@є@ј@є@є@ј@”””””””””””””””””””””””$””””$”””4”””””””””””””””””””””””””””Ј@Є@є@Ј@Є@Ј@Ј@Ј@Є@Ј@Є@Ј@Є@Є@Ј@Ј@Ј@Ј@Є@Ј@Ј@Є@Ј@Ј@Ј@Є@Ј@Ј@Ј@Ј@Є@Ј@Ј@Є@Ј@Ј@Ј@Ј@Ј@Є@Ј@Є@Ј@є`є`є`є`є`є`є`є`є`є`є`є`є`є`є`є`є`є`є`є`є`„`t`d`T`D`4`$``їŸb‡˜cw—xg–nW•Gz7x'’~”~їŸb‡˜cw—xg–nW•Gz7x'’~”~їŸb‡˜cw—xg–nW•Gz7x'’~„~їŸb‡˜cw—xg–nW•Gz7x'’~t~їŸb‡˜cw—xg–nW•Gz7x'’~d~g~g~їŸ_‡˜_t—Kg–MW•MG”_7“_$’_‘q”™1”™1їŸ_‡˜_t—Kg–MW•MG”_4“_'’_‘q”™1”™1їŸ_‡˜_w—Kg–MT•MG”_7“_$’_‘q”™1”™1”™1”™1”™1Dg•™1”™1”™1”™1•™1DgєŸ_•™1„˜11‘1$’1„˜1”™1„˜1”™1„˜1‘14“1‘14“11”™11„˜14“1‘1$’1t—1‘14“1t—1„˜1‘14“14“1‘1d–14“1‘1„˜1d–14“14“14“1t—1”™1‘1„˜14“1‘1$’14“1t—1$’1‘1”™14“1‘14“1t—1„˜1‘1”™14“14“1t—1$’1”™1„˜1$’1є`„`t`d`T`D`4`$``$’1є`„`t`d`T`D`4`$``4“1d–Qє`„`t`d`T`D`4`$``d–d8d–Qє`„`t`d`T`D`4`$``њŸ_њŸњŸ_њŸћŸ_ћŸћŸ_ћŸ§ŸіŸ_іŸіŸ_іŸјŸ_јŸјŸ_јŸљŸњŸ_њŸњŸ_њŸћŸ_ћŸћŸ_ћŸ§ŸіŸіŸ_ѕŸѕŸ_њŸ_њŸ?њŸ?јŸ_јŸљŸіŸ=V•=іŸ=V•=ћŸ}іŸ=V•=іŸ=V•=іŸ=V•=ћŸ}ћŸ}іŸ=V•=іŸ=V•=ћŸ}іŸ=V•=іŸ=V•=іŸ=V•=ћŸ}ћŸ}іŸ=V•=іŸ=V•=ћŸ}іŸ=V•=іŸ=V•=іŸ=V•=ћŸ}ћŸ}іŸ=V•=іŸ=V•=ћŸ}іŸ=V•=іŸ=V•=іŸ=V•=ћŸ}ћŸ}њŸ\њŸ\њŸ\Њš\š™\Š˜\z—\j–\Z•\J”\*’\‘\іŸ\іŸ\іŸ\Іš\–™\†˜\v—\f–\јŸ\јŸ\јŸ\Јš\˜™\ˆ˜\x—\h–\њŸ\њŸ\њŸ\Њš\š™\Š˜\z—\j–\Z•\J”\*’\‘\іŸ\іŸ\іŸ\Іš\–™\†˜\v—\f–\њŸ\њŸ\њŸ\Њš\š™\Š˜\z—\j–\јŸžњŸž§ŸžџŸžѕŸОџŸžџŸžњŸОѕŸОњŸžќŸž§ŸžќŸžјŸžѕŸžјŸžњŸž§ŸžџŸžѕŸОџŸžџŸžјŸОњŸОќŸОјŸОњŸОњŸОјŸОіŸОѕŸОџŸžѕŸОњŸžњŸОјŸОіŸОѕŸОџŸžѕŸОќŸОњŸОјŸОіŸОѕŸОџŸžѕŸОњŸžќŸž§ŸžџŸžјŸОѕŸОј­ІћnHЅ­цјЏј­Іћn­Іј­ІћnHЅ­Іјј­Іћn­Іј­ІћnHЅ­Іјј­Іћn­Іј­ІћnHЅ­Іјј­ІћnћnнИљ@љAљAљAљAљAљAљAљAўAџAєbєaїaљaљ@љAљAљAљAљAљAљAљAўAџAєbєaє`љ@љAљAљAљAљAљAљAљAўAџAєbєaїaљaљ@љAљAљAљAљAљAљAљAўAџAєbєaє`Й&I'š@аBAбAб Aб ………1$Dб џЋ?№џ№џ№џџџџџ№џџџџџџџџџџџџџџџџџџџ№№џџ№№џџџџ№џ№џџџџџ№џџџџџџџ№џџџџџџџџџџџџџџџџ№№џ№№№№№џ№№№№№№№№џ№џ№№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№№џџ№џ№џџџ№№№№№№џџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№№џ№№№№№џ№№№№№џ№џџџџџ№џ№џџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџ№№џџ№№№џџџ№№№џџ№џџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№№№№џџџ№џџџџџџ№№џ№№џ№№џ№џџџ№џџџ№џ№џџџџџџ№џџџ№џ№№№№џџ№џ№№№№№џџџџџџ№№џџ№ююююю№џџџ№џџџџююююю№џџџ№юююfffюююю№џџџ№юююfffюююю№џџџ№џ№џџюffffffffююююffffffffюююююfffffffffююююfffffffffюююffffffffffffюffffffffffffюfffffџџџџџџffюfffffџџџџџџfffffџџџџџџџџfffџџџџџџџџffџџџџџџfffџџџџџџf№ююfffџџџџџџџџџџ№џююfffџџџџџџџџџџџџюfffџf№џџюfffџf№џџџџююfџџџџџџfџџџџџююfџџџџџџf№џџџџџюfџџџџf№џџџџџџюfџџџџfџџџџџџџџџџџџf№џџџџџџџџџџџџџf№џџџџџџџџџfџџџfџџџџџџџџџџfџџџf№џџџџџџџџџџfffffff№џџџџџџџџџџџџfffffffџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џ№џџџџџ№џџ№џ№џџџџџџџџџџџџџџџџџџџџџџ№џ№џ№џџџџџџџџџџџџџџџџџџџџџџџџџџџ№џ№џџџџџџџџџџџџџџџџџџџџџџџџџџ№џ№џџџџ№џ№џ№џџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџџџџ№џџџџџџџџџџџџџџџџююю№џџџџџџџџџџџџџџџџџnfц№џџџџџџџџџџџџџџџџџџn№o`џџ№џ№џ№џџџ№џџ№№џџџџџџџџџџџџџџџџџџn`џџ№џ№џ№џџџџџ№џџ№№џџ№№џ№џџџ№№џџџџџџџџџџџџџџџџџџnџџџ№џ№№№џџ№џ№џ№џџџџ№џџ№џ№№џ№№№џџ№џџџџџџџџџџџџџџџџџџюіoџ№џ№№џџџ№џ№џ№џ№џџ№џ№џ№џ№№№№№џџџџџџџџџџџџџџџџџџрnцџџџ№№џџџџџџџ№џџ№џ№џџ№џ№№џџџџџџџ№№№џџџџџџџџџџџџџџџџџр№џ$-- title: Pongotic -- author: OdiStudio Games -- desc: pong of Tic -- script: lua -- contact: idriss.diba67@gmail.com s=0 id=0 anm=0 lv=1 rebon=0 t=0 g=0 x=86 y=24 dx=6 dy=135 vx=0 vy=0 cx=14 cy=60 kx=224 ky=60 kc=15 colore=0 c=15 co=8 cc=25 demo={ t=0; g=0; x=86; y=24; dx=6; dy=135; vx=0; vy=0; cx=14; cy=60; kx=224; ky=60; kc=15; c=15; co=8; cc=25 } boss={ maxPv=10; pv=10; x=190; y=45; sprite=4; mini=8; minix=200; miniy=20; minixx=200; miniyy=95; minit=0; minig=0; minivx=1; minivy=0; t=0; g=0; vx=1; vy=0; co=10; cc=80 } score={ sc=0, hisc=120, } function zero() cls() zero=menu end music(1,-1,-1,true) function menu() if btnp(0) then y=y-10 end if btnp(1) then y=y+10 end if y <= 24 then y = 24 elseif y >= 44 then y = 44 end if y == 24 and btnp(5) then zero=start sfx(id,"E-3") end if y == 34 and btnp(5) then zero=option sfx(id,"E-3") end if y == 44 and btnp(5) then zero=about sfx(id,"E-3") end cls() spr(1,60,45,0,2,0,0,2,2) tri(185,83,175,60,80,130,15) tri(185,83,75,130,70,160,15) tri(185,20,25,20,20,10,15) print("SCORE "..score.sc,0,0) print("HINGH SCORE "..score.hisc,154,0) print("idriss.diba67@gmail.com",122,130) print(">",x,y) print("start",96,24) print("option",96,34) print("about",96,44) print("select x",86,84) print("PongoTIC",56,0,15,0,2) spr(3,112,128) s = s + 1 if s >= 500 then zero=DemoGame elseif btnp()~=0 then s=0 end end function DemoGame() cls() print("PongoTIC",96,44) print("Press one touch to exit demo",42,54) print("Presented by Odi Studio",56,64) circ(demo.dx,demo.dy,4,demo.c) --- rect of pong --- rect(demo.cx,demo.cy,4,20,15) rect(demo.kx,demo.ky,4,20,15) --- colision of pong --- if demo.cy >= 120 then demo.cy = 119 end if demo.cy <= 0 then demo.cy = 1 end if demo.cy >= demo.dy-demo.cc and demo.cy <= demo.dy+demo.co and demo.cx >= demo.dx-demo.co and demo.cx <= demo.dx+demo.co then demo.g = 1.20 sfx(id,"E-3") end if demo.ky >= 120 then demo.ky = 119 end if demo.ky <= 0 then demo.ky = 1 end if demo.ky >= demo.dy-demo.cc and demo.ky <= demo.dy+demo.co and demo.kx >= demo.dx-demo.co and demo.kx <= demo.dx+demo.co then demo.g =- 1.20 sfx(id,"E-3") end --- cpu --- if demo.dy >= demo.ky then demo.ky = demo.ky + 1 end if demo.dy <= demo.ky then demo.ky = demo.ky - 1 end --- cpu player --- if demo.dy >= demo.cy then demo.cy = demo.cy+1 end if demo.dy <= demo.cy then demo.cy = demo.cy-1 end --- colision of the ball --- if demo.dy >= 135 then demo.t =- 1 elseif demo.dy <= 0 then demo.t = 1 demo.c=15 end if demo.dx >= 230 then demo.g =- 1 score.sc=score.sc + 1 sfx(id,"E-4") elseif demo.dx <= 6 then demo.g = 1 demo.c=13 score.sc = 0 sfx(id,"E-3") end ----------------------- demo.dx = demo.dx + demo.g demo.dy = demo.dy + demo.t ----------------------- if btnp()~=0 then s=0 zero=menu end end function start() cls(colore) -- quadriyage -- if score.sc >= 50 then for y=-1,7 do for x=-1,16 do rectb(x*24-(anm//4)%24,y*24-(anm//4)%24,25,25,8) end end for y=-1,16 do for x=-1,29 do rectb(x*12+(anm//8)%12,y*12+(anm//8)%12,13,13,10) end end end --------------------------- print("SCORE "..score.sc,0,0) print("HINGH SCORE "..score.hisc,152,0) print("Game",96,44) print(".lv ".. lv,120,44) --- ball --- circ(dx,dy,4,c) --- rect of pong player --- rect(cx,cy,4,20,15) --- move player --- if btn(0) then cy = cy - 2 end if btn(1) then cy = cy + 2 end --- colision of pong player --- if cy >= 120 then cy = 119 end if cy <= 0 then cy = 1 end if cy >= dy-cc and cy <= dy+co and t ==- 1 - vx and cx >= dx-co and cx <= dx+co then vy = vy + 0.01 vx = vx + 0.05 g = 1 + vx t =- 1 - vx c = 15 score.sc=score.sc + 1 sfx(id,"E-3") end if cy >= dy-cc and cy <= dy+co and t == 1 + vx and cx >= dx-co and cx <= dx+co then vy = vy + 0.01 vx = vx + 0.05 g = 1 + vx t = 1 + vx c = 15 score.sc=score.sc + 1 sfx(id,"E-3") end ----------------------------------------- if cy >= dy-cc and cy <= dy+co and t ==- 1.20 - vx and cx >= dx-co and cx <= dx+co then vy = vy + 0.01 vx = vx + 0.05 g = 1 + vx t =- 1 - vx c = 15 score.sc=score.sc + 1 sfx(id,"E-3") end if cy >= dy-cc and cy <= dy+co and t == 1.20 + vx and cx >= dx-co and cx <= dx+co then vy = vy + 0.01 vx = vx + 0.05 g = 1 + vx t = 1 + vx c = 15 score.sc=score.sc + 1 sfx(id,"E-3") end --- cpu --- if score.sc >= 0 and score.sc <= 79 then rect(kx,ky,4,20,kc) if dy >= ky then ky = ky + 0.8 + vy end if dy <= ky then ky = ky - 0.8 - vy end if dy >= ky and score.sc >= 50 and score.sc <= 79 then ky = ky + 0.4 + vy end if dy <= ky and score.sc >= 50 and score.sc <= 79 then ky = ky - 0.4 - vy end --- cpu colore --- if score.sc >= 0 and score.sc <= 49 then kc = 15 elseif score.sc >= 50 and score.sc <= 79 then kc = 6 end --- cpu collision of border --- if ky >= 120 then ky = 119 end if ky <= 0 then ky = 1 end --- cpu collision of the ball --- if ky >= dy-cc and ky <= dy+co and t == 1 + vx and kx >= dx-co and kx <= dx+co then vy = vy + 0.05 vx = vx + 0.05 g =- 1 - vx t = 1 + vx c = 14 sfx(id,"E-3") end if ky >= dy-cc and ky <= dy+co and t ==- 1 - vx and kx >= dx-co and kx <= dx+co then vy = vy + 0.05 vx = vx + 0.05 g =- 1 - vx t =- 1 - vx c = 14 sfx(id,"E-3") end if ky >= dy-cc and ky <= dy+co and t == 1.20 + vx and kx >= dx-co and kx <= dx+co then vy = vy + 0.05 vx = vx + 0.05 g =- 1.20 - vx t = 1.20 + vx c = 14 sfx(id,"E-3") end if ky >= dy-cc and ky <= dy+co and t ==- 1.20 - vx and kx >= dx-co and kx <= dx+co then vy = vy + 0.05 vx = vx + 0.05 g =- 1.20 - vx t =- 1.20 - vx c = 14 sfx(id,"E-3") end end --- lv --- if score.sc >= 0 and score.sc <= 49 then lv = 1 elseif score.sc >= 50 and score.sc <= 79 then lv = 2 elseif score.sc >= 80 then lv = 3 end --- boss --- if score.sc >= 80 then spr(boss.sprite+boss.t%60//30*2,boss.x,boss.y,3,3,1,0,2,2) spr(boss.mini+boss.t%60//30*1,boss.minix,boss.miniy,3,3,1,0) spr(boss.mini+boss.t%60//30*1,boss.minixx,boss.miniyy,3,3,1,0) --- boss vari --- if boss.y >= 120 then boss.y = 119 end if boss.y <= 0 then boss.y = 1 end if boss.y >= dy-boss.cc and boss.y <= dy+boss.co and boss.x >= dx-boss.co and boss.x <= dx+boss.co then g =- g - vx vy = vy + 0.02 vx = vx + 0.05 c = 14 sfx(id,"E-3") end end boss.t = boss.t + 2 boss.minit = boss.minit + 1 --- colision of the ball vari t,dy --- if dy >= 135 then t =- 1 - vx c = 7 elseif dy <= 0 then t = 1 + vx c = 1 end if score.sc >= 50 and dy >= 135 then t =- 1.2 - vx c = 7 elseif score.sc >= 50 and dy <= 0 then t = 1.2 + vx c = 1 end --- vari g,dx --- if score.sc >= 0 and score.sc <= 49 and dx >= 230 and t ==- 1 - vx then vx = 0 dx=215 vy = 0 t =- 1 - vx g =- 1 - vx score.sc=score.sc + 3 sfx(id,"E-3") elseif score.sc >= 0 and score.sc <= 49 and dx <= 6 and t == 1 + vx then vx = 0 dx=14 vy = 0 t = 1 + vx g = 1 + vx c=13 score.sc = 0 sfx(id,"E-2") end if score.sc >= 0 and score.sc <= 49 and dx >= 230 and t == 1 + vx then vx = 0 dx=215 vy = 0 t = 1 + vx g =- 1 - vx score.sc=score.sc + 3 sfx(id,"E-3") elseif score.sc >= 0 and score.sc <= 49 and dx <= 6 and t ==- 1 + vx then vx = 0 dx=14 vy = 0 t =- 1 - vx g = 1 + vx c=13 score.sc = 0 sfx(id,"E-2") end if score.sc >= 50 and score.sc <= 79 and dx >= 230 and t ==- 1.20 - vx then vx = 0 dx=215 vy = 0 t =- 1.20 - vx g =- 1.20 - vx score.sc=score.sc + 3 sfx(id,"E-3") elseif score.sc >= 50 and score.sc <= 79 and dx <= 6 and t == 1.20 + vx then vx = 0 dx=14 vy = 0 t = 1.20 + vx g = 1.20 + vx c=13 score.sc = 0 sfx(id,"E-2") end if score.sc >= 50 and score.sc <= 79 and dx >= 230 and t == 1.20 + vx then vx = 0 dx=215 vy = 0 t = 1.20 + vx g =- 1.20 - vx score.sc=score.sc + 3 sfx(id,"E-3") elseif score.sc >= 50 and score.sc <= 79 and dx <= 6 and t ==- 1.20 + vx then vx = 0 dx=14 vy = 0 t =- 1.20 - vx g = 1.20 + vx c=13 score.sc = 0 sfx(id,"E-2") end --- vari --- if score.sc >= 50 and score.sc <= 80 then colore = 2 elseif score.sc <= 50 then colore = 0 end -- end collision of the ball -- -- variable addition -- anm=anm+1 dx = dx + g dy = dy + t --- score --- if score.sc<=score.hisc then score.hisc=score.hisc elseif score.sc>score.hisc then score.hisc=score.hisc-score.hisc score.hisc=score.hisc+score.sc end ----------------------- if btnp(5) then zero=menu end end function option() cls() print("work in progres",96,44) if btnp(5) then zero=menu end end function about() cls() print("version 1.0.0",96,44) if btnp(5) then zero=menu end end function TIC() zero() end