Since I released the first version of Flashcity three weeks ago, I've been working hard to add more features and improve the game. Well, “working hard” is not quite the right description, as for the most part, the development is extremely fun and I'm having a great time working on the game. At one point though, I've run into a problem with the game data - the Actionscript code seemed to have trouble with the massive arrays that I use to store the map data. Saving the map data in external files and loading them into the game provided a solution to this, but this part was hard to figure out and required huge changes to the game code structure. Apart from this one incident though, development was surprisingly smooth and easy.
One issue that gives me headaches though is the massive amount of calculations that need to be done for various functions like checking if zones are connected to the road grid, as well as when loading the maps and preparing the data before entering the game. I managed to move the major calculations to places where they don't affect gameplay too much (like right before the yearly budget window pops up) and deploy pop up windows to inform you that something is going on, but some calculations in bigger cities and when loading huge maps and saved games can take quite a long time (as in: several seconds). In some cases the browser might even display a message suspecting that Flash player has locked up. If this happens, don't stop the player. It's not dead, it just needs some more time to finish the calculations. :-) It seems like I will need to find a better way to handle the map data so that calculations can be done quicker.
Anyway, enough tech talk. Here's a list of the major new features:
And now, if you can't wait to see the new stuff in action, head on over and check out the new features yourself. And as always, have fun with Flashcity and if you like it, spread the word.