This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

MrCohen
MrCohen presents ...

2019/10/22

SpriteFoot 0.7

Note: This won't play here in the Gallery due to it's dependence on files. You must download the source code and open it in Greenfoot.

SpriteFoot is a tool intended to help students slice up spritesheet assets for use in Greenfoot Projects. The results are numbered PNG files that can easily be imported to Greenfoot using a for loop. For an example of how to use these assets, check out AnimationMachine, my other work in progress.

Users may choose to use Manual mode (set some values, cells get selected), Auto Mode (click on frames, select them) or Target Mode (click on a Sprite and select it as a tightly cropped image).

Source Files: Source files should be PNG format with transparent backgrounds and should be placed in the SOURCE folder . If your image doesn't have a transparent background, Target Mode will not work, and other modes may work but will output a file without a transparent background.

Target Files: Files that are generated will be found in the TARGET folder.

Known Issues:
- Offset doesn't work in Auto Mode
- In Target Mode, you must select the images in the order you want them to be exported

Your bug reports are welcome. This is very much a work in progress, so please be patient with it. It DOES work!

2563 views / 13 in the last 7 days

2 votes | 0 in the last 7 days

Tags: mouse with-source image sprite manipulation bufferedimage awt

open in greenfoot
Your browser is ignoring the <APPLET> tag.
HTML5 version not available | Scenario not running?
A new version of this scenario was uploaded on 2019-10-22 15:33:02 UTC Fixed bug when importing file.
A new version of this scenario was uploaded on 2019-10-23 13:05:51 UTC Fixed error where target folder was missing when downloaded, because it appears that Greenfoot deletes empty folders in projects downloaded from the Gallery. There is now a "placeholder" file so it hopefully won't get deleted. If the target folder doesn't exist, just create it - make sure to name it with all lower case. Folder name: target
A new version of this scenario was uploaded on 2019-10-23 13:38:53 UTC Now compatible with Mac, which uses a different character for file paths (slash vs backslack).
A new version of this scenario was uploaded on 2019-10-23 16:57:43 UTC The Match Largest feature now works. This feature will add padding in TARGET MODE so that every output image has the same overall image size.
A new version of this scenario was uploaded on 2019-10-25 12:39:33 UTC Lowered execution speed to avoid flicker that was seen in 3.6.0 and Java 11/12. Please let me know if this leads to any new issues.
A new version of this scenario was uploaded on 2019-10-26 15:04:26 UTC Target Mode export now attempts to put slices in order (left to right, then top to botom) when exporting, regardless of order they are clicked in.
A new version of this scenario was uploaded on 2019-10-26 15:18:09 UTC Improved sort functionality for TARGET mode.
A new version of this scenario was uploaded on 2020-06-03 17:29:33 UTC
A new version of this scenario was uploaded on 2020-09-25 18:52:09 UTC
A new version of this scenario was uploaded on 2022-01-13 13:58:09 UTC

See all comments

Want to leave a comment? You must first log in.

Who likes this?

SwaggyXiao nolttr21