Locations/Maps
From FragoriaWiki
(Difference between revisions)
Line 58: | Line 58: | ||
<html> | <html> | ||
- | + | <title>Fragoria Map</title> <link rel="stylesheet" href="/maps/documentation/javascript/examples/default.css" /> <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script> <script> | |
- | + | var moonTypeOptions = { | |
- | + | getTileUrl: function(coord, zoom) { | |
- | + | var normalizedCoord = getNormalizedCoord(coord, zoom); | |
- | + | if (!normalizedCoord) { | |
- | < | + | return null; |
- | function | + | } |
- | + | var bound = Math.pow(2, zoom); | |
- | + | return '/maptiles/' + | |
- | + | zoom + '_' + normalizedCoord.x + '_' + | |
- | + | normalizedCoord.y + '.png'; | |
- | + | }, | |
- | + | tileSize: new google.maps.Size(256, 256), | |
- | + | maxZoom: 5, | |
- | + | minZoom: 1, | |
- | + | radius: 1738000, | |
- | + | name: 'Fragoria' | |
- | + | }; | |
- | + | ||
- | + | var moonMapType = new google.maps.ImageMapType(moonTypeOptions); | |
- | + | ||
- | + | function initialize() { | |
- | + | var Fragotown = new google.maps.LatLng(-73, 13); | |
- | var | + | var mapOptions = { |
- | function initialize() { | + | center: Fragotown, |
- | + | zoom: 5, | |
- | + | streetViewControl: false, | |
- | + | mapTypeControlOptions: { | |
- | + | mapTypeIds: ['moon'] | |
- | + | } | |
- | + | }; | |
- | + | ||
- | + | var map = new google.maps.Map(document.getElementById('map_canvas'), | |
- | + | mapOptions); | |
- | + | map.mapTypes.set('moon', moonMapType); | |
- | + | map.setMapTypeId('moon'); | |
- | + | } | |
- | + | ||
- | map = new google.maps.Map(document.getElementById( | + | // Normalizes the coords that tiles repeat across the x axis (horizontally) |
- | map.mapTypes.set(' | + | // like the standard Google map tiles. |
- | map.setMapTypeId(' | + | function getNormalizedCoord(coord, zoom) { |
- | } | + | var y = coord.y; |
- | </script> | + | var x = coord.x; |
- | <div style="background-image:url('http://i12.servimg.com/u/f12/14/91/21/86/backgr10.jpg');" id="map_canvas"> | + | |
- | </div> | + | // tile range in one direction range is dependent on zoom level |
+ | // 0 = 1 tile, 1 = 2 tiles, 2 = 4 tiles, 3 = 8 tiles, etc | ||
+ | var tileRange = 1 << zoom; | ||
+ | |||
+ | // don't repeat across y-axis (vertically) | ||
+ | if (y < 0 || y >= tileRange) { | ||
+ | y = (y % tileRange + tileRange) % tileRange; | ||
+ | } | ||
+ | |||
+ | // repeat across x-axis | ||
+ | if (x < 0 || x >= tileRange) { | ||
+ | x = (x % tileRange + tileRange) % tileRange; | ||
+ | } | ||
+ | |||
+ | return { | ||
+ | x: x, | ||
+ | y: y | ||
+ | }; | ||
+ | } | ||
+ | </script> | ||
+ | <center> | ||
+ | <div style="width: 800px; height: 800px;background-image:url('http://i12.servimg.com/u/f12/14/91/21/86/backgr10.jpg');" id="map_canvas"> | ||
+ | </div> | ||
+ | </center> | ||
</html> | </html> | ||
[[Category:First Steps in the Game]] | [[Category:First Steps in the Game]] |
Revision as of 09:52, 17 March 2015
There you are many exciting places and cities that you will visit in the land of fragoria. Furthermore, fragoria not only holds lands but also hidden dungeons that occupies aggressive monsters in different maps.
Followings are List of Maps and dungeons present in fragoria land:
(according to monster lvls from low lvl maps to high lvl)
Navy Yard |
---|
↓ |
Murom |
↓ |
Fragoville |
↓ |
Middle Land |
↓ |
Fragotown |
↓ |
South Stronghold |
↓ |
Western Land |
↓ |
Sea Forest |
↓ |
Severogorye/Northern Mountain |
↓ |
Frostville |
↓ |
Frost Plateau |
Other Maps/Location in Fragoria: