Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

nice! How did you do the shadows? Mind to share the code? (of the shadows)

(+1)

Get two points by projecting each of a wall line's end points outwards an arbitrary large distance (anything bigger than the screen) from the player's position. Get another two points by projecting a small distance (however much of the wall you want to actually see). Draw a polygon with the four points you found. Repeat for every wall. Use a solid fill color (not transparent or something) so they all look like one cohesive mass of shadow.

genius! thanks!