| |||||
| |||||
| |||||
|
|||||
.....The only Fanz' that stands by you. | |||||
![]() |
|||||
![]() Let's talk about History... (No, I won't make a speech about Queen Victoria! ;) ) Twoliner*, each week these little proggies were sent by Hebdogiciel's readers. In two lines of code, they could do whatever they wanted to, the only constraint was: FUN!... For the compo's winner: a soft, but also its own source code published in THE mag, what a fame! A twoliner, what is it??? Rules(?) C'est Pas Con (the french Fanz') is taking back this tradition, organizing a permanent competition. Your works must follow the (implicit) twoliner rules, and must run on all CPC, sure!. Send your your twoliner to me, file .bas or even in a dsk. Listing in txt files are also allowed. Remember the most important: have fun! It's organised on purpose! (*) Please use this official word only ;) |
Everybody back to his keyboard!
"Hold the twoliner please! Don't cut the
line!"
Les DEULIGNES :
Underlin (Madram) | Dazzle (Jean Buchet) | ||
Tronib (Zik) | €uro (Yann) | Raster (Plissken) | Shade (Plissken) |
Sinus (Plissken) | OFE (ofe) | Extend (Beb) | Stars (Jean Buchet) |
Trace (Beb) | JO (Phenix) | Spiral (Cloudstrife) | Txtaff (Zik) |
Msuv (Zik) | Plasmegg (OVF) | Worms (OVF) | Pan (Downwater) |
Reflex (Totoseb) | Sinusite (OVF) | Effet (jrm) | Bobs-3d (CSKI) |
25 Février 2002
10 Print"Underlin" 20 Print"By Madram" 10 MODE RND:PRINT"Yes":INK 0,4:BORDER 4:LOCATE 1,25:DIM s(384):FOR x=0 TO 127:y=(COS(x/128*PI)+1)*200:s(x)=y:s(255-x)=y:s(256+x)=y:MOVE x*4,-10,c%+1:DRAW x*3+y,x*1.55:CALL &BD19:INK c%+1,7:c%=(c%+1) MOD 3:INK c%+1,3:INK ((c%+1) MOD 3)+1,16:PRINT:NEXT:b=17
Explication : |
18 Février 2002
10 Print"Dazzle" 20 Print"By jean.buchet"
|
10 Print"Tronib" 20 Print"By Zik"
10 DEFINT a-z:MODE 1:INK 0,3:INK 1,24:INK 2,6:INK 3,15:BORDER 3:GRAPHICS PEN 3:DRAW 638,0:DRAWR 0,398:DRAWR -638,0:DRAWR 0,-398:x=100:y=10:u=2:PLOT x,y,1:GRAPHICS PEN 2:TAG:FOR i=1 TO 100:MOVE RND*620+2,RND*370+26:PRINT"O";:NEXT:TAGOFF:GRAPHICS PEN 1 20g=INKEY(8)+1:d=INKEY(1)+1:h=INKEY(0)+1:b=INKEY(2)+1:i=(g<>d)+1:j=(h<>b)+1:u=(u*i+2*(d-g)*(g XOR d))*j:v=v*j*i+2*(h-b)*(h XOR b):PLOT x,y:s=s+1:x=x+u:y=y+v:IF TEST(x,y)<>0 THEN PRINT"Score :";s:CLEAR INPUT:END ELSE GOTO 20 Explication : |
15 Février 2002
10 Print"€uro" 20 Print"By Yann"
10
input"francs/euros ou euros/francs (f/e): ";e$:if e$="f"
then dev=1
|
14 Février 2002
10 Print"Raster" 20 Print"By Plissken" 10 MODE
2:PRINT"Faire un poke &38,&c3 quand vous arretez le
programme":CALL &BB18:CLS:INK 0,0:INK 1,15:POKE &0,&FB:POKE
&38,&C9:FOR i=1 TO 24:PRINT" PLISSKEN ET SES RASTERS EN
BASIC! "+"-O-O-O-"+" PLISSKEN ET SES RASTERS EN
BASIC! ":NEXT 20 OUT &7F00,0:OUT &7F00,&54:OUT &7F00,0:OUT &7F00,&44:OUT &7F00,0:OUT &7F00,&55:OUT &7F00,0:OUT &7F00,&54:OUT &7F00,1:OUT &7F00,&4C:OUT &7F00,1:OUT &7F00,&5C:FRAME:GOTO 20 |
10 Print"Shade" 20 Print"By Plissken" 10 INK 0,0:BORDER
0:MODE 1:INK 1,3:INK 2,6:INK 3,15:FOR t=0 TO 12:PRINT"PLISSKEN"+"
VOUS PRESENTE SON DEULIGNE.YEAH":NEXT t:FOR x=0 TO 515 STEP
2:t=x*PI/52:y=(t+SIN(PI*t))*15:a=TEST(x,y+1):a=a+1:PLOT x,y+1,a:a=TEST(x,y-1):a=a+1:PLOT
x,y-1,a 20 a=TEST(x,y+2):a=a+1:PLOT x,y+2,a:a=TEST(x,y+3):a=a+1:PLOT x,y+3,a:a=TEST(x,y+4):a=a+1:PLOT x,y+4,a:a=TEST(x,y-3):a=a+1:PLOT x,y-3,a:a=TEST(x,y-4):a=a+1:PLOT x,y-4,a:NEXT |
10 Print"Sinus" 20 Print"By Plissken" 10 MODE 2:INK 0,0:INK 1,15:INK 2,3:INK 3,26:BORDER 0:p$=" PLISSKEN ":e$=" ":RESTORE 20:FOR i=2 TO 70:READ a:LOCATE i,a:PRINT p$:LOCATE i-1,a:PRINT e$:LOCATE i,a-1:PRINT e$:FRAME:NEXT:'Hey,fo bien remplir la ligne,y'a de la place,pour dire CPC!!! 20 DATA 24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22, 23,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24:'recoucou! |
13 Février 2002
10 Print"OFE" 20 Print"By OFE" 10 MODE 0:A=500:INK
0,0:INK 1,9:BORDER 0:LOCATE 1,21:PRINT"OOO FFF EEE":PRINT"O O F E":PRINT"O O FF
EE":PRINT"O O F E":PRINT"OOO F EEE":FOR I=0 TO
25:PRINT:NEXT:INK 1,26:PRINT"IS BACK ON YOUR CPC":FOR I=0 TO A:NEXT:CLS:BORDER 26:BORDER 0 20 PRINT"THE":PRINT"BASIC":FOR I=0 TO A:NEXT:CLS:PRINT"IN YOUR":PRINT"FACE !":FOR I=0 TO A:NEXT:CLS:PRINT"WITH":PRINT"SOME":FOR I=0 TO A:NEXT:CLS:PRINT"COOL":PRINT"EFFECT":FOR I=0 TO A:NEXT:CLS:PRINT"BY OFE":PRINT"YEAH !!!":FOR I=0 TO A:NEXT:CLS:GOTO 20 |
12 Février 2002
10 Print"Extend" 20 Print"By Beb" 1 MODE 2:BORDER 0:INK
0,0:INK 1,0:FRAME:a=&BC00:b=&BD00:OUT a,1:OUT B,15:OUT a,2:OUT b,50:OUT a,7:OUT b,14:OUT a,6:OUT
b,1:PRINT".please wait.":INK 1,26:FOR i=0 TO 2075:PRINT CHR$(207);:NEXT:c=&7F00:INK 0,26:OUT a,1:OUT b,50:OUT a,6:OUT
b,36:POKE &38,&C9 2 FRAME:OUT c,1:OUT c,68:OUT c,85:OUT c,93:OUT c,77:OUT c,69:OUT c,76:OUT c,92:OUT c,88:OUT c,68:OUT c,68:OUT c,68:OUT c,86:OUT c,82:OUT c,67:OUT c,75:GOTO 2 |
10 Print"Stars" 20 Print"By jean.buchet" 10 on break gosub 20 : mode 0 : dim x%(100),y%(100):for i=1 to
100:x%(i)=rnd*640:y%(i)=rnd*400:pen (i*rnd) mod 16:plot x%(i),y%(i):next:clear:run 20:mode 2:ink 0,0:ink 1,27:paper 0:pen 1:list |
09 Février 2002
10 Print"Trace" 20 Print"By Beb" 1 MODE 1:INK 0,1:INK
1,5:INK 2,14:INK 3,17:BORDER 1:DIM A(250),B(250),C(250):P=6:AM=30:FOR q=0 TO 200:FOR N=1 TO
P:A(N)=RND*80/N:B(N)=RND*2*PI:C(N)=RND*15:NEXT:FOR X=0 TO 639 STEP 4:PLOT X,0,0:Y=10:K=2*PI*X/640:FOR N=1 TO
P:Y=Y+A(N)*(1+SIN(N*K+B(N))) 2 DRAW X,Y,C(N):NEXT N,X:FOR N=1 TO P:A(N)=RND*80/N:B(N)=RND*2*PI:C(N)=RND*15:NEXT:FOR X=2 TO 639 STEP 4:PLOT X,0,0:Y=10:K=2*PI*X/640:FOR N=1 TO P:Y=Y+A(N)*(1+SIN(N*K+B(N))):DRAW X,Y,C(N):NEXT N,X:NEXT Q |
10 Print"JO" 20 Print"By Phenix" 10 BORDER 0:MODE 0:FOR a=1 TO
150:ORIGIN 210,282:GRAPHICS PEN 10:PLOT 50*COS(a),50*SIN(a):ORIGIN 310,282:GRAPHICS PEN 5:PLOT
50*COS(a),50*SIN(a):ORIGIN 410,282:GRAPHICS PEN 3:PLOT 50*COS(a),50*SIN(a):ORIGIN
260,216:GRAPHICS PEN 12:PLOT 50*COS(a),50*SIN(a) 20 ORIGIN 360,216:GRAPHICS PEN 9:PLOT 50*COS(a),50*SIN(a):NEXT:LOCATE 4,3:PRINT"SALT LAKE CITY":LOCATE 7,17:PRINT"JO 2002":PAPER 6:WINDOW 8,9,20,25:CLS:PAPER 2:WINDOW 10,11,19,25:CLS:PAPER 3:WINDOW 12,13,21,25:CLS:FOR A=1 TO 999999:NEXT
Explication : Ensuite pour le "podium", j'ai utilisé un window avec une couleur de papier suivit d'un petit cls. Et enfin un petite boucle pour ne pas voir apparaître le curseur dans la dernière fenêtre. |
07 Février 2002
10 Print"spiral" 20 Print"By cloudstrife" 10 MODE 2:A=INT(RND*25)/10:PRINT
A:X=320:Y=200
Explication : |
10 Print"Txtaff" 20 Print"By Zik" 10 c$="...engilueD":MODE 2:TAG:DEG:DEFINT a-z:OUT &BC00,6:OUT &BD00,6:FOR i=1 TO LEN(c$):a$=MID$(c$,i,1)
Explication : TXTAFF : |
10 Print"Musv" 20 Print"By Zik" 10 ENV
1,2,2,1,4,-1,2:SOUND 1,239/(2^(x/12)),10,11,1
10 ENV
1,2,2,1,4,-1,2:SOUND 1,239/(2^((x+y)/12)),10,11,1
Explication : MUSV1 :
|
06 Février 2002
10 Print"Plasmegg" 20 Print"By OVF" 1 MODE 1:BORDER 0:FOR h=0 TO 319:FOR v=0 TO 55:x=(((318+h*10.95-v*2.65)MOD 320)-160)/160:y=(((v*10+h/4)MOD 512)/10-25.6)/25.6:a=((h MOD 32)-16)/16:b=(((v*10+h/4+32)MOD 512)/10-25.6)/25.6:PLOT h*2,399-v*2,5*SQR(x*x+y*y)+2*SQR(a*a+b*b):NEXT v,h
|
04 Février 2002
10 Print"PAN SUR ENVAHISSEURS DE L'ESPACE" 20 Print"By Downwater" 10
FOR A=0 TO &3FFF |
03 Février 2002
10 Print"Worms" 20 Print"By OVF" 1 MODE 1:INK 0,0:INK 1,8:INK 2,17:INK 3,4:WINDOW 1,1,12,17:PRINT"WORMS":DEG:FOR z=0 TO 19:MOVE 10+z*32,287:DRAWR 0,112,3,0:FOR x=0 TO 6:FOR y=0 TO 55:t=TEST(x*2,239-(y+z*0.4)*2):PLOT 7+2*x+z*32+7*SIN(360*(y/32+z/16)),399-y*2,(1+x/6)*t,1-t:NEXT y,x,z
|
02 Février 2002
10 Print"Reflex" 20 Print"By tototeseb" 10 MODE
0:INK 3,26,0:PEN 1:PRINT"Reflex By Sebus":PRINT"press espace":FOR t=1 TO
RND*999:IF INKEY(47)=0 THEN PEN 4:PRINT"Tricheur !":SOUND 3,800,90:CALL &BB09:CALL &BB06:RUN:ELSE SOUND
3,t/2,1:NEXT:x=RND*498+25:y=RND*310+25:t=TEST(x,y):PLOT x,y,13:t=TIME: 20 IF INKEY(47)=0 THEN temp=(TIME-t)/300:PEN 11:PRINT"Temps:";temp:CALL &BB09:CALL &BB06:RUN:ELSE IF (TIME-t)/300>10 THEN INK 13,26,0:PEN 12:PRINT"ICI bordel !":FOR t=1 TO 1000:SOUND 3,t,1:NEXT:RUN:ELSE GOTO 20
Explication : Ajoutez à ça un peu de son...c'est du allégé, mais ça fonctionne top !... |
10 Print"sinusite" 20 Print"By OVF" 1 MODE 1:BORDER 0:INK 0,0:INK 1,24:INK 2,15:INK 3,6:LOCATE 1,10:PRINT"CPC":DEG:l=51:m=l*INT(256/l):FOR x=0 TO (m+48)*8:FOR y=0 TO 7:PLOT x*2 MOD 640,384-16*INT(x/320)+(56*COS(x*360/(m*8))+y*2+64) MOD 16,TEST(x*2 MOD l,240+y*2)*(3-INT(y/2.7)):NEXT y,x
|
01 Février 2002
10 Print"Effet de lignes" 20 Print"By jrm45" 5 mode 2:deg
Explication : |
31 Janvier 2002
10 Print"bobs-3d" 20 Print"By CSKI" 10 MODE 1:DEG:TAG:DEFINT a-z:DIM x(11,180),y(11,180):FOR a=1 to 11:READ px,py:FOR b=0 to 179:x(a,b)=(px*COS(b*2)-py*SIN(b*2))*18:y(a,b)=(py*COS(b*2)+ps*SIN(b*2))*COS(b*4)*18:NEXT b,a:WINDOW#3,1,8,1,8:WINDOW#2,1,8,9,16:k=&BC00:l=&BD00:w=2:c=51:d=64:v=214
Deulignes : Rotation de bobs en 3D, le pourquoi du comment.
Explication :
|