4KB Explosions Contest

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: 4KB Explosions Contest

Post by kikito »

TechnoCat wrote:I like how we're putting all hands on deck to undermine the avoidance of sprites.
Images are ok. I didn't want to have pre-rendered sprites. If someone is able to generate sprites from code and then wants to use them, that's within the rules.

Would it be very difficult to draw the "windwaker cloud" using love.graphics primitives? Polygons, lines, circles, etc?
When I write def I mean function.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: 4KB Explosions Contest

Post by Robin »

kikito wrote:Would it be very difficult to draw the "windwaker cloud" using love.graphics primitives? Polygons, lines, circles, etc?
I'd say, yes. Unless you can convert from an SVG.
Help us help you: attach a .love.
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: 4KB Explosions Contest

Post by tentus »

ImageData:paste() replaces pixels, right? As opposed to blending them?

I was thinking about creating a brush image and programming a path for it to follow and paste, but I doubt that would work as I envision. Unless I made it massively larger than I really want and then scaled it down.
Kurosuke needs beta testers
User avatar
thelinx
The Strongest
Posts: 857
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

Re: * 4KB Explosions Contest *

Post by thelinx »

tentus wrote:
Ryne wrote:But Kikito, I'm not good enough :( . I am however, interested to see the results.
I'm gonna try my hand at procedurally animating a Wind Waker style explosion: if you want to whip up some 2 color 64x64 alpha'd art resources I bet we could find one that would work. (See attached example I threw together).
pngcrushed sprite:
Attachments
sprite.pngcrushed.png
sprite.pngcrushed.png (1.9 KiB) Viewed 2862 times
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: * 4KB Explosions Contest *

Post by TechnoCat »

thelinx wrote:pngcrushed sprite:
I got really excited because I read that as 1.9 bytes at first.
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: * 4KB Explosions Contest *

Post by tentus »

thelinx wrote:
tentus wrote:
Ryne wrote:But Kikito, I'm not good enough :( . I am however, interested to see the results.
I'm gonna try my hand at procedurally animating a Wind Waker style explosion: if you want to whip up some 2 color 64x64 alpha'd art resources I bet we could find one that would work. (See attached example I threw together).
pngcrushed sprite:
Interesting, the one with alpha is 101 bytes smaller than the green one, after pngcrushing. I honestly did not expect the difference to become more pronounced.
Kurosuke needs beta testers
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: 4KB Explosions Contest

Post by Taehl »

*Goes in a completely different direction while everyone fiddles with that sprite, and ends up with some extra space*

Do we get bonus points for cramming sound effects in there, even if they aren't required?
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: 4KB Explosions Contest

Post by TechnoCat »

Taehl wrote:*Goes in a completely different direction while everyone fiddles with that sprite, and ends up with some extra space*
I'm not planning on using a sprite either. I have a goal in my head I need to figure out how to implement for this. I just thought it was fun trying to get that image filesize as small as possible.
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: 4KB Explosions Contest

Post by tentus »

TechnoCat wrote: I'm not planning on using a sprite either. I have a goal in my head I need to figure out how to implement for this. I just thought it was fun trying to get that image filesize as small as possible.
See, that's the very under-appreciated fun side of my field (web development): taking images and making them be as efficient as possible. I enjoy min-maxing layouts far more than any other part of the job. There's no one perfect answer (seen here by the various possible png formats we talked about).
Kurosuke needs beta testers
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: 4KB Explosions Contest

Post by Taehl »

Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 10 guests