RTS mechanics devlog - Unity3D Episode 5
229 views · Published 5 March 2016 · 1:30 · Indexed 17 October 2026
Channel: KaletheQuick · 2016 · Gaming
Most of the time today was spent cleaning up the code. Many functions that were in a top level player interface that directly gave units positions to go to were moved to an intermediary structure called the Platoon Commander (to be named SFC Johnson). These have been around since maybe episode 2 and it was intended that they handle most of the unit management and waypoint systems. In addition to taking in orders from the player. Another change that was made (lots of behind the scenes stuff) is that now when the player issues an order, the game does not cycle through every unit in existence to check if it is selected. If a platoon is selected, then it gives the order there, and if not it creates a platoon out of whatever is currently selected. Ill be making a video detailing how the General system works so that if you want to make it you can. It won't be a line by line tutorial, but it will give you a very good idea on what is going on. Ill also be shining it up and selling it as a template on the unity asset store.