Saturday, March 20, 2010

Making a User-Targeted Open Source Videogame Map

Step 1: Find a way to dynamically display a map using url parsing.
http://mapki.com/wiki/Google_Map_Parameters:

<a href="http://maps.google.com/?q=Los%20Angeles">http://maps.google.com?q=Los Angeles</a>

Step 2: Integrate it with your application
http://wiki.developers.facebook.com/index.php/Fb:iframe


<fb:iframe src="http://maps.google.com/?q=Los%20Angeles&output=embed" smartsize="true"></fb:iframe>

Step 3: Use a php variable to customize it for each player:
<?php echo $city; ?>

End result:

View Larger Map

No comments:

Post a Comment