News:

Welcome to RetroCoders Community

Main Menu

Recent posts

#2
General Discussion / Re: Concerned...
Last post by aurel - Sep 30, 2023, 05:57 PM
oh oh...
why should anyone be concerned ?
it is just internet 
#3
General Discussion / Re: Concerned...
Last post by ZXDunny - Sep 30, 2023, 03:09 PM
Well there's me and Charlie and B+ :D
#4
General Discussion / Re: Concerned...
Last post by aurel - Sep 30, 2023, 10:41 AM
Who are this cool guys ?

#5
General Discussion / Re: Concerned...
Last post by ZXDunny - Sep 30, 2023, 09:02 AM
The discord Cory (https://gotbasic.com/) runs is pretty active at present. All the cool guys are there.
#6
FreeBasic Tips & Tricks / Re: Recursive Random Maze
Last post by johnno56 - Sep 29, 2023, 12:02 AM
Nicely done! I even liked the change of colours when a key is pressed...  Cool...
#7
FreeBasic Tips & Tricks / Re: Recursive Random Maze
Last post by CharlieJV - Sep 28, 2023, 10:42 PM
Very cool.
#8
FreeBasic Tips & Tricks / Recursive Random Maze
Last post by mysoft - Sep 28, 2023, 03:50 PM
another version of a random maze, this one made with a recursive function.



const MapWid=80,MapHei=25
'static shared as long MapWid,MapHei
'MapWid = loword(width) : MapHei = hiword(width)
redim shared as byte Mapa(MapHei,MapWid)

screenres MapWid*8,MapHei*14
width MapWid,MapHei
locate ,,0

sub LabirintoRecursivo( iLin as long , iCol as long )  
    
  static as long iDirTab(3)={-1,1, 0,0}  
  dim as long iDir=int(rnd*4)
  for iDir = iDir to iDir+3
    
    static as long iDirLin,iDirCol,iNewLin,iNewCol
    iDirLin = iDirTab(iDir and 3) : iDirCol = iDirTab((iDir+2) and 3)
    
    iNewLin = iLin+iDirLin : iNewCol = iCol+iDirCol    
    if iNewLin < 2 or iNewLin >= ((MapHei-1) or 1) then continue for
    if iNewCol < 2 or iNewCol >= ((MapWid-1) or 1) then continue for
    if Mapa(iNewLin,iNewCol)<>0 then continue for
    if Mapa(iNewLin+iDirLin,iNewCol+iDirCol)<>0 then continue for
    
    Mapa(iNewLin,iNewCol)=1 : locate iNewLin,iNewCol : print chr(177);                    
    iNewLin += iDirLin : iNewCol += iDirCol
    Mapa(iNewLin,iNewCol)=1 : locate iNewLin,iNewCol : print chr(177);                    
    
    sleep 10 : LabirintoRecursivo(iNewLin,iNewCol)          
        
  next iDir  
  
end sub

do  
  color , 0 : cls : color 1+rnd*14,1+rnd*14
  clear Mapa(0,0),0,(MapWid+1)*(MapHei+1)
  LabirintoRecursivo(2,2) : sleep
loop
#9
General Discussion / Re: Concerned...
Last post by mysoft - Sep 28, 2023, 03:41 PM
hehe also ron / stigma , got a breakdown, so i dont know when he will get back to us  :'(
#10
B.A.M / Holy moly, BAM supports "OPTIO...
Last post by CharlieJV - Sep 27, 2023, 09:57 PM
That would have saved me a whole bunch of headaches (variable name typos) over the last few years.

Still:  woohoo !!!

https://basicanywheremachine-news.blogspot.com/2023/09/option-explicit.html