Topic: AutoRect v0.1 (Brickset tool for automating brk creation tasks)
AutoRect v0.1 (Brickset tool for automating brk creation tasks)
"Save time"
DOWNLOAD
For Windows only
http://sourceforge.net/projects/lainz00
z/download
Screenshot:
Input:
Output:
brick 0
{
sprite
{
source_file images/test.png
source_rect 2 2 169 167
frame_size 169 167
}
}
brick 1
{
sprite
{
source_file images/test.png
source_rect 381 4 169 167
frame_size 169 167
}
}
brick 2
{
sprite
{
source_file images/test.png
source_rect 202 7 169 167
frame_size 169 167
}
}
brick 3
{
sprite
{
source_file images/test.png
source_rect 313 190 169 167
frame_size 169 167
}
}
brick 4
{
sprite
{
source_file images/test.png
source_rect 96 191 169 167
frame_size 169 167
}
}
How it works: Open a png file with these conditions:
1) Each sprite MUST HAVE 4 black pixels rgb(0,0,0) in each corner (top-left,top-right,bottom-left,bottom-right) see test image.
2) Enjoy! The program create all the stuff!...
3) Not all! Then you must save the text to a brk file and edit with some other program like JBlocks http://opensnc.sourceforge.net/forum/vi
hp?id=1683 to add all the other stuff.
If after loading the image nothing is shown:
- You've provided an invalid image.
- Don't forget any black pixel and don't add black pixels between them.
- The rectangles doesn't have to be one up the other.
Open the Task Manager and close the process 'autorect.exe', else it will continue wasting memory....
Last edited by lainz (2014-02-08 02:52:01)