Yes, you can use chkchr$() to check what character is at a certain position in the console. It does indeed work like that. I rely upon that for a lot of other redraw functions elsewhere but it's not working too well here.
By the above I mean: I'm just doing an overlap check using chkchr$() on the literally-drawn stuff. Someone elsewhere gave me the idea to put it all into a two-dimensional array first.
Here's the bottom screen. I am starting to think that it'd be a better idea to abstract this out into a 2 dimensional array and do the checks there before drawing at all. That's just going to take another rewrite.
Good idea! The one published project I have is a heavily-commented 'button tester/input example' type thing - I always start by writing these things for myself but then clean them up and add tons of comments, in case they'd help anyone else out. I might do the same for arrays and push/pop/shift/unshift (as you can tell, I'm pretty new to SmileBASIC).
Thanks!! Yep, it's from scratch. For each room, I'm basically defining a random (within limits) upper-left coordinate, then a lower-right (based on the upper-left) and then drawing each wall and filling the room.
Well, for instance, you could do something like:
have a 'redraw' part in the main @loop that checks to see how many steps the snake has taken and what length it should be, and then 'remove' the ones that are 'stale'. I know there's a built-in counter in smilebasic but in this case you'd probably just want to set one yourself: just do like c=0 before the @loop, and then do a C + 1.