Example:
[{"x":0,"y":0,"width":1,"height":1,"scaleX":50,"scaleY":50},{"x":50,"y":50,"width":1,"height":1,"scaleX":50,"scaleY":50}]
JavaScript
const measuredStructure =
[{"x":0,"y":0,"width":1,"height":1,"behaver":1,"scaleX":50,"scaleY":50},{"x":50,"y":50,"width":1,"height":1,"behaver":1,"scaleX":50,"scaleY":50}]
//paste hear
for (const measured of measuredStructure){
x = measured['x'];
y = measured['y'];
width = measured['width'] * measured['scaleX'];
height = measured['height'] * measured['scaleY'];
behaver = measured['behaver'];
//Logic hear
}
For placing selected Image
Showing placing area, from that click on top-left - to Place.
For Remove Image
Placed Image area, from that click on top-left - to Remove.
Current background is Transparent.
Can use RGB => RGB background.
Browse Image => Image Background.
Warn !
change rgb value first time for change it.When map is Done !, Click on Complete button to complete it.
And then can download with map sprite sheet measured code.
Warn !
Dont refresh the page, because can't save the map.Warn !
Chack if the map sheet name is not alrady created, because it is replace to current map.