Porting can be fun

DevsMonstersThe neat thing about porting game logic from one system to another is that you get a lot of game functionality for very little development time.  For example, today I managed to squeeze Developers, Monsters, and Quests into MMORPG Tycoon 2, simply by porting them over from the MMORPG Tycoon 1 systems to the maturing MMORPG Tycoon 2 systems.  Most of the work involved integrating “Regions” into the code, and converting the old 2D positions and velocities into the new 3D positions and velocities.

And since I was just adapting existing code to a new home, rather than designing and writing it from scratch, a lot of functionality went in very quickly today.  You can now place Quest-Givers (which those who tested MMORPG Tycoon 1.1 will be quite familiar with), each of which creates five quests within the region, each of which can result in monster placements.  Developers rush around the world, entering and exiting via graveyards, activating buildings and placing monsters.  (In this screenshot, the little red cubes represent monsters;  they’re in the process of being dragged across the region to their quest zone.  My cursor is the white one, the blue ones belong to my AI-driven developer employees)

Sorry for the dull terrain in this screenshot;  the quests are currently entirely randomly generated, and so I couldn’t choose where to put the monsters, and I had to race to keep up with the AI developers and try to get a shot before they’d finished placing the monsters.

Theoretically I’ve also ported and re-enabled the player-monster combat code, but I haven’t actually tested that yet;  I’m sure that there’ll be a few bugs in it, particularly as I haven’t hooked up anything to set a correct combat level on the monsters yet!

Anyhow, the last big things left on the “get the game as playable as MMORPG Tycoon 1.1 was” list now are to test player-enemy combat, to implement roads, and to hook up the UI (there are still big functional bits of UI which are missing;  particularly something to tell you how much cash you have, and controls for speeding and slowing the passage of time).  And finally, I’ll need some sort of zoomed-out map functionality.   With all that, I should finally be back at approximately the state where MMORPG Tycoon version 1.1 was at, before I stopped development on that and moved to a 3D world.

Making stuff pretty, of course, is lower priority;  I won’t be spending a lot of time on that until after getting the basics of the game in place.  So I’m going to have to get used to looking at those blue and red cubes for the characters and monsters.  ;)