A basic ray casting project : Sprite-Based Raycaster Please refer to the tutorial below: Move : up / down arrow key. Rotate : left / right arrow key. continue press the s key to show the player position.
https://www.en.scratch-wiki.info/wiki/Raycaster