melonJS icon indicating copy to clipboard operation
melonJS copied to clipboard

Add a more "standard" spritesheet format

Open ghost opened this issue 15 years ago • 24 comments

Zwoptex, TexturePacker or any other stuff with an easy and popular format !

ghost avatar Aug 27 '11 11:08 ghost

@parasyte so what do we do ?

note that if we keep (0,5, 0.5) as the reference center point (which furthermore really ease with the corresponding math), it's probably better to keep what I did as well (maybe less confusing to understand as well), or set (0,0) as bottom-left and (1, -1) as top right ?

ghost avatar Mar 18 '13 07:03 ghost

@parasyte

Animation is there ! it still need further testing and tweaks (as right now when using rotation option or non trimmed sprites, final position can be a bit off), but else it works just as I wanted :)

if you want to try, make sure you disable rotation, and enable trim !

ghost avatar Mar 20 '13 06:03 ghost

@parasyte thank you for the last code review, I effectively forgot the one when creating sprites ;)

I did not do much today (I was the whole day to some exhibition for my company), but I will merge this baby tomorrow in the main branch. it's late now here, i'm tired, and I'm lazy then to update the wiki and write a post in the forum with the changes, and seek for our usual beta-testers :)

ghost avatar Mar 21 '13 14:03 ghost

I'm closing this one, as the point was to add a more generic/flexible texture format, which we did, and so far so good (i don't believe it being100% bug free, but at least it's mature enough tho consider this one done).

if more format are to be added they can be managed through specific ticket/request.

obiot avatar Apr 11 '13 01:04 obiot