Actually, there is a similar game example made with Game Maker. I think that you can download the game example here:
https://www.rupert.id.au/tutorials/gamemaker/examples.php
By the way, are you a game developer using Small Basic(or other BASIC dialects)? I am a host of a small BASIC jam. If you are interested in using BASIC to write an entry, you are very welcome to join it!
https://itch.io/jam/jam-for-all-basic-dialects
Hello, I see. No problem!
Good luck to all your new tools!!!!!!!!!!!
By the way, the BASIC jam is in the voting stage(2 days & 15 hours left). You are very welcome to play and vote for any entry submitted to this jam.(if you have time)
https://itch.io/jam/jam-for-all-basic-dialects/entries