• Register

Do you have what it takes to reach for the stars? Stellar Stars is the 1st Ever Multiplayer Online Rogue-lite Arena (MORA) that passionately cooks the best of Multiplayer Online Battle Arenas (MOBAs) and Rogue-lites together, empowering you with the ability to level up in direct and interactive ways, while fighting other players in a sci-fi & fantasy world with procedurally generated stages.

Post news Report RSS Starsss - Adding Game Controller Support!

What is more exciting than playing a game with your keyboard? Playing it with a game controller! That is why you need to know the fun stuff that goes on when game controller support is being added to Starsss!

Posted by on

---------------------------------------Starsss - Development Blog Post #63---------------------------------------

What is more exciting than playing a game with your keyboard? Playing it with a game controller! That is why you need to know the fun stuff that goes on when game controller support is being added to Starsss!


Now as you might have known, the development of Starsss is done mainly from the Mac/OSX operating system. So in order to make the XBox One Controller work with it, you'll need to get and install the Xone-OSX driver.

Once it has been installed and the system has been restarted, this is what you can see in the system preferences.

Starsss - After Installing the Xone-OSX Driver!

Clicking on the new Xone Controller preference shows you the settings that you can change for your controller.

Starsss - The Game Controller's Settings

And if you are using a micro usb cable, connecting the XBox One controller to the Mac allows you to do this.

Starsss - Live Input From The Game Controller!

Getting the Xbox One Controller to work with the Mac is one thing, but there's more to be done with getting Unity (the game engine that Starsss is made in) to work with it.

Starsss - Making It Work With Unity?

Starsss - Adding detection for the left joystick!

Using Unity's Input Manager allows you to specific new mappings for both the joystick and buttons on the XBox One Controller. For example, you can detect whether the left joystick is being pushed to the left or right with the following line of code.

float h = Input.GetAxis("LeftJoystickX");
//if h is less than 0, it's left. If not, it's right

It goes without saying that allowing you to move your character left or right, using the left joystick is a definite must. However, besides pressing the A button to jump, it's also better to implement jumping via pushing the left joystick up. This allows you to use the left joystick to jump and the buttons on the right, namely X (to attack) and Y (special skill) at the same time.

Starsss - Joystick Up and button X?

The left and right trigger buttons could be also used for changing between your primary and secondary abilities (if you have learnt dual offense).

Starsss - Trigger Buttons?

So while there are a lot of mappings to be done, trust me when I say that it is definitely worth it. Look forward to when Starsss comes out with game controller support!

And be sure to help vote for Starsss on Steam Greenlight! Each and every vote counts so tell your family and friends to vote too!

Lastly, check out today's TwitchTV live stream! It's now on YouTube so you can slowly enjoy watching it! Cheers!

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: