WaggSoft Accounts and Registration and Login Forms

The past week (2 Fridays ago and this last Friday) I was looking into text input forms for Squishy Bugs. Initially I thought I’d try using an Android view/layout (I still don’t know if there’s a difference) to get the necessary text field rendering and reading the keyboard. The Eclipse Android layout manager is pretty cool and I had a nice form mocked up in no time, but this left me with a minor issue.

Squishy Bugs is meant to be cross platform. In addition to working on an Android phone or tablet, it also runs as a desktop application. That’s actually how I do my development, running the game as an app on my computer playing it using a mouse. Building the registration form using an Android view does nothing for the desktop version. Back to square one.

It was actually quite easy to find a cross platform solution since there was such a good example built into libgdx itself. You can see the results in the image below.

The location of the form is subject to change, and I’ve still got to figure out if there’s a password field so that the password isn’t displayed in plain text. But it’s a step in the right direction. Next up I suppose would be writing data to the phone to store Squishy Bugs settings, and then sending the login information to the WaggSoft api so your high scores can finally be saved!

Leave a Reply

 

Staypressed theme by Themocracy