Showcase your libraries, tools and other projects that help your fellow love users.
-
Ulydev
- Party member
- Posts: 445
- Joined: Mon Nov 10, 2014 10:46 pm
- Location: Paris
-
Contact:
Post
by Ulydev » Wed Jul 20, 2016 10:36 pm
Hey there, lövers!
Here's another minimalist library,
soft.
By replacing
to
it takes care of lerping the values, giving a smoother look to your games.
https://github.com/Ulydev/soft
-
Kingdaro
- Party member
- Posts: 395
- Joined: Sun Jul 18, 2010 3:08 am
Post
by Kingdaro » Thu Jul 21, 2016 12:05 am
Nice, beat me to it
Personally, I'd change the soft:set boolean param to the string 'reset'. This makes it a lot clearer what the function's doing with the second parameter from the outset, and allows the addition of other parameters if you like.
-
Ulydev
- Party member
- Posts: 445
- Joined: Mon Nov 10, 2014 10:46 pm
- Location: Paris
-
Contact:
Post
by Ulydev » Thu Jul 21, 2016 2:09 am
Kingdaro wrote:Personally, I'd change the soft:set boolean param
Done, thanks for the suggestion!

-
ObeyJay
- Prole
- Posts: 4
- Joined: Thu Apr 23, 2015 6:22 pm
Post
by ObeyJay » Tue Aug 02, 2016 8:31 am
This looks great.
But what if I need to change the value :by() a given amount? (ie, relative to the current value instead of absolute)
Do you think it's worth implementing it?
-
Ulydev
- Party member
- Posts: 445
- Joined: Mon Nov 10, 2014 10:46 pm
- Location: Paris
-
Contact:
Post
by Ulydev » Sat Aug 06, 2016 5:38 am
ObeyJay wrote:This looks great.
But what if I need to change the value :by() a given amount? (ie, relative to the current value instead of absolute)
Do you think it's worth implementing it?
Sure, I'll consider adding a shortcut.
Users browsing this forum: No registered users and 17 guests