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.
Venus - A gamestate library with smooth transitions
Venus - A gamestate library with smooth transitions
- Attachments
-
- venus_demo.love
- (364.9 KiB) Downloaded 385 times
Last edited by Chroteus on Sat May 31, 2014 9:45 pm, edited 2 times in total.
Github: https://github.com/chroteus
Re: Venus - A gamestate library with smooth transitions
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.
I use stateful from kikito and created an so called 'loading state' that does this transitions. But it's not so nice as yours.
Re: Venus - A gamestate library with smooth transitions
Not just gamestate, more libraries in general == better for everyone. Especially if they add something new, which no other library offers.Nice one. More gamestate libs, more good !
Github: https://github.com/chroteus
Re: Venus - A gamestate library with smooth transitions
Yes, true!
I'm watching to see more transition effects .
I'm watching to see more transition effects .
Re: Venus - A gamestate library with smooth transitions
Yeah, I already have some ideas for new transition effects.SiENcE wrote:Yes, true!
I'm watching to see more transition effects .
By the way, to those who used Venus in their games: How did it work? Did you encounter any bugs?
Github: https://github.com/chroteus
Re: Venus - A gamestate library with smooth transitions
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.
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
Re: Venus - A gamestate library with smooth transitions
I am honoured that you dedicated your first post here to say thanksblaknite 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.
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.
Github: https://github.com/chroteus
Re: Venus - A gamestate library with smooth transitions
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.
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
- ArchAngel075
- Party member
- Posts: 319
- Joined: Mon Jun 24, 2013 5:16 am
Re: Venus - A gamestate library with smooth transitions
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?
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?
Re: Venus - A gamestate library with smooth transitions
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.
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
Who is online
Users browsing this forum: Bing [Bot] and 1 guest