Show HN: Listen To The Ocean – JavaScript game w. AI-generated sprites
neontomo.com
neontomo.com
Looks like most time is spent computing styles and parsing CSS.
The creator should check out this video https://www.youtube.com/watch?v=bEoLCZzWZX8&
TL;DW: Use CSS transform instead of left/top/width.
Also might be better if some of the trash specifically targets fish instead of just dropping randomly. Like you determine the trajectory of the trash and fish and spawn it so it will hit it normally. Didn't seem to do that at all once I got down to only a few fish left, things just got way easier for me because there was less targets to protect.
Clever idea though, and the mechanics are nice and smooth.
I will not be taking questions at this time.
It’s certainly true the rocket trash successfully kills my fishes though.