Engine demo 20090108
Here is the new demo, Click here to try it out
There are some new stuff added to the engine.
-
Animated tiles I’m going to try and have some buildings animated to get some movement. Though this will probably add some to the memory usage, so I will probably add some options that lets you turn it of. I’v added a oil station just to let you have a quick look.
-
Game save Now when you build your city it is being saved to the server, so if you reload the page then your city should still be there. This is a first test and I know there are some bugs.
-
Minimap I’v added a first version of the minimap, it will look much better when I add the GUI stuff to it.
The biggest part in this update is the saving part, I’m using a query class so there wont be as much requests to the server, and all mapdata is in bytes which will save bandwidth. Here is a example of a save with 50 buildings:
-
AwAAAAMA/gADAP4AAwD/AAMA/AADAPwAAwD9AAMA/voDAP76AwD++gMA/vwDAP7+AwD+/wMA/f8DAP4BAwD9AQMA/gIDAAMGAwACCAMAAQoDAAAMAgf/AQIH/wICB/4DAgr+/QIK//4CBP//Agn8/wIJ/f4CA/39AgYAAQIGAQICBgEDAgsCBAIGAgUCDAIGAggBBwIKAAcCCQEGAgMBBQIIAQQCCAADAgIAAgIH/wMCBwAEAgIABQIIAAYCCP8FAgL/BAIBAgcCBQEJAgIBCAIFAAsCBgAKAgMACQ==
This data is just being sent when you start the game, so I will be able to let the users have a lot of buildings! What the server gets depends on how much the user adds to the query, just a single building looks something like this:
-
BQoAAQIHBgwAAg==
Great success!
(If you like explotions, scroll down and look at the old demo. It includes bombs and some other buildings)
Comments(1)


