Boid Simulation Code

So, finally, here’s the code I wrote for my Boid simulator in C# using the XNA framework. Keep in mind: not everything is optimized, documented, and so on and so forth. The code is probably ugly in general, and I’m not using the best C# coding practices. I understand how to code 80% of C# because it’s in the same family of languages as Java, C++, etc., but I don’t know the true ins and outs. If you are a C# aficionado with 1337 C# skillz or any other programming skillz for that matter and would like to pass on helpful information pertaining to coding in C#, why I would be very glad to listen and absorb your expertise.

I suppose I should release this software under some license. So I will. Not to screw you, the end-user, over but to generally absolve me anything detrimental that might happen to you, your loved ones, your pets, and your computer if this software horrendously goes wrong and say, kills you instead of performing the flocking algorithm. It’s a very slim, minute and improbable probability that such an event will happen but I can do nothing about the aberrant possibilities that may bring about these circumstances. So you are thusly forewarned.

The Boid Simulation code for XNA/C# is released under the “Courne Supremacy Licensing Agreement.” By clicking on the download link below you agree to everything I said in the second paragraph of this blog post:

You can download my boid simulation code here.

Oh, now you’re complaining that you can’t run it. Well…you might also need to get the Microsoft XNA Framework Redistributable 1.0 Refresh download.

Or you can get the XNA Game Studio Express 1.0 Refresh and start check out the project workspace and modify the code and get yo learn on.

Happy flocking.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Slashdot

Leave a Reply