Venus - A gamestate library with smooth transitions

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Chroteus
Citizen
Posts: 87
Joined: Wed Mar 20, 2013 7:30 pm

Venus - A gamestate library with smooth transitions

Post by Chroteus » Wed May 21, 2014 9:40 pm

When developing my games I've always found switching to other states odd. It wasn't smooth, it was direct. It didn't have any animations or "juiciness". It didn't feel good. After struggling like that for a while I decided to come up with something.

Meet Venus. No not the Roman goddess of löve, but a gamestate library for Löve2D.
I replicated HUMP.Gamestate's syntax as my game was using it at the time and I didn't want to break backwards compatibility.

Documentation: https://github.com/chroteus/venus/blob/master/README.md
Download: https://github.com/chroteus/venus/archive/master.zip

There's no point in explaining visual things, so I'll just leave a .love file.
Attachments
venus_demo.love
(364.9 KiB) Downloaded 196 times
Last edited by Chroteus on Sat May 31, 2014 9:45 pm, edited 2 times in total.

User avatar
SiENcE
Party member
Posts: 782
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

Re: Venus - A gamestate library with smooth transitions

Post by SiENcE » Thu May 22, 2014 3:07 pm

Nice one. More gamestate libs, more good :)!

I use stateful from kikito and created an so called 'loading state' that does this transitions. But it's not so nice as yours.

User avatar
Chroteus
Citizen
Posts: 87
Joined: Wed Mar 20, 2013 7:30 pm

Re: Venus - A gamestate library with smooth transitions

Post by Chroteus » Thu May 22, 2014 3:41 pm

Nice one. More gamestate libs, more good :)!
Not just gamestate, more libraries in general == better for everyone. Especially if they add something new, which no other library offers.

User avatar
SiENcE
Party member
Posts: 782
Joined: Thu Jul 24, 2008 2:25 pm
Location: Berlin/Germany
Contact:

Re: Venus - A gamestate library with smooth transitions

Post by SiENcE » Sat May 24, 2014 4:55 pm

Yes, true!

I'm watching to see more transition effects :).

User avatar
Chroteus
Citizen
Posts: 87
Joined: Wed Mar 20, 2013 7:30 pm

Re: Venus - A gamestate library with smooth transitions

Post by Chroteus » Sat May 24, 2014 5:48 pm

SiENcE wrote:Yes, true!

I'm watching to see more transition effects :).
Yeah, I already have some ideas for new transition effects.

By the way, to those who used Venus in their games: How did it work? Did you encounter any bugs?

User avatar
blaknite
Prole
Posts: 10
Joined: Wed May 28, 2014 1:44 pm
Location: Adelaide, Australia
Contact:

Re: Venus - A gamestate library with smooth transitions

Post by blaknite » Wed May 28, 2014 1:58 pm

I've just started fiddling around with love yesterday and came across Venus. Loving the work so I figured I'd stop by and say thanks!

Being as anal about licenses as I am what license are you releasing this code under? I'm liking what I see so far and have a feeling I'll probably put this to good use and maybe send a few pull requests your way as I go.
Developer and Founder of The LANBox

User avatar
Chroteus
Citizen
Posts: 87
Joined: Wed Mar 20, 2013 7:30 pm

Re: Venus - A gamestate library with smooth transitions

Post by Chroteus » Wed May 28, 2014 10:31 pm

blaknite wrote:I've just started fiddling around with love yesterday and came across Venus. Loving the work so I figured I'd stop by and say thanks!

Being as anal about licenses as I am what license are you releasing this code under? I'm liking what I see so far and have a feeling I'll probably put this to good use and maybe send a few pull requests your way as I go.
I am honoured that you dedicated your first post here to say thanks :)

License? Same as Love2D. Do whatever you want with it as long as you don't claim it as your own (I appended license to the top of venus.lua)
Also, as a bonus, I added "fall" animation, which is similar to slide except it goes downwards and has a slightly different tween.

User avatar
blaknite
Prole
Posts: 10
Joined: Wed May 28, 2014 1:44 pm
Location: Adelaide, Australia
Contact:

Re: Venus - A gamestate library with smooth transitions

Post by blaknite » Thu May 29, 2014 3:15 am

Not a problem at all!

Cheers for the additional effect, I'll probably add a crossfade in later today.

I've spent a little time decoupling Venus from HUMP.timer so that HUMP.timer isn't included with Venus. I'll update the readme when I submit a pull request so that people know that HUMP.timer is a requirement. I've also added in the ability to define a duration for the transition and refactored a bunch of things.

I'll stick it up on github once I've properly tested it.
Developer and Founder of The LANBox

User avatar
ArchAngel075
Party member
Posts: 317
Joined: Mon Jun 24, 2013 5:16 am

Re: Venus - A gamestate library with smooth transitions

Post by ArchAngel075 » Thu May 29, 2014 4:42 am

im interested in this....

Is there any way thirdparties (forum members) can build transitions aswell? Im itching to see a frame collection transition>

Zooms the current frame out and slides to the new frame beside it, zoom in. Possible to include many frames to create a sort of frame collection thing seen on cellphones' gallery screens?

User avatar
blaknite
Prole
Posts: 10
Joined: Wed May 28, 2014 1:44 pm
Location: Adelaide, Australia
Contact:

Re: Venus - A gamestate library with smooth transitions

Post by blaknite » Thu May 29, 2014 7:45 am

I'm sure Chroteus won't mind if others submit pull requests for new transitions on Github.

The zoom and slide transition could work but something like a mobile phone gallery screen seems a little outside the scope of Venus. That doesn't mean it might not be useful to build upon it.
Developer and Founder of The LANBox

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 5 guests