Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (491)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (556)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Sprite sheet editor  (Read 9648 times)
0 Members and 1 Guest are viewing this topic.
Offline Bonbon-Chan

JGO Coder


Medals: 12



« Posted 2008-05-16 15:08:27 »

Hi,

there is a little tool that i make from varius tests. The first goal was to do a sprite editor that save all data in an unique png file (to be able to display it in a web browser without the need of anything else).

Webstart Jar

Right now, there is a plugin problem with webstart version (so don't try plugin with it  Wink)

How to use it :
- take a sprite sheet in PNG format (in my example, i take one from http://spriters-resource.com/)
- with a paint software, remove all unaccessary image, put a tranparency, ... and make sure there is some empty lines at the end of the image (it is where i save datas)
- MAKE A COPY  Roll Eyes (no undo and beta stage) and save often
- load the image with the load button. It will try to detect all the sprites and the palette (perfect color match)
- "sprite" is to define where sprites are on the image and to move them (lock button toggle)
- "palette" is to define palettes (replacing a color by another)
- "system" is to load/save sprite sheet (and define the color of the checkboard for transparency)
- "plugin" for launch plugin and define the directory where are plugins
- "animation" is the list of animation. ( ">" button to play an animation in a separate window)
- "loop" define the begin and the end in step on an animation
- "step" is use to create steps in an animation (a step can be on several frame = delay)

It should not be difficult to use.

There is an exemple of sprite sheet :

(just save it to disk and open it)

For plugin there is an exemple that pack the sheet :
Source Classes
Just unzip the classes in a directory and select this directory in the soft.
Importer, exporter, editing tool can be maked.

At last there is an exemple of use in LWJGL :
Webstart Source
1-4 Key to change palette
On the numpad, 4,5,2,1 to move

I don't know if it can be usefull for someone. It is still simple and miss features.
Offline Bonbon-Chan

JGO Coder


Medals: 12



« Reply #1 - Posted 2008-05-18 06:59:51 »

It seems that people don't care mush about it  Wink. What are you using to make your sprite sheet ?

small update :
- small bug correction (deleting a sprite)
- adding zoom
- new GUI layout (i don't manage to make one that I like  Angry)
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #2 - Posted 2008-05-18 21:58:03 »

I use this:

http://www.otcsw.com/platformplant.php

It automatically splits up a sprite sheet of any kind into individual sprites, so it no need to use a paint program or anything. It also doesn't overwrite your old sprite sheet image. It doesn't have features for animations or anything.

Since you don't like your GUI, you may want to take a look at mine and see if you like it. I use a JDesktop and JInternalFrame's for everything.

See my work:
OTC Software
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Bonbon-Chan

JGO Coder


Medals: 12



« Reply #3 - Posted 2008-05-19 13:01:10 »

Thanks for the reply (i get a 404 error with the webstart link).

Update :
- Plugins work with the java web start version !  Cheesy
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #4 - Posted 2008-05-19 17:08:08 »

Thanks for the reply (i get a 404 error with the webstart link).

Update :
- Plugins work with the java web start version !  Cheesy
Weird... checked my FTP directory and the webstart isn't there. Thought I just uploaded it.

Okay, it'll be fixed in a couple hours.

See my work:
OTC Software
Offline hejfelix

Junior Member





« Reply #5 - Posted 2008-06-10 20:58:35 »

Why do you need to split up the image into small parts? I made a loader for spritesheets in my new game-engine.

It loads an entire sheet and then pans through the sheet, showing the different frames.

It works really well and I dont need to load a billion different images, only one.

I might be missing something, I haven't really studied anything for this engine, im just making what I feel would work Smiley

<i8b4uUnderground> d-_-b
<BonyNoMore> how u make that inverted b?
<BonyNoMore> wait
<BonyNoMore> never mind
Offline Bonbon-Chan

JGO Coder


Medals: 12



« Reply #6 - Posted 2008-06-11 09:00:11 »

I prefere to deal with sprite sheet on one image : it is easier to rework the sprite sheet and i have to deal with only one texture (but it may be a problem with the hardware limitation)
Offline pagantipaco

Senior Newbie





« Reply #7 - Posted 2008-12-04 09:44:21 »

I prefere to deal with sprite sheet on one image : it is easier to rework the sprite sheet and i have to deal with only one texture (but it may be a problem with the hardware limitation)

You can divide your spritesheet in two or more images to adecuate to hardware ;-)

I probed your editor and it's great ;-) I have some questions about it:

- Is it possible to change the colours of the checkered background? The easy way would be add 2 options to change them.
- How can I change the "hotspot" of each sprite?

I'm very interested on your editor because I want to use this kind of spritesheets on my next game.

Congratulations for the program ;-)


--------------<br />Regards.<br />Paco.
Offline Bonbon-Chan

JGO Coder


Medals: 12



« Reply #8 - Posted 2008-12-04 10:27:39 »

- Is it possible to change the colours of the checkered background? The easy way would be add 2 options to change them.
Next to "Load" and "Save" button there is "Grid" (I should change the name). You can change the 2 colors with the 2 buttons.

- How can I change the "hotspot" of each sprite?
I change the "base point" of sprite during the animation process :
- create an animation
- create all the step of the animation
- for each step, you can move the base point by draging the sprite in the "steps" image or by clicking on the arrows button in "steps".

If you want, I can add those arrows button in "sprite" it is not a big deal.

Congratulations for the program ;-)

Thanks  Grin. I think i didn't upload the last version (I'm pretty sure that I store the directory of the last open image).
If you have any sugestion for the editor or for a plugin, let me know  Wink


edit : New version uploaded, and new plugins uploaded  Tongue
Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #9 - Posted 2009-10-30 11:16:42 »

I know this thread is old, but is still relevant.

Interesting tool! I think it is especially clever to save the extra information as the last row of pixels. Smiley

What are you using to make your sprite sheet ?

I use this class:

http://code.google.com/p/skorpios/source/browse/trunk/skorpios-desktop/tools/com/esotericsoftware/skorpios/tools/ImagePacker.java

It takes all the images in a directory, removes any transparency around them, and packs them quite efficiently on to any number of larger textures. It can directly take the output of Particle Illusion or whatever you use to make animations and turn them into sprite sheet images and a simple text file describing the sprite locations. To load the "packed images":

http://code.google.com/p/skorpios/source/browse/trunk/skorpios-common/src/com/esotericsoftware/skorpios/opengl/PackedImages.java

I use this simple class to do animations.

Obviously your tool provides a lot more, by allow you to define the animations and to cut up a large image rather than build a large image out of many smaller ones.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Nickropheliac (15 views)
2014-09-01 03:59:12

TehJavaDev (23 views)
2014-08-28 23:26:30

CopyableCougar4 (29 views)
2014-08-23 00:31:30

atombrot (41 views)
2014-08-19 14:29:53

Tekkerue (39 views)
2014-08-16 11:45:27

Tekkerue (35 views)
2014-08-16 11:22:17

Tekkerue (25 views)
2014-08-16 11:20:21

Tekkerue (36 views)
2014-08-16 11:12:11

Rayexar (72 views)
2014-08-11 07:49:23

BurntPizza (49 views)
2014-08-10 02:09:32
List of Learning Resources
by Longor1996
2014-08-16 15:40:00

List of Learning Resources
by SilverTiger
2014-08-06 00:33:27

Resources for WIP games
by CogWheelz
2014-08-01 21:20:17

Resources for WIP games
by CogWheelz
2014-08-01 21:19:50

List of Learning Resources
by SilverTiger
2014-07-31 21:29:50

List of Learning Resources
by SilverTiger
2014-07-31 21:26:06

List of Learning Resources
by SilverTiger
2014-07-31 16:54:12

HotSpot Options
by dleskov
2014-07-08 06:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!