Advertisement
Mysoft

Untitled

Dec 14th, 2020
2,597
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "crt.bi"
  2. #include "fbgfx.bi"
  3.  
  4. dim shared as integer iWait=1
  5. dim shared as single fDiv
  6.  
  7. const ScrWid=640,ScrHei=512
  8. const ScX=ScrWid/320,ScY=ScrHei/256
  9.  
  10. screenres ScrWid,ScrHei,,,fb.gfx_HIGH_PRIORITY 'mode 1
  11. window (0,0)-(1280,1024)
  12. color &h2C
  13.  
  14. sub PROCC(L as integer,iAng as integer)    
  15.   static as integer OX(...) = {9, 0,-9, 0}
  16.   static as integer OY(...) = {0, 9, 0,-9}    
  17.   if L=0 then      
  18.     line -step(ScX+OX(iAng shr 1),ScY),,bf
  19.     line -step(-ScX,OY(iAng shr 1)-ScY),,bf
  20.     if len(inkey$) then iWait=0
  21.     if iWait then sleep 10,1
  22.     exit sub
  23.   end if    
  24.   L -= 1
  25.   PROCC(L,(iAng+1) and 7)
  26.   PROCC(L,(iAng-1) and 7)
  27. end sub
  28.  
  29. pset(300,200)
  30. PROCC(12,0)    
  31. sleep
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement