LibGDX game on Nintendo Switch

Anything libgdx related goes here!

LibGDX game on Nintendo Switch

Postby bitmojo » Mon Nov 04, 2019 3:02 pm

So, i heard that this game called "Slay the Spire" was developed on LibGDX and was recently ported to Nintendo Switch:

https://www.nintendo.com/games/detail/s ... re-switch/

Any idea of how they done it?
bitmojo
 
Posts: 9
Joined: Fri Oct 14, 2016 1:57 am

Re: LibGDX game on Nintendo Switch

Postby obigu » Mon Nov 04, 2019 3:08 pm

The mobile and Switch ports were made by a different company, they didn't use libGDX but Monogame I believe.
obigu
 
Posts: 140
Joined: Fri Aug 02, 2013 4:47 pm

Re: LibGDX game on Nintendo Switch

Postby Magnesus » Tue Nov 05, 2019 11:47 am

Rewriting in another engine is probably right now the best and quickest option. I am slowly moving to haxe due to that - very easy to port the logic to something else when needed.
Magnesus
 
Posts: 1708
Joined: Sun Sep 25, 2011 3:50 pm

Re: LibGDX game on Nintendo Switch

Postby Magnesus » Sat Nov 23, 2019 9:15 am

Aaand spammed to hell. :(
Edit: fixed, thanks.
Last edited by Magnesus on Sun Nov 24, 2019 7:30 pm, edited 1 time in total.
Magnesus
 
Posts: 1708
Joined: Sun Sep 25, 2011 3:50 pm

Re: LibGDX game on Nintendo Switch

Postby tomspilman » Sat Nov 23, 2019 9:02 pm

Hi all.

My studio, Sickhead, did the port of Slay the Spire to Switch.

We struggled for a bit trying to convert the Java to C++ code directly using existing third party tools. The resulting C++ code pretty much didn't work at all and took tons of manual changes to make work. After several months of failure taking that path we changed gears.

We instead converted Java to C# which required much less manual fixes to make work and solved all the GC memory management issues. This means we had a C# version of LibGDX in there as well as all the game code. We then just added a new LibGDC backend with new OpenGL bindings and new sound, input implementations. At that point we had a PC port of Spire using C#.

We then used our own mature C# IL to C++ cross compiler and runtime we developed to port XNA and MonoGame titles to generate binaries which run on Switch, PS4, XB1, and other platforms.

While Java -> C# -> C++ was a crazy idea when we started... it actually works beautifully and makes perfect sense now.
tomspilman
 
Posts: 2
Joined: Sat Nov 23, 2019 8:53 pm

Re: LibGDX game on Nintendo Switch

Postby tomski » Sun Nov 24, 2019 12:33 pm

Hey, thanks for the info, interesting stuff!

What tools did you use for the java -> c# conversion? Sharpen?
tomski
 
Posts: 910
Joined: Wed Jun 26, 2013 6:06 pm

Re: LibGDX game on Nintendo Switch

Postby tomspilman » Sun Nov 24, 2019 11:58 pm

tomspilman
 
Posts: 2
Joined: Sat Nov 23, 2019 8:53 pm


Return to Libgdx

Who is online

Users browsing this forum: Google [Bot] and 1 guest