Search found 56 matches

by SuperZazu
Tue Jan 20, 2015 10:58 pm
Forum: Libraries and Tools
Topic: denver - library to play waveforms (synthesizer included)
Replies: 6
Views: 2232

Re: denver - library to play waveforms

Why would a note stop after a given time ? Why haven't you make it last until the key is released (like in a real piano) ? The library is really cool ! Well it would be simple to do :-) Here's a simple example. EDIT: I didn't do it because it wasn't the goal of the library, I just wanted to make th...
by SuperZazu
Tue Jan 20, 2015 5:23 pm
Forum: Libraries and Tools
Topic: denver - library to play waveforms (synthesizer included)
Replies: 6
Views: 2232

Re: denver - library to play waveforms

Dreanh wrote:Cool library, played around with it for some hours. Made a piano/keyboard thing. :P
Impressive ! :-D
by SuperZazu
Mon Jan 19, 2015 6:15 pm
Forum: Libraries and Tools
Topic: denver - library to play waveforms (synthesizer included)
Replies: 6
Views: 2232

denver - library to play waveforms (synthesizer included)

Hello, Here's a new library I made : denver.lua . That's a little helper to play custom waveforms : it simply generates a sample that you can play with LÖVE. Basic examples : local denver = require 'denver' -- play a sinus local sine = denver.get('sinus', 440, 1) -- create a sample of 1sec, at the f...
by SuperZazu
Sun Nov 30, 2014 10:08 am
Forum: Libraries and Tools
Topic: sandwich - resource manager
Replies: 5
Views: 1490

Re: sandwich - resource manager

I added a license. (hope I did everything right)
Thank you :-)
by SuperZazu
Sat Nov 29, 2014 11:32 am
Forum: Libraries and Tools
Topic: sandwich - resource manager
Replies: 5
Views: 1490

Re: sandwich - resource manager

I think you could make it work just with "get" - the first time you call it, it "adds" and then returns it, the second time you call it, it just returns it. Funny thing is this is what I did at first. I somehow managed to think that it was "clearer" to add a resource, then get it. But you are right...
by SuperZazu
Fri Nov 28, 2014 11:59 pm
Forum: Libraries and Tools
Topic: sandwich - resource manager
Replies: 5
Views: 1490

sandwich - resource manager

Hello :) Here's a little project I just made: it's a simple resource manager for LÖVE. It prevents you from loading multiple times the same file in memory during your program execution. You can also add your own resources... Here's how it works: local sandwich = require 'sandwich' my_image = sandwic...
by SuperZazu
Fri Nov 28, 2014 11:51 pm
Forum: Support and Development
Topic: set middleclass global + avoid global classes with stateful
Replies: 10
Views: 3038

Re: set middleclass global + avoid global classes with state

Yes, you are right. Thank you for your answers :-)
by SuperZazu
Fri Nov 28, 2014 3:23 pm
Forum: Support and Development
Topic: set middleclass global + avoid global classes with stateful
Replies: 10
Views: 3038

Re: set middleclass global + avoid global classes with state

what is the difference between the callbacks 'pushedState' and 'enteredState' ? enteredState gets called when you "go to a state" (with gotoState) as well as when you "push it" (with pushState). pushedState is only called on the later case. The same happens with exitedState & poppedState. Oh thanks...
by SuperZazu
Thu Nov 27, 2014 9:51 pm
Forum: Support and Development
Topic: set middleclass global + avoid global classes with stateful
Replies: 10
Views: 3038

Re: set middleclass global + avoid global classes with state

Thank you for this, it is working perfectly ! But, what is the difference between the callbacks 'pushedState' and 'enteredState' ? (I understand the difference, but why two callbacks?) And more importantly, did you omit the callback 'addedState' on purpose ? It would be great to have a state load th...