Long time no see
Have not update the blog in a while, been focusing on the game stuff. Here is a new video though, as you can see a lot of the gui is changed. I decided to remake the gui so it would work on different screen resolutions, so I started making my own GUI library with buttons/scrolls etc. Don’t know why I just diddn’t use flex.. But anyways, this is what I got this far.
The first part shows the city view and how you make a new building. Some buildings are “special” and can only be built once per city thats why some of them are marked as red to the right. All changes made to the city is saved to the server, I remade this part as well, no more base64.. Now I’m just sending it as raw bytes (4 first byte = cityid:int, 5 byte = number:byte of downgrades, 6 byte = number:byte of new buildings, 7 byte:byte = number of upgrades then loop the rest of bytes) to the server and make the map changes there. And when you load a city you get the city data as raw bytes. This saves some CPU for both the server and user. When the update has been made the server sends a “new events” XML back to the user.
The second part shows the world map where you can see other players cities, this is also loaded from the server but uses XML.
The last part of the video just shows some bombeffects. How it would look if someone attacts your city with bombs.
Comments(2)