How does hotline miami create shadows ?

Hi,

I am curious as to how hotline miami implements shadows ?
Attaching a screenshot for reference here

In the game each object seems to have a dynamic shadow associated with it with the light source seemingly in the top left. The dead corpses can be seen to have a shadow outline on the bottom right side. In the game when the door swings the shadow adjusts accordingly. The player character also always has a shadow on the bottom left of the sprite.

Is it simply a sprite that is the same shape as the main sprite and has been offset in a certain direction ?
or is there some higher level shader/ masking magic going on here ?

I know the game was made using gamemaker so the actual implementation in unity would be way different or maybe not even possible in the same way but any ideas would be greatly appreciated!

Might just be a separate rendering of the sprite as a dark gray, might be custom black sprites made for this purpose, or it might even be a formal shadow system, who knows.

The main differences will be to what happens between overlapping things: does the shadow from one thing cast onto another thing or do shadows only cast on the ground, questions like that.

You probably just want to experiment and see what you come up with.

Thanks for the ideas!
I do see that the shadows overlap in certain areas and appear darker where two objects cast shadows. That points towards each object having an associated shadow sprite (dark grey with low alpha).
Will experiment with this and post.

I just do it via Shader. Grass , Plants everything I want. Set angle and depth etc.

Shadow also animated like the original sprite is shadows

9771048--1400247--upload_2024-4-15_8-16-3.gif

Hey, can you share how where you able to achive this shadows?

You need to @theperson @pedromonas22 (@Dark_Seth) or reply directly to their post in order ping them because most people don’t have it set to receive every thread ping.