This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<map version="1.0" orientation="orthogonal" renderorder="left-down" width="50" height="50" tilewidth="16" tileheight="16" nextobjectid="1"> | |
<tileset firstgid="1" name="1" tilewidth="16" tileheight="16" tilecount="96" columns="16"> | |
<image source="1.png" width="256" height="96"/> | |
<terraintypes> | |
<terrain name="Grass" tile="-1"/> | |
</terraintypes> | |
<tile id="48" terrain=",,,0"/> | |
<tile id="49" terrain=",,0,0"/> | |
<tile id="50" terrain=",,0,"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package wow.game.world; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.IOException; | |
import javax.imageio.ImageIO; | |
/** | |
* Used by the TiledMap class; Handles Tileset data. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package wow.game.world; | |
import java.awt.Graphics; | |
import java.awt.image.BufferedImage; | |
import java.util.ArrayList; | |
import org.newdawn.slick.Image; | |
import wow.game.util.ImageConverter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package wow.game.world; | |
import java.util.ArrayList; | |
import org.newdawn.slick.Graphics; | |
/** | |
* Holds map-specific data. | |
* @author Xolitude (November 9, 2018) | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package wow.game.world; | |
import java.io.File; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import javax.xml.parsers.DocumentBuilder; | |
import javax.xml.parsers.DocumentBuilderFactory; | |
import javax.xml.parsers.ParserConfigurationException; |