Jump to content
  • Advertisement
Sign in to follow this  

<SWOOSH> Header-only mini library for activities and segues

Recommended Posts

There had to be a way to manage cool screen transitions as easy as possible in C++ without too much difficulty.

There wasn't until now Swoosh, the mini library that immediately adds 100x polish to your game.

Fork the project at https://github.com/TheMaverickProgrammer/Swoosh.

LICENSED under zlib/libpng License



Swoosh is easy to integrate and makes your game look pro. Just checkout the super simple game example that ships with it. The library is header only and open source.

See the full video https://streamable.com/qb023.


The example project comes with 4 header-only custom segue effects you can copy and paste directly into your project and it'll just work. That simple. That powerful.

Using segues is as easy as calling push or pop and providing the intent. The intent is a specialized nested class designed to be human readable. Just see for yourself:

ActivityController controller;


// User selects settings
using intent::segue;

Popping is the same way.


And if you're making a legend of zelda clone and the player teleports out of a series of deep dungeons back to overworld... there's a function for that too

bool found = controller.queueRewind<segue<SlideIn>::to<LOZOverworld>>();

if(!found) {
    // Perhaps we're already in overworld. Certain teleport items cannot be used!

Take a peak at the full source code for the demo project:

Swoosh comes with other useful utilities specifically but not limited to games.

  • function bool doesCollide(a, b)
  • function double angleTo(subject, target)
  • function vector2 direction(target, dest)

And more...

See the rest here:

Edited by Mavericky
license update

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!