Skip to content

Adding new sprite layers

Geoffrey Benson edited this page Nov 29, 2013 · 3 revisions

Create a new directory in assets/spritesheets. (example: assets/spritesheets/malarkio_shirt) Inside that directory, create a .spec file.

Example .spec file for a sprite layer:

{
	"sheets": [
		{
			"name": "Female Orc Body",
			"layer": "body",
			"credit_name": "madmarcel",
			"credit_url": "http://opengameart.org/users/madmarcel",
			"license": "Creative Commons Attribution-ShareAlike 3.0 Unported",
			"file_path": "female_orcwalkcycle_body.png",
			"actions": [{
				"name": "walking",
				"directions": [{
					"name": "up",
					"frames": [
						[0, 0],
						[1, 0],
						[2, 0],
						[3, 0],
						[4, 0],
						[5, 0],
						[6, 0],
						[7, 0],
						[8, 0]
					]
				}, {
					"name": "left",
					"frames": [
						[0, 1],
						[1, 1],
						[2, 1],
						[3, 1],
						[4, 1],
						[5, 1],
						[6, 1],
						[7, 1],
						[8, 1]
					]
				}, {
					"name": "down",
					"frames": [
						[0, 2],
						[1, 2],
						[2, 2],
						[3, 2],
						[4, 2],
						[5, 2],
						[6, 2],
						[7, 2],
						[8, 2]
					]
				}, {
					"name": "right",
					"frames": [
						[0, 3],
						[1, 3],
						[2, 3],
						[3, 3],
						[4, 3],
						[5, 3],
						[6, 3],
						[7, 3],
						[8, 3]
					]
				}]
			}]
		}
	]
}
Clone this wiki locally