Massive Battle

Introduction
Massive Battle is the beginnings of a dream I've always had to experience something that simulates a massive battle (think final scene in Lord of the Rings). Unfortunately, computers aren't quite powerful enough to accurately simulate thousands of soldiers in real-time, but I thought I'd give it a try myself and see what kind of numbers I could get using some simple algorithms.
At the moment of this writing, I only had archers programmed. They are essentially just some circles that move towards the designated enemy until in range, and then begin firing at some specified fire rate. The arrow target is predetermined through a little randomness. I think they do an alright job of playing the archer role, although the boids are still pretty stupid when it comes to getting into the best position. Hopefully this will be improved on as time comes.
How to Use It
To use my program, I'd recommend browsing through all of the classes and looking at the constants and members. They all have pretty self-explanatory names. Just play around with different settings and if you're adventurous, try writing some new logic to control them.
Future Plans
I hope to work on Melee fighters next, but getting that to work realistically and efficiently is quite a task from past experience. I've provided both the XNA project and executable below in case some of
you visiting the site don't have XNA installed. If
you have any questions, email me at
dan@digitseven.com.
DOWNLOAD MassiveBattle HERE
DOWNLOAD MassveBattleEXE HERE
Last Update: 8/20/10