Purebasic Amiga Demo?

Just starting out? Need help? Post your questions and find answers here.
Swos2009
Enthusiast
Enthusiast
Posts: 112
Joined: Sat Nov 08, 2008 8:19 pm

Re: Purebasic Amiga Demo?

Post by Swos2009 »

It is possible to do this

like positions of starfields inside the rainbow bars mean starfields can go under 400 to 700.

Code: Select all

; Generate the stars
For i=0 To num_stars-1    
  x(i,2)=Random(1000)+10  ; X
    y=Random(400,700)  ; Positions Start y=400 n Finsh y =700
   x(i,3)=Random(5)+1    ; Speed 
next 
instead of doing this

Code: Select all

; Generate the stars
For i=0 To num_stars-1     
   x(i,2)=Random(1000)+10  ; X
   y(i,2)=Random(570)+ 1 ; Y
   x(i,3)=Random(5)+1    ; Speed
Next
here idea

Hiya all = Text Scrollings
______ = Rainbow Bar
* = Starfields

Code: Select all

                                           Hiya all and welcome                                     
______________________________________________________________
 *          *                   *                     *
   *                *                   *                       *
 *          *                 *              *           *
______________________________________________________________
PureLust
Enthusiast
Enthusiast
Posts: 477
Joined: Mon Apr 16, 2007 3:57 am
Location: Germany, NRW

Re: Purebasic Amiga Demo?

Post by PureLust »

Code: Select all

y = 400 + Random(300)  ; Positions Start y=400 n Finsh y =700
[Dynamic-Dialogs] - create complex GUIs the easy way
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)
Swos2009
Enthusiast
Enthusiast
Posts: 112
Joined: Sat Nov 08, 2008 8:19 pm

Re: Purebasic Amiga Demo?

Post by Swos2009 »

Thanks PureLust :mrgreen: and that just what I want :)
Post Reply