This is a demonstration of unit pathfinding and movement/steering strategies used in RTS games. To see a playable recreation of the original Command and Conquer, please go here.
Units use A* to plot a path and avoid collision using a 'soft collision' radius. They also ask static units to move aside. You can read more about the algorithm on my blog.
Switch on "DEBUG MODE" to see how it works. This is still a work in progress. Any comments or feedback (including bugs), is appreciated.
If you liked this demo, please let me know by clicking on the Like button below and leaving me a comment. Please share this page with your friends so that they can see it too.
DISCLAIMER: This project is only intended as a technical proof of concept to demonstrate the basic working elements of an RTS game in HTML5. No commercial use is intended. All images and sounds used are from C&C - Tiberian Dawn and are property of the original game creators.