Wednesday, September 17, 2014
Refactoring and Other Stuff
Sam and I made some smaller changes to deal with some concerns. The grid has been altered so that units are in in squares, rather than on lines. Units now slide around the grid rather than appearing at their next spot. The biggest noticeable change is an "inspector" of sorts. When hovering the mouse over players and enemies, some information about them (name, health, ap, stats, etc.) appears on the screen. My big change for the week was a complete refactoring of the pathfinding and surrounding systems. I was planning on bringing attacking into its own script, but it needing information that only pathfinding held. I couldn't bring myself to have attacking mess with pathfinding so I moved some stuff around. There is now a class that holds information about the world. Sizes and, most importantly, the grid which holds the state of the world. I also rewrote the pathfinding to use the grid rather than waypoints. That required that I write a minimum binary heap and priority queue because C# doesn't have any. So, a lot of the back end has been rewritten or altered to use the new class of world information, and to use the grid rather than custom structures.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment