Publié : lun. 30/août/2004 0:35
...
Code : Tout sélectionner
#scrw = 1024
#scrh = 768
#scrd = 32
;-------- Init all needed Stuff --------
If InitSprite() = 0 Or InitKeyboard() = 0 Or InitMouse() = 0
MessageBox_ (0,"Can't open DirectX 7 or later", "0", #MB_ICONINFORMATION|#MB_OK)
End
EndIf
If OpenScreen(#scrw,#scrh,#scrd,"0") = 0
MessageBox_ (0,"Could not open screen", "0", #MB_ICONINFORMATION|#MB_OK)
End
EndIf
CreateSprite(0,#scrw,#scrh)
Repeat
DisplaySprite(0,0,0)
x = Random (400) : y = Random (300)
x + Random (300) : y + Random (200)
x = x + 50 : y = y + 50
pos=1
StartDrawing(SpriteOutput(0))
;Rouge_Final = (Rouge_Couleur1 * Degradé + Rouge_Couleur2 * (100 - Degradé)) / 100
;zz=Random(255>>2)
DrawingMode(4)
zz=(10 * 10+ 255*2*(100 - 1)) / 100
For u= -10 To 400 Step 10
For i=-10 To 300 Step 10
z=Point (x + i,y + u)
If z>=0
;Plot (x + i, y + u, z + zz)
Circle(x+i,y+u,10,z+zz)
EndIf
Next
Next
StopDrawing()
FlipBuffers()
ExamineKeyboard()
Until KeyboardPushed(#PB_Key_Escape)
Code : Tout sélectionner
#scrw = 1024
#scrh = 768
#scrd = 32
;-------- Init all needed Stuff --------
If InitSprite() = 0 Or InitKeyboard() = 0 Or InitMouse() = 0
MessageBox_ (0,"Can't open DirectX 7 or later", "0", #MB_ICONINFORMATION|#MB_OK)
End
EndIf
If OpenScreen(#scrw,#scrh,#scrd,"0") = 0
MessageBox_ (0,"Could not open screen", "0", #MB_ICONINFORMATION|#MB_OK)
End
EndIf
CreateSprite(0,#scrw,#scrh)
Repeat
DisplaySprite(0,0,0)
x = Random (400) : y = Random (300)
x + Random (300) : y + Random (200)
x = x + 50 : y = y + 50
pos=1
StartDrawing(SpriteOutput(0))
;Rouge_Final = (Rouge_Couleur1 * Degradé + Rouge_Couleur2 * (100 - Degradé)) / 100
;zz=Random(255>>2)
DrawingMode(1)
zz=(10 * 10+ 255*2*(100 - 1)) / 100
For u= -10 To 400 Step 10
For i=-10 To 300 Step 10
z=Point (x + i,y + u)
If z>=0
;Plot (x + i, y + u, z + zz)
;Circle(x+i,y+u,10,z+zz)
Box(x+i,y+u,10,10,z+zz)
EndIf
Next
Next
StopDrawing()
FlipBuffers()
ExamineKeyboard()
Until KeyboardPushed(#PB_Key_Escape)
Code : Tout sélectionner
#scrw = 1024
#scrh = 768
#scrd = 32
;-------- Init all needed Stuff --------
If InitSprite() = 0 Or InitKeyboard() = 0 Or InitMouse() = 0
MessageBox_ (0,"Can't open DirectX 7 or later", "0", #MB_ICONINFORMATION|#MB_OK)
End
EndIf
If OpenScreen(#scrw,#scrh,#scrd,"0") = 0
MessageBox_ (0,"Could not open screen", "0", #MB_ICONINFORMATION|#MB_OK)
End
EndIf
CreateSprite(0,#scrw,#scrh)
Repeat
DisplaySprite(0,0,0)
x = Random (400) : y = Random (300)
x + Random (300) : y + Random (200)
x = x + 50 : y = y + 50
pos=1
StartDrawing(SpriteOutput(0))
;Rouge_Final = (Rouge_Couleur1 * Degradé + Rouge_Couleur2 * (100 - Degradé)) / 100
;zz=Random(255>>2)
zz=(10 * 10+ 255*2*(100 - 1)) / 100
For u= -10 To 400 Step 10
For i=-10 To 300 Step 10
z=Point (x + i,y + u)
If z>=0
;Plot (x + i, y + u, z + zz)
DrawingMode(0)
Circle(x+i,y+u,5,z+zz)
DrawingMode(4)
Box(x+i,y+u,5,5,z+zz)
EndIf
Next
Next
StopDrawing()
FlipBuffers()
ExamineKeyboard()
Until KeyboardPushed(#PB_Key_Escape)
Code : Tout sélectionner
#scrw = 1024
#scrh = 768
#scrd = 32
Global Angle,amplitude
amplitude=10
Texte.s="PSYCODE THE BEST"
;-------- Init all needed Stuff --------
If InitSprite() = 0 Or InitKeyboard() = 0 Or InitMouse() = 0
MessageBox_ (0,"Can't open DirectX 7 or later", "0", #MB_ICONINFORMATION|#MB_OK)
End
EndIf
If OpenScreen(#scrw,#scrh,#scrd,"0") = 0
MessageBox_ (0,"Could not open screen", "0", #MB_ICONINFORMATION|#MB_OK)
End
EndIf
CreateImage(100, 1024, 100)
StartDrawing( ImageOutput())
FrontColor($0,$FF,$FF)
BackColor(0, 0, 0)
DrawingMode(1)
Locate(0, 0)
DrawText(Texte.s)
StopDrawing()
For t=0 To 100
GrabImage(100, t, 0, t, 1024,1)
Next t
CreateSprite(0,#scrw,#scrh)
Repeat
DisplaySprite(0,0,0)
x = Random (400) : y = Random (300)
x + Random (300) : y + Random (200)
x = x + 50 : y = y + 50
pos=1
StartDrawing(SpriteOutput(0))
;Rouge_Final = (Rouge_Couleur1 * Degradé + Rouge_Couleur2 * (100 - Degradé)) / 100
;zz=Random(255>>2)
zz=(10 * 10+ 255*2*(100 - 1)) / 100
For u= -10 To 400 Step 10
For i=-10 To 300 Step 10
z=Point (x + i,y + u)
If z>=0
;Plot (x + i, y + u, z + zz)
DrawingMode(0)
Circle(x+i,y+u,5,z+zz)
DrawingMode(4)
Box(x+i,y+u,5,5,z+zz)
EndIf
Next
Next
StopDrawing()
For y= 0 To 100
StartDrawing(ScreenOutput())
Angle+1 :If Angle=360*10: Angle=0 :EndIf
x=1+(Sin(Angle*2*3.1415926/50)* amplitude)
DrawImage( UseImage(y), x+40, y+20*x/25+50,1024,1)
StopDrawing()
dep+1 :If dep>1024 :dep=-100:EndIf
Next y
FlipBuffers()
ExamineKeyboard()
Until KeyboardPushed(#PB_Key_Escape)