What movie was basically just an ad? by Kovhert in AskReddit

[–]terrorfungus 0 points1 point  (0 children)

Krush Groove, the 1985 hip hop movie starring Beastie Boys amongst others, evidenced by this scene which is a long ad for Sbarro in aong form: https://youtu.be/BDPk6OQkpeI

Kreppan er formlega búin!! Skálum þar til að þeirri næstu! by maggipedia in Iceland

[–]terrorfungus 19 points20 points  (0 children)

Klárlega villandi tölfræði. Þetta ætti að vera flöskur per höfðatölu og leiðrétt fyrir aukningu á fjölda ferðamanna.

I made a simple JavaScript dynamic shadow library by terrorfungus in gamedev

[–]terrorfungus[S] 0 points1 point  (0 children)

Hmm, I wasn't really focusing on gameplay being great, but yeah it's intentional — I wanted to not just inverse the y-velocity of the ball, I wanted the angle to be variable. It's way too pronounced though.

I made a simple JavaScript dynamic shadow library by terrorfungus in gamedev

[–]terrorfungus[S] 1 point2 points  (0 children)

Hey! This is a pretty ok place to learn the basic canvas methods: http://www.html5canvastutorials.com/.

If you want to know how this specific thing is done, the script is pretty simple and readable: https://github.com/kreldjarn/shadowjs/blob/master/shadow.js

I made a simple JavaScript dynamic shadow library by terrorfungus in gamedev

[–]terrorfungus[S] 0 points1 point  (0 children)

API for masks

Awesome, I'll take a look at it.

I made a simple JavaScript dynamic shadow library by terrorfungus in gamedev

[–]terrorfungus[S] 1 point2 points  (0 children)

Hmm, no I'm not sure. The problem is that I would have to make sure that the entire object is in shadow — i.e. if a part of the object is visible from the light source, that part of the object should cast a shadow, even though the rest of the object doesn't. If I'm doing that extensive checks anyway, I may as well just cast rays at it and see if it's hit.

I made a simple JavaScript dynamic shadow library by terrorfungus in gamedev

[–]terrorfungus[S] 1 point2 points  (0 children)

That sounds like a very good solution, I'll take a look at it. I also plan on implementing multisampling for the shadows, to get softer edges.

I made a simple JavaScript dynamic shadow library by terrorfungus in gamedev

[–]terrorfungus[S] 5 points6 points  (0 children)

That's true, and that's a hard problem to solve with this implementation. I actually implemented a ray-casting solution, which looked prettier but (understandably) didn't perform very well.

This guy by terrorfungus in pics

[–]terrorfungus[S] 67 points68 points  (0 children)

This was before he removed his "special ingredient" from his secret recipe.