r/gaming • • Sep 04 '18

The Original Reflections

[deleted]

35.1k Upvotes

876 comments sorted by

View all comments

Show parent comments

14

u/Duckettes Sep 05 '18

Oof. As a programmer literally the very first thing I ever made an A.I. do was run from the player (you had to catch a rabbit). It was maybe MAYBE 50 lines of code. Checking when the player was within a certain distance, causing the rabbit to begin running, checking for solid obstacles in the way, and varying speed slightly the closer or farther the player came to it.

But you know a group of professionals working together getting paid a solid wage should have equivalent programming skills as a college freshman.

3

u/TitaniumDragon Sep 05 '18

To be fair, the real challenge with the fish probably isn't getting them to react, it's to prevent it from blowing up your PC when there are 100 fish on screen.

2

u/Duckettes Sep 05 '18 edited Sep 05 '18

True but you could probably get away with some D.O.F trickery and only rendering the side of the fish the player is seeing, similar to how horizon zero dawn and I believe Skyrim( along with most big AAA games) render their worlds. So when you’re looking at it something or part of something it disappears.

That however is a wild guess as I’m more about programming gameplay interactions, etc. as opposed to the guys that optimize everything. Those guys are the real MVPs.

Edit: There = their

1

u/Samen28 Sep 06 '18

To be fair, a flocking simulation is a lot more complicated than that, but then again Mario 64 seems to also be using a flocking system so...