Skip to content

Instantly share code, notes, and snippets.

Tyler Davis davist1025

Block or report user

Report or block davist1025

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@davist1025
davist1025 / Test.tmx
Created Nov 11, 2018
Test Map TMX File
View Test.tmx
<?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,"/>
View Tileset.java
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.
View TiledLayer.java
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;
View TiledMap.java
package wow.game.world;
import java.util.ArrayList;
import org.newdawn.slick.Graphics;
/**
* Holds map-specific data.
* @author Xolitude (November 9, 2018)
*
View TiledParser.java
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;
You can’t perform that action at this time.