- _Title "Flash Demo test" 'b+ 2022-02-13   how complicated can it be? 
- ' sample program to test FlashDemo 
-   
- '_Title "Drawlandscape Parallax test" 'started 2019-03-27 
- 'test if can get end of landscape level to start for big looping background 
- '2019-03-27 a more gentle adjustment back to Mountain starting height for 
- 'more seamless connect of back end to front 
- '2019-03-27 start this file with parallax drawing test 
-   
-   
-     rate  As Single 'number of pixels per frame added to le (leading edge)
- nLevels = 6 
-   
- LoadLandscape 
- scapeWidth  = _Width(- para (1)- .handle )
- scapeHeight  = _Height(- para (1)- .handle )
-   
- ' flash Demo code added =================================================================================== 
- ' flash Demo end of code added ============================================================================ 
-   
- '' Try Steve simple little ditty =========================================================================== 
- 'Color 15 + 16 'blinking bringht white 
- 'Locate 25, 1: Print "This text will always remain on the screen."; 
- 'Color 15 'plain bright white text 
-   
- 'View Print 1 To 24 ' doesn't seen to do anything ???? 
- '' ========================================================================================================== 
-   
-         If-  para (- i )- .le  + 800 >-  scapeWidth  Then
 
-             te = scapeWidth - para(i).le 
-             _PutImage (0, 0)-(- te ,-  scapeHeight ),-  para (- i )- .handle , 0, (- scapeWidth  --  te , 0)-(- scapeWidth ,-  scapeHeight )
 
-             _PutImage (- te , 0)-(800,-  scapeHeight ),-  para (- i )- .handle , 0, (0, 0)-(800 --  te ,-  scapeHeight )
 
-   
-             _PutImage (0, 0)-(800,-  scapeHeight ),-  para (- i )- .handle , 0, (- para (- i )- .le , 0)-(- para (- i )- .le  + 800,-  scapeHeight )
 
-   
-         para(i).le = para(i).le - para(i).rate 
-         If-  para (- i )- .le  < 0 Then-  para (- i )- .le  =-  scapeWidth 
 
-     t = t + 1 
-   
-     xmax = 800 * 3.25: ymax = 600 
-     hdl& = 1 
-     para (- hdl& )- .handle  = _NewImage(- xmax ,-  ymax , 32)
-   
-         midInk 0, 0, 128, 128, 128, 200, i / ymax 
-     'the land 
-     startH = ymax - 200 
-     rr = 70: gg = 70: bb = 90 
-     For-  mountain  = 1 To-  nLevels 
 
-             para (- mountain )- .handle  = _NewImage(- xmax ,-  ymax , 32)
-             _Dest-  para (- mountain )- .handle 
 
-         Xright = 0 
-         y = startH 
-             ' upDown = local up / down over range, change along Y 
-             ' range = how far up / down, along X 
-             upDown  = (Rnd * .8 - .4) * (- mountain  * .5)
-             range = Xright + rand%(15, 25) * 2.5 / mountain 
-             If-  range  >-  xmax  - 50 Then-  range  =-  xmax  - 50
 
-             lastx = Xright - 1 
-             For-  x  =-  Xright  To-  range  'need less flat tops
 
-                 test = y + upDown 
-                 test2 = y - upDown 
-                 If Abs(- test  --  startH ) < .13 *-  startH  Then-  y  =-  test  Else-  y  =-  test2: upDown  = -- upDown 
 
-                 Line (- lastx ,-  y )-(- x ,-  ymax ), ,-  BF  'just lines weren't filling right
 
-                 lastx = x 
-             Xright = range 
-         x = lastx + 1 
-         dy = (startH - y) / 50 'more gentle adjustment back to start of screen 
-             y = y + dy 
-             Line (- lastx ,-  y )-(- x ,-  ymax ), ,-  BF  'just lines weren't filling right
 
-             lastx = x 
-             x = x + 1 
-         rr = rand%(rr - 15, rr): gg = rand%(gg - 15, gg): bb = rand%(bb - 25, bb) 
-         startH = startH + mountain * rand%(2, 10) 
-         para(mountain).le = xmax - 800 
-         para(mountain).rate = mountain * .5 
-   
-     rand%  = Int(Rnd * (- hi%  --  lo%  + 1)) +-  lo% 
-   
- Sub-  midInk  (- r1% ,-  g1% ,-  b1% ,-  r2% ,-  g2% ,-  b2% ,-  fr## )
 
-     Color _RGB(- r1%  + (- r2%  --  r1% ) *-  fr## ,-  g1%  + (- g2%  --  g1% ) *-  fr## ,-  b1%  + (- b2%  --  b1% ) *-  fr## )
 
-   
-         Color &HFFFFFFFF, &H00000000 
-         beenHere = -1 
-