Raycasting, how does it work for tilemaps?, and How do I make the player see to an x distance

Raycasting, how does it work for tilemaps?, and How do I make the player see to an x distance(example: darkness after 4 feet(can’t see past))

I want to make a game, that is quite scary, yet I don’t know how to do raycasting with tilemaps nor how to make the player see to an x distance, how do I do that?

1 Like

https://arcade.makecode.com/45935-66617-77306-17791 something like this?
(it’s an extension btw)

Use the light Extension.

1 Like