Jeśli chcesz wziąć udział w dyskusjach na forum - zaloguj się. Jeżeli nie masz loginu - poproś o członkostwo.
Vanilla 1.1.4 jest produktem Lussumo. Więcej informacji: Dokumentacja, Forum.
10 GRAPHICS 9
20 P=0:C=0
30 FOR X=0 TO 79
40 COLOR C:PLOT X,0:DRAWTO X,191
45 P=P+1": IF P=5 THEN P=0: C=C+1
50 NEXT X
60 FOR B=0 TO 15
70 POKE 712,B+16
80 FOR D=1 TO 300:NEXT 300
90 NEXT B:GOTO 60
BYTE P=0
BYTE C=0
BYTE X,B,D
PROC DEMO(
GRAPHICS(9)
FOR X=0 TO 79
DO
COLOR=C PLOT(X,0) DRAWTO(X,191)
P==+1
IF P=5 THEN P=0
C==+1
FI
OD
X=79
FOR B=0 TO 15
DO
POKE (712,B*16)
FOR D=1 TO 300
DO
OD
D=300
OD
B=15
RETURN
BYTE X,B
BYTE P=[0],C=[0] ; INITIALIZE P AND C WITH 0
BYTE RTCLOCK=20,COLOR4=712 ; SET ADDRESSES OF RTCLOCK AND COLOR0
PROC DEMO()
GRAPHICS(9)
FOR X=0 TO 79 DO
COLOR=C
PLOT(X,0) DRAWTO(X,191)
P==+1
IF P=5 THEN
P=0
C==+1
FI
OD
DO ; START OF INFINITY LOOP
FOR B=0 TO 15 DO
COLOR4=B LSH 4 ; SAME AS POKE 712,B*16 IN BASIC
RTCLOCK=0 ; SAME AS POKE 20,0
WHILE RTCLOCK < 50 DO OD ; WAIT 1 SEC. (IN PAL SYSTEM)
OD
OD
RETURN
BYTE X,B
BYTE P=[0],C=[0] ; INITIALIZE P AND C WITH 0
BYTE RTCLOCK=20,COLOR4=712 ; SET ADDRESSES OF RTCLOCK AND COLOR0
PROC DEMO()
GRAPHICS(9)
FOR X=0 TO 79 DO
COLOR=C
PLOT(X,0) DRAWTO(X,191)
P==+1
IF P=5 THEN
P=0
C==+1
FI
OD
DO ; START OF INFINITY LOOP
FOR B=0 TO 15 DO
; COLOR4=B LSH 4 ; SAME AS POKE 712,B*16 IN BASIC
; Below this same in ML
[$AD B ; LDA B
$0A ; ASL
$0A ; ASL
$0A ; ASL
$0A ; ASL
$8D COLOR4] ; STA COLOR4
RTCLOCK=0 ; SAME AS POKE 20,0
WHILE RTCLOCK < 50 DO OD ; WAIT 1 SEC. (IN PAL SYSTEM)
OD
OD
RETURN
; butterfly by michael mitchell
; 01/20/85
PROC DEMO2()
CARD A,B,C,D,X,Y,J,K,COL,I,Q
Graphics(11)
Poke(710,0)
Color=00
A=1 B=1 C=1 D=1
X=Rand(70)+1
Y=Rand(190)+1
J=Rand(50)+1
K=Rand(190)+1
For I=1 TO 9400
DO
Plot(X,Y)
Drawto(J,K)
Plot(J,Y)
Drawto(X,K)
X==+A
Y==+B
J==+C
K==+D
Q=Rand(50)
IF Q>40 THEN
COL==+1
FI
IF COL>14 THEN
COL=1
FI
COLOR=COL
IF X>=79 THEN A=-A X==+A FI
IF J>=79 THEN C=-C J==+C FI
IF J<=0 THEN C=-C J==+C FI
IF X<=0 THEN A=-A X==+A FI
IF Y>=191 THEN B=-B Y==+B FI
IF K>=191 THEN D=-D K==+D FI
IF K<=0 THEN D=-D K==+D FI
IF Y<=0 THEN B=-B Y==+B FI
OD
RETURN
DUCATI:
1. CO MA ACTIONN, CZEGO BY NIE MAIL NP. GFA BASIC ?IF A and B and C and... THEN
DUCATI:
2. CO DAJE PROGRAMOWANIE OBIEKTOWE ? NAJLEPIEJ NA PROSTYCH PRZYKLADACH... BO ZATRZYMALEM SIE NA "PROCEDURALNYM"... :)