Verfasst: 11.02.2006 18:32


Das deutsche PureBasic-Forum
https://www.purebasic.fr/german/
Code: Alles auswählen
b=9601
Dim A(b)
For i=0 To b
A(i)=Random(222)+33
Next
InitSprite()
OpenScreen(800,600,8,"")
While GetAsyncKeyState_(27)=0
StartDrawing(ScreenOutput())
i=b/2
While i
j=i*2
x=j+1
DrawText(i%80*10,i/8,Chr(A(j)),A(x)<<8,0)
a=Random(250)
If i>79
If a&1
A(x)=A(j-79)
EndIf
Else
A(x)=a
EndIf
i-1
Wend
StopDrawing()
FlipBuffers()
Wend
Code: Alles auswählen
; 293 Zeichen
b=9601
Dim A(b)
For i=0 To b
A(i)=Random(222)+33
Next
InitSprite()
OpenScreen(800,600,8,"")
While GetKeyState_(27)
StartDrawing(ScreenOutput())
i=b/2
While i
j=i*2
x=j+1
DrawText(i%80*10,i/8,Chr(A(j)),A(x)<<8,0)
a=Random(250)
If i>79
If a&1
A(x)=A(j-79)
EndIf
Else
A(x)=a
EndIf
i-1
Wend
StopDrawing()
FlipBuffers()
Wend
Code: Alles auswählen
GetKeyState_(27)&$80=0