Page 1 of 2

Tentus Splash

Posted: Mon Oct 10, 2011 7:58 pm
by tentus
Well, I'm drawing a blank on what I want to do for my jam splash, so I threw this together in hopes of having a better idea halfway through.

Thus far no luck. Still, here 'tis. Press any key to escape, to change the speed of it go into the source and change the "lifespan" variable.

Re: Tentus Splash

Posted: Mon Oct 10, 2011 8:02 pm
by Robin
...

Y U NO MAKE .LOVE? :(

Re: Tentus Splash

Posted: Mon Oct 10, 2011 10:57 pm
by josefnpat
Robin wrote:...

Y U NO MAKE .LOVE? :(

Code: Select all

seppi@seppi-opl:~/Downloads$ mv tentus.zip tentus.love
seppi@seppi-opl:~/Downloads$ love tentus.love 
:(

Otherwise, nifty.

Re: Tentus Splash

Posted: Mon Oct 10, 2011 10:59 pm
by Tesselode
Needs some sound.

Re: Tentus Splash

Posted: Mon Oct 10, 2011 11:37 pm
by Taehl
I like the glow.

Re: Tentus Splash

Posted: Mon Oct 10, 2011 11:46 pm
by thelinx
josefnpat wrote:

Code: Select all

seppi@seppi-opl:~/Downloads$ mv tentus.zip tentus.love
seppi@seppi-opl:~/Downloads$ love tentus.love 
:(

Otherwise, nifty.
Or the shortcut,

Code: Select all

$ mv tentus.{zip,love}
Or you can just skip that step altogether and just open the zip file with LÖVE.

Re: Tentus Splash

Posted: Mon Oct 10, 2011 11:49 pm
by tentus
Robin wrote:...

Y U NO MAKE .LOVE? :(
I... don't know. :huh: Fixed.
Taehl wrote:I like the glow.
I've been trying to think of a way to generate it procedurally in Love. Any suggestions?

Re: Tentus Splash

Posted: Tue Oct 11, 2011 12:20 am
by slime
tentus wrote:
Taehl wrote:I like the glow.
I've been trying to think of a way to generate it procedurally in Love. Any suggestions?
Post-processing bloom shader? :p

Re: Tentus Splash

Posted: Tue Oct 11, 2011 12:45 am
by tentus
slime wrote:
tentus wrote:
Taehl wrote:I like the glow.
I've been trying to think of a way to generate it procedurally in Love. Any suggestions?
Post-processing bloom shader? :p
Pretty much. I've also been looking into procedurally creating a sound that will adapt to the length of the splash, but I'm a bit stuck as to how to make it sound like anything other than white noise. Here's all I've got so far:

Code: Select all

function love.load()
	lifespan = 5
	samplerate = 44100
	samples = math.floor(lifespan * samplerate)
end

function love.keypressed()
	local data = love.sound.newSoundData(samples, samplerate, 16, 1)
	for i = 0, samples do 
		data:setSample(i, (math.random(0, i) / i) * (1 - i/samples)) 
	end
	sfx = love.audio.newSource(data)
	love.audio.play(sfx)
end

Re: Tentus Splash

Posted: Tue Oct 11, 2011 6:20 am
by Robin
Now that I can run it directly from Firefox, it looks nice. I agree it needs sound, though.