r/processing • • Oct 18 '20

A curious crowd

311 Upvotes

18 comments sorted by

18

u/020406code Oct 18 '20

Code: https://020406.org/processing/pde/WalkerAndStalkers.pde

I had the idea that the dynamic of the "followers" would be kind of like that of the ghosts in the old Super Mario games: they follow the "stalked" triangle with their "gaze" by pointing at it but don't start moving until it is facing away from them.

Lots of variables in the code you could mess with to create different dynamics.

3

u/umangjain25 Oct 18 '20

This is great! So the only 'ghosts' that follow you are the ones in the behind forming a certain triangle right?

2

u/020406code Oct 18 '20

Basically, yeah. If the follower is facing in a similar direction to the “leader,” then it’s allowed to follow.

1

u/umangjain25 Oct 18 '20

Okk ok now i get, thanks

11

u/theTRUEmiffqueen Oct 18 '20

this would be incredible in a 3D horror game. replace the triangles with some spooky statues or whatnot and you have a seemingly still crowd that is looking directly at you when you turn around

3

u/[deleted] Oct 18 '20

With so many of them there would be no place to hide. Everywhere you turn...

5

u/Horde77 Oct 18 '20

That's really cool - thanks for sharing. It's like a top down view of the stone statues in that Dr Who episode 'Blink'

1

u/[deleted] Oct 18 '20

I wonder how you figured out the collision management. It's amazing.

2

u/020406code Oct 18 '20

The “separation” code is mostly from Dan Shiffman: https://m.youtube.com/watch?v=mhjuuHl6qHM

He has great videos on Processing.

3

u/booblian Oct 18 '20

“Let me through, I’m a Doctor”

3

u/strudelkopf Oct 18 '20

Very cute and terrifying at the same time

2

u/messaages Oct 18 '20

This is awesome, thank you for sharing the code.

1

u/[deleted] Oct 18 '20

I don't think this is what Lissitzky meant

1

u/[deleted] Oct 18 '20

Nicely done

1

u/[deleted] Oct 18 '20

nice

1

u/bhaswar_py Oct 18 '20

Looks amazing. Great job

1

u/otiagomarques Oct 18 '20

I know a lot of people already said it but this is amazing!!

1

u/brutay Oct 19 '20

It's a top-down, 2D version of the "Boo" in Mario! Nice!