home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1996-08-13 | 585 b | 21 lines |
- 'This example sets up a simple single coloured starfield!
- '
- 'This starfield is drawn 50 times/second, even if using a MC68000!
- '
- Screen Open 0,320,200,2,Lowres : Curs Off : Palette 0,$FFF
- Double Buffer : Autoback 0 : Hide
- '
- Extension_17_001C 200,False : Rem Reserve 200 single coloured stars!
- '
- 'Set up initial positions of each star.
- '
- For I=1 To 200
- Extension_17_003C I,Rnd(319),Rnd(199),1+Rnd(3),0
- Next I
- '
- 'A simple loop to clear, draw and update the stars!
- '
- Repeat
- Extension_17_01D8 : Extension_17_01EA : Extension_17_0248
- Screen Swap : Wait Vbl
- Until Mouse Key