Robertvokac (talk | contribs) No edit summary |
Robertvokac (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
* Sprite positions are saved in spritesheet.csv | * Sprite positions are saved in spritesheet.csv | ||
Syntax: <code>java -jar sprite-utils.jar command --option1 valueOfOption1 --option2 valueOfOption2 ... --optionN valueOfOptionN</code> | Syntax: <code>java -jar sprite-utils.jar command --option1 valueOfOption1 --option2 valueOfOption2 ... --optionN valueOfOptionN</code> | ||
== Options == | |||
--dir absolute path to the directory with images, which includes sprites | |||
-rectangle-color | |||
== Commands == | == Commands == | ||
Line 14: | Line 19: | ||
draw \ | draw \ | ||
--dir /rv/data/desktop/code/code.nanoboot.org/nanoboot/open-eggbert-legacy-assets/speedy_eggbert_1/IMAGE08 \ | --dir /rv/data/desktop/code/code.nanoboot.org/nanoboot/open-eggbert-legacy-assets/speedy_eggbert_1/IMAGE08 \ | ||
--rectangle-color 0 | --rectangle-color 255,0,0 \ | ||
--sprite-sheet-path /rv/data/desktop/code/code.nanoboot.org/nanoboot/open-eggbert/assets/default-spritesheets/speedy_blupi_I.spritesheet.csv \ | --sprite-sheet-path /rv/data/desktop/code/code.nanoboot.org/nanoboot/open-eggbert/assets/default-spritesheets/speedy_blupi_I.spritesheet.csv \ | ||
--row 5 \ | --row 5 \ |
Revision as of 13:23, 15 August 2024
Sprite Utils is a Java application used to manage sprite positions in images.
- Sprite positions are saved in spritesheet.csv
Syntax: java -jar sprite-utils.jar command --option1 valueOfOption1 --option2 valueOfOption2 ... --optionN valueOfOptionN
Options
--dir absolute path to the directory with images, which includes sprites
-rectangle-color
Commands
Command: draw
Rectangles are drawn around the sprites and each sprite is labeled with its number. in the image
Example:
java -jar /rv/data/desktop/code/code.nanoboot.org/nanoboot/sprite-utils/target/sprite-utils-0.0.0-SNAPSHOT-jar-with-dependencies.jar \ draw \ --dir /rv/data/desktop/code/code.nanoboot.org/nanoboot/open-eggbert-legacy-assets/speedy_eggbert_1/IMAGE08 \ --rectangle-color 255,0,0 \ --sprite-sheet-path /rv/data/desktop/code/code.nanoboot.org/nanoboot/open-eggbert/assets/default-spritesheets/speedy_blupi_I.spritesheet.csv \ --row 5 \ --file-name OBJECT.BLP \ --double-sized-number true