If smileBASIC is anything like Petit Computer, it's not that good at handling 3D or pseudo-3D. But if you really want to use SB, I suggest looking at raycast engines in other forms of BASIC and break them down so you can apply what you've learned into SB.