hello, I'm bringing here a link to RDC (Richard Dick Clark) in-detailed Tutorial "let's build a roguelike" although from 2010 and a bit old and outdated, however, it brings the basics of freeBASIC game dev, which is valid till this day... there is also a downloaded version of the tutorial made with a "wiki on a stick" HTML file, which you can also find on freeBASIC main community site...
https://users.freebasic-portal.de/rdc/tutorials.html (https://users.freebasic-portal.de/rdc/tutorials.html)