Moreover, the map perfectly follows the vehicle's movement. The result is very impressive: there is both an increased frame rate (from 15-20 fps to 40 fps) *and* a decreased CPU usage. All I had to do was to add a child on the main Sprite, copy the JavaScript functions to ActionScript, and adapt them according to the API's minor differences. It was easy to replace the JS API it only took a few hours. So, the release of the Google Maps API for Flash was truly happy news for me. Unfortunately, it's 'success' relied on the troublesome wmode=transparent Flash parameter, and on having to call JavaScript from Flash 20 times a second (certainly not a typical thing to do). When I tried to add in more natural courses and realized how difficult it was, I decided to test out using the real roads of Google Maps as a backdrop.Īt the time of that decision, the Google Maps API was only available in Javascript - so I actually had to find a way to overlay the Flash toy on top of a Javascript map and synchronize them. In my second release of the toy, I added in wide courses to make it a bit more fun (and less crash-prone). My original 2D Driving Simulator is a Flash toy that simulates car parking and trailer movement. And it is using the brand-new Flash API which Google released two weeks ago. With the power of Google Maps, you can drive around the world without having to worry about spending money on expensive gas. I'm delighted to write as a guest on this blog.ĢD Driving Simulator on Google Maps is a personal project of mine. Hi! I'm Katsuomi Kobayashi, a developer from Osaka, Japan.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |