root/trunk/UiucMap.java

Revision 3, 0.6 kB (checked in by dpaola2, 4 years ago)

old pathways project added

Line 
1 /**
2  * UiucMap.java
3  *
4  * This is a very specific implementation of a TiledMap which is perfect for
5  * making a map out of images in the form
6  *
7  * images/uiucmap/(row as a letter)(column as a non-padded number)
8  *
9  * scale of 1.31 m/px.  (source for scale: 2803px=3.67km)
10  *
11  * For the first time in code, "real" coordinates are in meters.
12  */
13
14 import java.awt.geom.*;
15 import java.net.*;
16
17 public class UiucMap extends TiledMap {
18
19         public UiucMap() {
20                 super(15, 13, 200, 200, AffineTransform.getScaleInstance(1.31,1.31));
21                 setTreeUri("images/uiucmap/");
22                 setExtension("png");
23         }
24 }
Note: See TracBrowser for help on using the browser.