Mint

<!--
	dynamic mint maps
	@author Penguin-Pal (http://toontown.wikia.com/wiki/User:Penguin-Pal)
-->
<!--
	To-do List:
	* get locomotive room tiling
	* fix the locomotive room's proportions
	* add cogs to rooms. add "mint-svg-cog-supervisor" class (or something like that) to allow customizing the cog on the supervisor's position
	* add animated goons
	* add important objects to rooms (go though rooms by the order of the room ids)
	* once all rooms are completed, add custom floor patterns and go through the rooms and see what needs to be done (go though rooms by the order of the room ids)
-->
<style type="text/css">
body {
	margin: 0;
}
svg {
	border: 1px solid orange;
	zoom: 3;
}
.mint-svg-obj-floor {
	fill: url(#mint-svg-ptn-0);
}
.mint-svg-obj-floor2 {
	fill: url(#mint-svg-ptn-1);
}
.mint-svg-obj-stone {
	fill: #ccc;
}
.mint-svg-obj-rmborder {
	stroke: #ccc;
	stroke-width: 0.1;
}
.mint-svg-obj-minborder {
	fill: none;
	stroke: #999;
	stroke-width: 0.1;
}
.mint-svg-bhv-nonzero {
	fill-rule: evenodd;
}
</style>
<svg width="400" height="300" id="mint-svg">
	<defs>
		<!--
			==========================================
			# patterns
			==========================================
		-->
		<!-- ordinary floor -->
		<pattern id="mint-svg-ptn-0" width="1" height="1" x="0" y="0" patternUnits="userSpaceOnUse">
			<rect width="1" height="1" x="0" y="0" fill="#ccc" />
			<image xlink:href="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr/2wBDAQICAgICAgUDAwUKBwYHCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgr/wAARCAAgACADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDrNG8JaPD4Xtra10y2EotIvnEIGSAPap9J8P6XYSlJLC3YSvk4hHBq5ossUWjWzPKCotkOfwqwLd3MgM24MwKADG2gfQZJpOixJmTS7f5h18hT/SsS8Gj6dK1ndrZt5gUhBbAEKW6nj6V0LCY9FBAU9e/Fcp40tpYYhf3EO12fYGyOQAD/AEpMFuavlfZtIs7mBcFbdRjHU7RWhozTy2a3M4+Zzu2g8AVmXUrjwxDcC1kkxao6qpPykKOTj61paHBLBpccU0vmNjJOMdaYdC4wBABz6/WsbxraNfaSttGgb96CxI6LyDWjqWqW2lRo84JMj4VVHNVbC7j1yedEjkRYmUZYfe47UAkz/9k=" width="1px" height="1px" x="0" y="0" opacity="0.5" />
		</pattern>
		<!-- brown stone floor floor -->
		<pattern id="mint-svg-ptn-1" width="1" height="1" x="0" y="0" patternUnits="userSpaceOnUse">
			<rect width="1" height="1" x="0" y="0" fill="wheat" />
			<image xlink:href="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYG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pattern id="mint-svg-ptn-2" width="1" height="1" x="0" y="0" patternUnits="userSpaceOnUse">
			<rect fill="lime" width="0.6" height="0.75" x="0" y="0" opacity="1" />
			<image xlink:href="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr/2wBDAQICAgICAgUDAwUKBwYHCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgr/wAARCABAAEADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD4/wBB1rWpNKRpbq4ZVGBP5jYPC/L17Z/X8h9a1pSi/wBpTdPvLOx3cnn27DHtWZpTFLSOKO3dpHXcdpBBQKDwBznAbJ78fizUri9twkMVlJJEqbomM4wF3HgAnjnNc6Ul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aRdG5jy0bkedCO+DwRnvjj3Ga7yHXdN1AifTrxmkGDsEsUTDj1Z1IP0Hb8amS5a1rFQvKje5oi48w7dhUfxIZA/5HAyPwFNuJo9O0yae5/wBSkLPFGf4ccfL6DJHHr06Gqcmr21m+dSvsMvRvtUchb85WYfTBH8qpalqzao4VVkECsGYysS8zDoWz0A7Dt/OG+Wdy0uaFjn9VZ5UsYB8pW4yeep2NxXV/DO7SX4j6N5vlLJ/a9ttTByQ0gJ29flHA5Pp1rBm061N7AwySZiRk9Pkatr4YxhPiNoVuJyPI1S1WMFeXXzcnkDnBPUnPNdUakZPQ5pQlFalJJBBZxxyyEoYyygLu2kqP5kAe36VB4m8JSeJ7fSbzSNZsB5OmtFcx3Nz5bLJ58zYwR/dZT+NJOL8aaoS0nchj8iwn5RgfNuxznHTt/JNP+3iGCBdPuZf3fzqbYJ5fzMcFj9/rnPvjtk40fdhfuaVfemkZtn8MtTglG/XdJLDqP7QH+FajfDa8uEAl1LSJMDADXYPH4irKW9xFO0LJeLG7LIYRGTG7jK5PoQpP8q0ZLeCaAxpBIOmQIyDwfpVTlFq7QQTXupmLbfDmaxuknS/0dMf887lQfwwK0G8N3RYINWsOO32n/wCtWlHZRMu7a5JYnmPGefTHH07UgsCGHEnBOAUxjknr3riq4iF1odVOhNp6mbdeHLmIxSyXls4ST51imy2CpH9RV34eNs+Jek+e8h8nU7XazJkFQwzz2wAABg9e3GW3UTKpCwzsQWIXyyAM+h75/SneCo9Qj8W6M7iQol5B5peLYF+Zc/XHr/8AqrSjUkveIq04v3T/2Q==" width="1px" height="1px" x="0" y="0" />
		</pattern>
		<!-- conveyor -->
		<pattern id="mint-svg-ptn-3" width="1" height="1" x="0" y="0" patternUnits="userSpaceOnUse">
			<image xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wIDDBkE0r5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h46O7b756N2nbFiElm5ubrK2tnRrDDb/7jYeUXNu4Bsj29jZN07BYLpGyoa5dFlJRglARk8MD7r1/F4Fhc23MxfNPuBJeuNH5l156iR/+6Cbi3/6rf2mLoqDq5gVPFnOapuFkkXfR0j073FY1xjRsrK85MjJStFYgpOJ4vmBvb8+Vmnn+gbzv/bUsy8cgSAjm8znnzp3rmZww3fk051Ofjx9xFDGZTHjyySddau44Tamj7ulQZwnL+YxvfOOfkqUxtm1RwpIvlhjruM+6rpkvcv4/TcGQpHgzHQQAAAAASUVORK5CYII=" width="1px" height="1px" x="0" y="0" />
			<animate attributeType="XML" attributeName="x" from="0" to="1" dur="2s" repeatCount="indefinite" />
		</pattern>
		<!--
			==========================================
			# grdients
			==========================================
		-->
		<!-- a gradient for stairs -->
		<linearGradient id="mint-svg-grad-0" x1="0" y1="0" x2="0" y2="1">
			<!-- #555 and #aaa also go well -->
			<stop offset="0%" stop-color="#777" />
			<stop offset="100%" stop-color="#999" />
		</linearGradient>
		<!--
			==========================================
			# clips
			==========================================
		-->
		<!-- shover -->
		<clipPath id="mint-svg-clip-0">
			<rect width="4" height="1" x="12.75" y="0" />
		</clipPath>
		
		<!--
			==========================================
			# objects
			==========================================
		-->
		<!-- a single stair -->
		<g id="mint-svg-obj-0">
			<rect width="2" height="0.3" fill="url(#mint-svg-grad-0)" />
		</g>
		<!-- 5 stairs -->
		<g id="mint-svg-obj-1">
			<use xlink:href="#mint-svg-obj-0" x="0" y="0" />
			<use xlink:href="#mint-svg-obj-0" x="0" y="0.3" />
			<use xlink:href="#mint-svg-obj-0" x="0" y="0.6" />
			<use xlink:href="#mint-svg-obj-0" x="0" y="0.9" />
			<use xlink:href="#mint-svg-obj-0" x="0" y="1.2" />
		</g>
		<!-- 10 stairs -->
		<g id="mint-svg-obj-2">
			<use xlink:href="#mint-svg-obj-1" x="0" y="0" />
			<use xlink:href="#mint-svg-obj-1" x="0" y="1.5" />
		</g>
		<!-- metal box small -->
		<g id="mint-svg-obj-3">
			<rect width="1" height="1" fill="url(#mint-svg-ptn-2)" transform="scale(0.5, 0.75)" />
		</g>
		<!-- gear tower quarter -->
		<g id="mint-svg-obj-4">
		<!--
			should have ended with: "h -2 z"
			but instead used: "l -2.5 0.5 z"
			this way the quarters' gear-center point is streached to the opposite side, which "stacs" the quarters rather than making them overlap
			otherwise, there is a pixel gap between the quarters
		-->
			<path width="2" height="2" d="M0 0 h 0.275 v 0.55 l 0.509 0.2082 l 0.3889 -0.3889 l 0.3889 0.3889 l -0.3889 0.3889 L 1.45 1.725 h 0.55 v 0.275 l -2.5 0.5 z" />
		</g>
		<!-- gear tower gear -->
		<g id="mint-svg-obj-5">
			<use xlink:href="#mint-svg-obj-4" x="2" y="0" />
			<use xlink:href="#mint-svg-obj-4" x="2" y="2" transform="rotate(90 3 3)" />
			<use xlink:href="#mint-svg-obj-4" x="0" y="2" transform="rotate(180 1 3)" />
			<use xlink:href="#mint-svg-obj-4" x="0" y="0" transform="rotate(270 1 1)" />
		</g>
		<!-- spinning gear tower gear -->
		<g id="mint-svg-obj-6">
			<animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 2 2" to="360 2 2" dur="16s" repeatCount="indefinite" />
			<use xlink:href="#mint-svg-obj-5" />
		</g>
		<!-- ordinary metal box -->
		<g id="mint-svg-obj-7">
			<rect width="1" height="1" fill="url(#mint-svg-ptn-2)" />
		</g>
		<!-- 4 ordinary metal boxes in a cluster -->
		<g id="mint-svg-obj-8">
			<use xlink:href="#mint-svg-obj-7" x="0" y="0" />
			<use xlink:href="#mint-svg-obj-7" x="0" y="1" />
			<use xlink:href="#mint-svg-obj-7" x="1" y="0" />
			<use xlink:href="#mint-svg-obj-7" x="1" y="1" />
		</g>
		<!-- conveyor animation -->
		<g id="mint-svg-obj-9">
			<rect width="4" height="1" x="0" y="0" fill="url(#mint-svg-ptn-3)" />
		</g>
		<!-- single shover -->
		<g id="mint-svg-obj-10">
			<rect width="1" height="1" x="0" y="0" fill="url(#mint-svg-ptn-4)" />
		</g>
		<!-- shover animation path -->
		<path id="mint-svg-obj-11" d="M0 0 v 1 z" />
		<!--
			==========================================
			# room templates (appear in several rooms)
			==========================================
		-->
		<!-- corner 6x6 room -->
		<g id="mint-svg-rmtemplate-0">
			<rect class="mint-svg-obj-floor" width="6" height="6" x="0" y="0" />
			<line class="mint-svg-obj-rmborder" x1="2" y1="6" x2="4" y2="6" />
		</g>
		<!-- room with goons/battle and stairs on the left -->
		<g id="mint-svg-rmtemplate-1">
			<!--<polygon class="mint-svg-obj-floor2" points="0,6 0,12, 6,12 6,18, 12,18 12,12 18,12 18,6 12,6 12,0 6,0 6,6" x="0" y="0" />-->
			<!--<path class="mint-svg-obj-floor2" d="M0 6 V 12 H 6 V 18 H 12 V 12 H 18 V 6 H 12 V 0 H 6 V 6 Z" x="0" y="0" />-->
			<path class="mint-svg-obj-floor2" d="M0 6 v 6 h 6 v 6 h 6 v -6 h 6 v -6 h -6 v -6 h -6 v 6 z" x="0" y="0" />
			<path class="mint-svg-obj-stone mint-svg-bhv-nonzero" d="M6 5.25 v 2.75 h 4 v -5.75 h -0.75 v 3 z M6.75 6 v 1.25 h 2.5 v -1.25 h -2.5 z" />
			<path class="mint-svg-obj-stone mint-svg-bhv-nonzero" d="M6 10 v 4 h 6 v -4 z M6.75 10.75 v 2.5 h 4.5 v -2.5 z" />
			<!--<path class="mint-svg-obj-minborder" d="M6 6 h 4 v -3.75" x1="6" y1="6" x2="10" y2="6" />-->
			<use xlink:href="#mint-svg-obj-2" x="10" y="2" />
			<polyline class="mint-svg-obj-minborder" points="6,6 10,6 10,2.25" x1="6" y1="6" x2="10" y2="6" />
			<line class="mint-svg-obj-rmborder" x1="0" y1="8" x2="0" y2="10" />
		</g>
		<!-- giant gear obstacle room / 4 battles room / final room with shelves -->
		<g id="mint-svg-rmtemplate-2">
			<path class="mint-svg-obj-floor" d="M0 6, l 6 -6 h 6 l 6 6 v 6 h -18 z" />
			<use xlink:href="#mint-svg-obj-2" x="0" y="6" />
			<line class="mint-svg-obj-minborder" x1="2" y1="6" x2="18" y2="6" />
			<line class="mint-svg-obj-rmborder" x1="18" y1="8" x2="18" y2="10" />
		</g>
		<!-- doom room -->
		<g id="mint-svg-rmtemplate-3">
			<path class="mint-svg-obj-floor mint-svg-bhv-nonzero" d="M0 6, h 6 l 12 -6 l 12 6 h 6 v 6 h -6 l -12 6 l -12 -6 h -6 z M12 9 l 6 -3 l 6 3 l -6 3 z" fill="red" />
			<path class="mint-svg-obj-minborder" d="M12 9 l 6 -3 l 6 3 l -6 3 z" fill="red" />
			<line class="mint-svg-obj-rmborder" x1="0" y1="8" x2="0" y2="12" />
		</g>
		<!--
			==========================================
			# rooms
			==========================================
		-->
		<!-- starting room -->
		<g id="mint-svg-rm-0">
			<rect class="mint-svg-obj-floor" width="6" height="6" x="0" y="2" />
			<rect class="mint-svg-obj-floor" width="2" height="2" x="2" y="0" />
		</g>
		<!-- corridor with stairs L -->
		<g id="mint-svg-rm-1">
			<rect class="mint-svg-obj-floor" width="2" height="6" x="0" y="0" />
			<rect class="mint-svg-obj-floor" width="2" height="2" x="2" y="4" />
			<rect class="mint-svg-obj-floor" width="2" height="6" x="4" y="4" />
			<use xlink:href="#mint-svg-obj-1" x="4" y="8" />
			<line class="mint-svg-obj-rmborder" x1="4" y1="10" x2="6" y2="10" />
		</g>
		<!-- corridor with stairs R -->
		<g id="mint-svg-rm-2">
			<rect class="mint-svg-obj-floor" width="2" height="6" x="4" y="0" />s
			<rect class="mint-svg-obj-floor" width="2" height="2" x="2" y="4" />
			<rect class="mint-svg-obj-floor" width="2" height="6" x="0" y="4" />
			<use xlink:href="#mint-svg-obj-1" x="0" y="8" />
			<line class="mint-svg-obj-rmborder" x1="0" y1="10" x2="2" y2="10" />
		</g>
		<!-- straight room with 4 lvl 11+ -->
		<g id="mint-svg-rm-3">
			<rect class="mint-svg-obj-floor" width="6" height="12" x="0" y="0" />
			<line class="mint-svg-obj-rmborder" x1="2" y1="12" x2="4" y2="12" />
		</g>
		<!-- corner room with 4 lvl 11+ -->
		<g id="mint-svg-rm-4">
			<use xlink:href="#mint-svg-rmtemplate-0" />
		</g>
		<!-- cross-shaped room (goons) -->
		<g id="mint-svg-rm-5">
			<use xlink:href="#mint-svg-rmtemplate-1" />
		</g>
		<!-- cross-shaped room (battle) -->
		<g id="mint-svg-rm-6">
			<use xlink:href="#mint-svg-rmtemplate-1" />
		</g>
		<!-- cross-shaped room (supervisor) -->
		<g id="mint-svg-rm-7">
			<use xlink:href="#mint-svg-rmtemplate-1" />
		</g>
		<!-- gear tower room -->
		<g id="mint-svg-rm-8">
			<!-- room template -->
			<use xlink:href="#mint-svg-rmtemplate-0" />
			<!-- smll boxes - first row -->
			<use xlink:href="#mint-svg-obj-3" x="5" y="0" />
			<use xlink:href="#mint-svg-obj-3" x="5" y="0.75" />
			<use xlink:href="#mint-svg-obj-3" x="5" y="1.5" />
			<use xlink:href="#mint-svg-obj-3" x="5" y="2.25" />
			<use xlink:href="#mint-svg-obj-3" x="5" y="3" />
			<use xlink:href="#mint-svg-obj-3" x="5" y="3.75" />
			<use xlink:href="#mint-svg-obj-3" x="5" y="4.5" />
			<use xlink:href="#mint-svg-obj-3" x="5" y="5.25" />
			<!-- smll boxes - second row -->
			<use xlink:href="#mint-svg-obj-3" x="5.5" y="0" />
			<use xlink:href="#mint-svg-obj-3" x="5.5" y="0.75" />
			<use xlink:href="#mint-svg-obj-3" x="5.5" y="1.5" />
			<use xlink:href="#mint-svg-obj-3" x="5.5" y="2.25" />
			<use xlink:href="#mint-svg-obj-3" x="5.5" y="3" />
			<use xlink:href="#mint-svg-obj-3" x="5.5" y="3.75" />
			<use xlink:href="#mint-svg-obj-3" x="5.5" y="4.5" />
			<use xlink:href="#mint-svg-obj-3" x="5.5" y="5.25" />
			<rect fill="red" width="1.2" height="6" x="4" y="0" opacity="0" /><!-- <-- no longer needed -->
			<!-- spinning gear -->
			<use xlink:href="#mint-svg-obj-6" x="0.5" y="1" transform="scale(-1,1) translate(-5,0)" fill="navy" />
			<use xlink:href="#mint-svg-obj-6" x="0.5" y="1" fill="#888" />
			<!-- entrance border -->
			<line class="mint-svg-obj-rmborder" x1="2" y1="6" x2="4" y2="6" />
		</g>
		<!-- obstacle room with giant gear -->
		<g id="mint-svg-rm-9">
			<use xlink:href="#mint-svg-rmtemplate-2" />
		</g>
		<!-- 4 battle room with stairs -->
		<g id="mint-svg-rm-10">
			<use xlink:href="#mint-svg-rmtemplate-2" />
		</g>
		<!-- supervisor battle in the shelves room -->
		<g id="mint-svg-rm-11">
			<use xlink:href="#mint-svg-rmtemplate-2" />
		</g>
		<!-- doom room (goons) -->
		<g id="mint-svg-rm-12">
			<use xlink:href="#mint-svg-rmtemplate-3" />
		</g>
		<!-- doom room (battle) -->
		<g id="mint-svg-rm-13">
			<use xlink:href="#mint-svg-rmtemplate-3" />
		</g>
		<!-- doom room (supervisor) -->
		<g id="mint-svg-rm-14">
			<use xlink:href="#mint-svg-rmtemplate-3" />
		</g>
		<!-- acid room -->
		<g id="mint-svg-rm-15">
			<path d="M0 4 l 4 -4 h 4 l 4 4 v 4 l -4 4 h -4 l -4 -4 z" fill="#304e36" />
			<rect class="mint-svg-obj-floor" width="2" height="1.5" x="4" y="10.5" />
			<!--<use xlink:href="#mint-svg-obj-1" transform="scale(0.75) rotate(270 9.25 ?)" x="8" y="14.28125" />-->
			<use xlink:href="#mint-svg-obj-1" transform="scale(0.75) rotate(270 9 15.25)" x="8.25" y="14.25" /><!-- units might require a remake - they /just/ work -->
			<line class="mint-svg-obj-rmborder" x1="4" y1="12" x2="6" y2="12" />
		</g>
		<!-- shover room -->
		<g id="mint-svg-rm-16">
			<!-- floor -->
			<path d="M0 0 h 30 v 2 h -2 v 2 h -2 v -2 h -26 z" class="mint-svg-obj-floor" />
			<!-- goons -->
			<!-- metal ramps -->
			<use xlink:href="#mint-svg-obj-8" x="16.75" y="0" />
			<use xlink:href="#mint-svg-obj-8" x="10.75" y="0" />
			<!-- conveyor -->
			<use xlink:href="#mint-svg-obj-9" x="12.75" y="0" />
			<!-- shovers (from front to back) -->
			<!-- [-1, 1, 2.5, 4] <- initial value in svg testing -->
			<g x="12.75" y="0" clip-path="url(#mint-svg-clip-0)">
				<rect width="1" height="1" x="15.75" y="-1" fill="#ddd">
					<animateMotion dur="6s" begin="-5" repeatCount="indefinite">
						<mpath xlink:href="#mint-svg-obj-11" />
					</animateMotion>
				</rect>
				<rect width="1" height="1" x="14.75" y="-1" fill="#ddd">
					<animateMotion dur="6s" begin="-3.5" repeatCount="indefinite">
						<mpath xlink:href="#mint-svg-obj-11" />
					</animateMotion>
				</rect>
				<rect width="1" height="1" x="13.75" y="-1" fill="#ddd">
					<animateMotion dur="6s" begin="-0.5" repeatCount="indefinite">
						<mpath xlink:href="#mint-svg-obj-11" />
					</animateMotion>
				</rect>
				<rect width="1" height="1" x="12.75" y="-1" fill="#ddd">
					<animateMotion dur="6s" begin="-2" repeatCount="indefinite">
						<mpath xlink:href="#mint-svg-obj-11" />
					</animateMotion>
				</rect>
			</g>
			<!-- entrance border -->
			<line class="mint-svg-obj-rmborder" x1="26" y1="4" x2="28" y2="4" />
		</g>
		<!-- box stomper room -->
		<g id="mint-svg-rm-17">
			<rect class="mint-svg-obj-floor" width="6" height="6" x="0" y="0" />
		</g>
		<!-- grated floor room -->
		<g id="mint-svg-rm-18">
			<path d="M0 4 l 4 -4 h 4 l 4 4 v 4 l -4 4 h -4 l -4 -4 z" fill="#000" />
			<!--<path class="mint-svg-obj-floor-locomotive" d="M4 1 v -1 h 2 v 1 h 2 l 3 3 v 4 l -3 3 v 1 h -2 v -1 h -2 l -3 -3 v -4 z" />-->
			<!--<path class="mint-svg-obj-floor-locomotive" d="M 1.1083 4 v -4 l 0.8917 -0.8917 v -0.8917 h 2 v 0.8917 h 2 l 0.8917 0.8917 v 4 L 12 4 v 4 L 8 10.1083 v 0.8917 z" /> -->
			<path class="mint-svg-obj-floor-locomotive" d="M1.7832 8 v -4 L 4 1.7832 L4 0 h 2 v 1.7832 h 2 l 2.2168 2.2168 v 4 l -2.2168 2.2168 L 8 12 h -2 v -1.7832 h -2 z" fill="#ddd" />
			<line class="mint-svg-obj-rmborder" x1="6" y1="12" x2="8" y2="12" />
		</g>
	</defs>
	<g class="mint-svg-canvas" transform="scale(2) translate(0, 0)">
		<use xlink:href="#mint-svg-rm-0" x="4" y="42" />
		<use xlink:href="#mint-svg-rm-2" x="6" y="32" />
		<use xlink:href="#mint-svg-rm-3" x="8" y="20" />
		<use xlink:href="#mint-svg-rm-2" x="10" y="10" />
		<use xlink:href="#mint-svg-rm-4" x="12" y="4" />
		<use xlink:href="#mint-svg-rm-1" x="20" y="0" transform="rotate(90 23 5)" />
	</g>
</svg>
<script type="text/javascript">
$mint = {
	d: {
		w: 400,
		h: 300
	},
	json: null,
	fn: {}
}
/* ============================== *\
	# functions
\* ============================== */
// clear svg layer
$mint.fn.clear = function() {
	var a = document.querySelector(".mint-svg-canvas");
	while (a.children.length > 0) {
		a.removeChild(a.children[0]);
	}
}
// add room
$mint.fn.addRoom = function(svg, id, x, y, r) {
	var a = svg.querySelector(".mint-svg-canvas"),
		use = document.createElementNS("http://www.w3.org/2000/svg", "use");
	use.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", "#mint-svg-rm-" + id);
	use.setAttributeNS(null, "x", x);
	use.setAttributeNS(null, "y", y);
	if (r) {
		use.setAttributeNS(null, "transform", "rotate(" + r + ")");
	}
	a.appendChild(use);
}
// add room
$mint.fn.drawMap = function(svg, type, id) {
	var a = svg.querySelector(".mint-svg-canvas"),
		map = $mint.json.mints[type][id],
		rm = $mint.json.rooms;
	for (var i in map.rooms) {
		var curr = map.rooms[i];
		console.info("rm[curr.roomid] -> ", rm[curr.roomid]);
		$mint.fn.addRoom(
			svg,
			curr.roomid,
			curr.x,
			curr.y,
			$mint.fn.calcRotateTransform(rm[curr.roomid], curr.x, curr.y, curr.r)
		);
	}
	$mint.fn.resetCanvasTransform(svg);
	$mint.fn.newCanvasTransform(svg, map);
}
// get value for roate() transform
$mint.fn.calcRotateTransform = function(room, x, y, r) {
	console.log("Applying rotation for room " + room.id + " of " + r + " deg");
	console.log(arguments);
	if (r != 0) {
		var newR = r == 180 ? 179.99 : r, // 180 doesnt work
			newX = x + room.d.w / 2,
			newY = y + room.d.h / 2,
			output = newR + " " + newX + " " + newY;
		console.log("calcRotateTransform returned: (" + output + ")");
		return output;
	} else {
		return null;
	}
}
// reset wrapper transform
$mint.fn.resetCanvasTransform = function(svg) {
	var a = svg.querySelector(".mint-svg-canvas");
	a.setAttributeNS(null, "transform", "");
}
// apply transform on wrapper
$mint.fn.newCanvasTransform = function(svg, floor) {
	var a = svg.querySelector(".mint-svg-canvas"),
		mintD = $mint.d,
		transform = "",
		scale,
		translate = [];
	if (mintD.w != floor.w && mintD.h != floor.h) {
		// the image may be scaled up / down
		if (floor.w / mintD.w >= floor.h / mintD.h) {
			// width is proportionally dominant
			//scale = mintD.w + ", " + (mintD.w * floor.h / mintD.h);
			scale = mintD.w / floor.w;
			translate[0] = 0;
			translate[1] = (mintD.h - floor.h * scale) / 2;
		} else {
			// height is proportionally dominant
			//scale = (mintD.h * floor.w / mintD.w) + ", " + mintD.h;
			scale = mintD.h / floor.h;
			translate[0] = (mintD.w - floor.w * scale) / 2;
			translate[1] = 0;
		}
	} else {
		scale = 1;
		translate[0] = mintD.w - floor.w;
		translate[1] = mintD.h - floor.h;
	}
	transform += " translate(" + translate[0] + ", " + translate[1] + ")";
	transform += " scale(" + scale + ")";
	a.setAttributeNS(null, "transform", transform);
}
/*
function foo() {
var a = document.querySelector('[transform*="rotate"]');
t = a.getAttribute("transform").replace(/rotate\((\d*)\)/, function(m, m0) {
return "rotate(" + (m0 < 360 ? Number(m0) + 1 : 1) + ")";
});
t = a.setAttributeNS(null, "transform", t);
}
*/
</script>
<script type="text/javascript">
$mint.json = {
	"rooms": [
		{
			"roomid": 0,
			"type": "room",
			"name": "Starting Room",
			"path": "#mint-svg-rm-0",
			"d": {
				"w": 6,
				"h": 10,
				"e": 180
			}
		},
		{
			"roomid": 1,
			"type": "connector",
			"name": "Corridor with stairs L",
			"path": "#mint-svg-rm-1",
			"d": {
				"w": 6,
				"h": 10,
				"e": 180
			}
		},
		{
			"roomid": 2,
			"type": "connector",
			"name": "Corridor with stairs R",
			"path": "#mint-svg-rm-2",
			"d": {
				"w": 6,
				"h": 10,
				"e": 180
			}
		},
		{
			"roomid": 3,
			"type": "room",
			"name": "Straight room with 4 lvl 11+",
			"path": "#mint-svg-rm-2",
			"d": {
				"w": 6,
				"h": 12,
				"e": 180
			}
		},
		{
			"roomid": 4,
			"type": "room",
			"name": "Corner room with 4 lvl 11+",
			"path": "#mint-svg-rm-4",
			"d": {
				"w": 6,
				"h": 6,
				"e": 270
			}
		},
		{
			"roomid": 5,
			"type": "room",
			"name": "Cross-shaped room (goons)",
			"path": "#mint-svg-rm-5",
			"d": {
				"w": 18,
				"h": 18,
				"e": 90
			}
		},
		{
			"roomid": 6,
			"type": "room",
			"name": "Cross-shaped room (battle)",
			"path": "#mint-svg-rm-6",
			"d": {
				"w": 18,
				"h": 18,
				"e": 90
			}
		},
		{
			"roomid": 7,
			"type": "room",
			"name": "Cross-shaped room (supervisor)",
			"path": "#mint-svg-rm-7",
			"d": {
				"w": 18,
				"h": 18,
				"e": 90
			}
		},
		{
			"roomid": 8,
			"type": "room",
			"name": "Spinning gear tower",
			"path": "#mint-svg-rm-8",
			"d": {
				"w": 6,
				"h": 6,
				"e": 0
			}
		},
		{
			"roomid": 9,
			"type": "room",
			"name": "Obstacle room with spinning gear and 6 barrels",
			"path": "#mint-svg-rm-9",
			"d": {
				"w": 18,
				"h": 12,
				"e": 0
			}
		},
		{
			"roomid": 10,
			"type": "room",
			"name": "4 battle room: 1 all 10s, 2 with 2 10s and 2 11s, and one battle with 4 11s",
			"path": "#mint-svg-rm-10",
			"d": {
				"w": 18,
				"h": 12,
				"e": 0
			}
		},
		{
			"roomid": 11,
			"type": "room",
			"name": "Shelves hall with supervisor",
			"path": "#mint-svg-rm-11",
			"d": {
				"w": 18,
				"h": 12,
				"e": 0
			}
		},
		{
			"roomid": 12,
			"type": "room",
			"name": "Doom room (goons)",
			"path": "#mint-svg-rm-12",
			"d": {
				"w": 36,
				"h": 18,
				"e": 0
			}
		},
		{
			"roomid": 13,
			"type": "room",
			"name": "Doom room (battle)",
			"path": "#mint-svg-rm-13",
			"d": {
				"w": 36,
				"h": 18,
				"e": 0
			}
		},
		{
			"roomid": 14,
			"type": "room",
			"name": "Doom room (supervisor)",
			"path": "#mint-svg-rm-14",
			"d": {
				"w": 36,
				"h": 18,
				"e": 0
			}
		},
		{
			"roomid": 15,
			"type": "room",
			"name": "Acid room",
			"path": "#mint-svg-rm-15",
			"d": {
				"w": 12,
				"h": 12,
				"e": 0
			}
		},
		{
			"roomid": 16,
			"type": "room",
			"name": "Shover room",
			"path": "#mint-svg-rm-16",
			"d": {
				"w": 30,
				"h": 4,
				"e": 0
			}
		},
		{
			"roomid": 17,
			"type": "room",
			"name": "Box stomper room",
			"path": "#mint-svg-rm-17",
			"d": {
				"w": 6,
				"h": 6,
				"e": 0
			}
		},
		{
			"roomid": 18,
			"type": "room",
			"name": "Grated floor room",
			"path": "#mint-svg-rm-18",
			"d": {
				"w": 12,
				"h": 12,
				"e": 0
			}
		}
	],
	"mints": {
		"coin": [
			{
				"floor": 1,
				"w": 42,
				"h": 110,
				"scale": 1,
				"cogs": 16,
				"exp": 196,
				"rooms": [
					{
						"roomid": 0,
						"x": 0,
						"y": 102,
						"r": 0
					},
					{
						"roomid": 2,
						"x": 2,
						"y": 92,
						"r": 0
					},
					{
						"roomid": 3,
						"x": 4,
						"y": 80,
						"r": 0
					},
					{
						"roomid": 2,
						"x": 6,
						"y": 70,
						"r": 0
					},
					{
						"roomid": 4,
						"x": 8,
						"y": 64,
						"r": 0
					},
					{
						"roomid": 1,
						"x": 16,
						"y": 60,
						"r": 90
					},
					{
						"roomid": 6,
						"x": 24,
						"y": 54,
						"r": 0
					},
					{
						"roomid": 1,
						"x": 28,
						"y": 44,
						"r": 0
					},
					{
						"roomid": 5,
						"x": 20,
						"y": 26,
						"r": 270
					},
					{
						"roomid": 2,
						"x": 12,
						"y": 28,
						"r": 270
					},
					{
						"roomid": 8,
						"x": 4,
						"y": 28,
						"r": 270
					},
					{
						"roomid": 1,
						"x": 2,
						"y": 18,
						"r": 0
					},
					{
						"roomid": 10,
						"x": -3,
						"y": 3,
						"r": 90
					}
				]
			},
			{
				"floor": 2,
				"w": 82,
				"h": 116,
				"cogs": 24,
				"exp": 272,
				"rooms": [
					{
						"roomid": 0,
						"x": 66,
						"y": 108,
						"r": 0
					},
					{
						"roomid": 2,
						"x": 68,
						"y": 98,
						"r": 0
					},
					{
						"roomid": 12,
						"x": 55,
						"y": 71,
						"r": 270
					},
					{
						"roomid": 1,
						"x": 68,
						"y": 52,
						"r": 0
					},
					{
						"roomid": 15,
						"x": 64,
						"y": 40,
						"r": 0
					},
					{
						"roomid": 2,
						"x": 70,
						"y": 30,
						"r": 0
					},
					{
						"roomid": 16,
						"x": 48,
						"y": 26,
						"r": 0
					},
					{
						"roomid": 1,
						"x": 40,
						"y": 24,
						"r": 270
					},
					{
						"roomid": 17,
						"x": 32,
						"y": 28,
						"r": 270
					},
					{
						"roomid": 1,
						"x": 30,
						"y": 18,
						"r": 0
					},
					{
						"roomid": 6,
						"x": 22,
						"y": 0,
						"r": 270
					},
					{
						"roomid": 2,
						"x": 14,
						"y": 2,
						"r": 270
					},
					{
						"roomid": 18,
						"x": 0,
						"y": 0,
						"r": 270
					}
				]
			}
		],
		"dollar": [
		],
		"bullion": [
		],
		"_comments": [
			"each 'this.mints[mintType]' is an array of the possible floors of the mints",
			"each floor (each one of the array items) is an object, containing the dimensions of the given floor, its number, and its room order as an array",
			"each array item in the room order arrays is an object, whose properties are the room id and its orientation (r = rotation). the room id is the index of the room in 'this.rooms[n]'"
		]
	},
	"comments": [
		"the 'd' property for rooms is info about the rooms' dimensions and orientation. the 'e' resembles the angle at which the exit from the room is found, where 0 is the entrance, and keeps going from 0 to 360 clockwise (e.g left is 90, front is 180, right is 270)",
		"each mint has an array of semi-arrays. each array is for the different arrangements of mints (mint 'n' has the index 'n - 1'). each semi-array consists of the rooms by order, and each one of its items is the index of a room at the 'rooms' array",
		"'this.rooms[n].d.e' is actually irrelevant",
		"new order: each mini array's items are object, containing the room id, its rotation adn x & y",
	]
}
$mint.fn.clear();
$mint.fn.drawMap(document.querySelector("svg"), "coin", 1);
</script>