Jump to content
  • Advertisement
Sign in to follow this  

Class Projects

This topic is 2354 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I just wanted to post a couple of class projects here to get some feedback.

This project was my first attempt at a flocking algorithm. I used the Unity wiki boids script as a starting reference and went from there. You can change the weighting of behaviors in the web build. Q and A will increase or decrease “Randomness” respectively. Likewise W and S will control “Cohesion”, E and D will control “Alignment” and R and F will control “Separation” which starts out heavily weighted as there are no colliders on the boids. The boids will also fly towards and then around three way-points.

This project was an attempt at basic AI behaviors using Unity's NavMesh component. I was given behaviors from another student that he wanted included into his game. This build is very primitive and I have moved the camera back so you can view the behaviors bettor. The enemies will change color based on there current state. Blue is idle, red is attacking, black is retreating, yellow is patrolling, and green is wandering. If you face an enemy and press Q you will “attack” them, their health will decrease and once their health gets low enough they will retreat, if far enough away their health will regenerate and they will attack once again. One enemy will start out wandering and the other will start out patrolling, if either “see” you they will attack. Be warned some walls do not have colliders and you will then fall for ever, I don't think there is a key to reset the scene and I am a little pressed for time at the moment.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!