Sprite Editor (almost ready)

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
alberto_lara
Party member
Posts: 372
Joined: Wed Oct 30, 2013 8:59 pm

Sprite Editor (almost ready)

Post by alberto_lara »

This is an old post, please ignore it. The most recent project is here: https://github.com/tavuntu/susse and the current thread is this: viewtopic.php?f=5&t=79751

Hi people, still missing some things, it's something like "Luigi's sprite editor" according to the style.

Keyboard shorcuts:

For frames:
Ctrl + Right/Left arrow = change frame
Ctrl + F = First frame
Ctrl + L = Last frame
Ctrl + A = Add frame
Ctrl + D = Delete frame
Ctrl + C = Copy previous frame

For IO (the classics):
Ctrl + O = Open
Ctrl + S = Save
Ctrl + N = N
E + lclick = eraser

Others:
P = Play/stop animation
M = change Playing Mode
C = change Color palette
G = show/hide Grid
(and some intuitive ctrls over there)


Some pics:

Editing:
Image

Create new:
Image

Open:
Image

.love: https://mega.co.nz/#!Nh50gZCA!Ipc5kX_H7 ... NI9cz9tU2k

Have fun with this tool: Image
With Image I could do interesting stuff using it so, of course yo can too.

Remember, the program isn't finished yet, have fun :) and thanks for you attention. (sorry for my English)

EDIT2: the '*' indicates a not-saved animation, for the moment, if you want to see on playing what you drew, save first.
EDIT3: I'll be updating an stable .love file every 4 or 5 days on the same link.
Last edited by alberto_lara on Fri Feb 05, 2016 10:00 pm, edited 15 times in total.
User avatar
BozoDel
Party member
Posts: 164
Joined: Fri Nov 01, 2013 10:28 pm

Re: Sprite Editor (almost ready)

Post by BozoDel »

But, but... are those screenshots from the latest version? Cause it's definitely not how it looks like on my computer.

Also, got this crash message:

Code: Select all

Error

AnAl.lua:94: Incorrect parameter type: expected userdata.


Traceback

[C]: in function 'drawq'
AnAl.lua:94: in function 'draw'
main.lua:181: in function 'draw'
[C]: in function 'xpcall'
(sorry, don't know how to reproduce it)

Other than that, looks like it's gonna be a pretty good tool. But not sure if it can compete with other pixel art tools.

EDIT:
SpongeBob <3
User avatar
alberto_lara
Party member
Posts: 372
Joined: Wed Oct 30, 2013 8:59 pm

Re: Sprite Editor (almost ready)

Post by alberto_lara »

Sorry BozoDel, post edited. Remember, it's like a beta version, it can have bugs/crashes (not a lot) and I don't really want to compete with other tools, I just want people to use it if they like it :)
User avatar
BozoDel
Party member
Posts: 164
Joined: Fri Nov 01, 2013 10:28 pm

Re: Sprite Editor (almost ready)

Post by BozoDel »

dead link! :o

Is your dropbox account free? Cause it has limitations on how many ppl can download your stuff...
User avatar
alberto_lara
Party member
Posts: 372
Joined: Wed Oct 30, 2013 8:59 pm

Re: Sprite Editor (almost ready)

Post by alberto_lara »

Sorry again man, I didn't know that about Db. it's in MEGA now :)
User avatar
BozoDel
Party member
Posts: 164
Joined: Fri Nov 01, 2013 10:28 pm

Re: Sprite Editor (almost ready)

Post by BozoDel »

Now that's something! Loved the ZX-Spectrum pallette, and the mirroring is sure an interesting feature.

I see that it's default format is PNG. Is it an animated PNG? Really? Those are not very common... I would like to know more abou how they compare with animated GIFs. Will we be able to choose between those two?

Got three suggestions:
- We should be able to type the numbers when selecting the width and height of a new image. Sometimes clicking isn't precise. It's just a minor setback, but it could be improved.
- Sometimes we will need to export not an animation, but several similarly named static images.
- Being able to resize the window... it isn't really necessary, and it would probably be a lot of extra work... but I would be cool, nonetheless.

A few questions:
- Will we be able to customize the palette?
- What does the little fireball do?
- Is saving implemented yet? Cause I can't find the image I created (using Linux).

But hey, this really got my attention now. I'm looking foward to using it when it's more stable.
User avatar
alberto_lara
Party member
Posts: 372
Joined: Wed Oct 30, 2013 8:59 pm

Re: Sprite Editor (almost ready)

Post by alberto_lara »

Hi again and thanks for the tips :)
First we must clarify some points:
1. The program doesn't work with APNG (I don't think Love2D has support for it), it works with normal PNG images and
when you save an animation with (e.g.) 4 frames, you can get an image like this one:
Image

2. The spinner component (and others) isn't finished yet, I'll finish it and improve it.

3. In Love2D (to my knowledge) you can't resize (fluidly) the window, but you can use this: http://www.love2d.org/wiki/love.graphics.setMode to respawn the window with other size :) I'll add that option too.

About the questions, I don't know exactly what you mean with customizing the palette, if you mean using different colors, you can replace the paleta.png, paleta2.png or paleta3.png images (on imgs_editor folder) by other ones (the palette images must have a 8:2 aspect ratio for correct drawing and you would have to manage the factor_escala variable in paleta.lua as well). About the little fire ball, I'll upload to youtube how it works (I'll link it here) and, finally, the save function works fine (not perfectly in some particular cases but I'll fix that too), Love2D can only write files to the SaveDirectory (check this: http://www.love2d.org/wiki/love.filesystem). You can extact the .love and put at the beginning of love.load() the line:

Code: Select all

print(love.filesystem.getSaveDirectory())
to get your save's directoy full path.

Again, many thanks, I'm busy now with a work and a school project, but I'll take some time for this too, lacks a lot of details.

see u later :nyu:

PD: As you can see, a lot of users are very hard to impress (this tool doesn't have a lot of original features, though) and there are only prole posts in this thread, I'm glad you liked it, I'll put a lot more work on this project, that's for sure :)
Jeronmi
Prole
Posts: 1
Joined: Sat Jan 02, 2016 9:43 am

Re: Sprite Editor (almost ready)

Post by Jeronmi »

This program looks cool and I'd like to try it but the mega link says the file is no longer available.
Take a look at this PhenQ review and you'll be amazed.
User avatar
Doctory
Party member
Posts: 441
Joined: Fri Dec 27, 2013 4:53 pm

Re: Sprite Editor (almost ready)

Post by Doctory »

Jeronmi wrote:This program looks cool and I'd like to try it but the mega link says the file is no longer available.
This was posted 3 years ago, of course it is not available
User avatar
alberto_lara
Party member
Posts: 372
Joined: Wed Oct 30, 2013 8:59 pm

Re: Sprite Editor (almost ready)

Post by alberto_lara »

Jeronmi wrote:This program looks cool and I'd like to try it but the mega link says the file is no longer available.
Sorry, this was just a "test" version, the new Project is in my repo: https://github.com/tavuntu/
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests