8 February 2015

Developing Square Wobble

This week I came back to Unity, to start developing my newly designed mobile twitch game Square Wobble.

In fact it only took me this one week, to almost fully finish coding it up, along with transfering it onto a smartphone and trying it out. The reason it took me so quick, is because Square Drop had all the important code I needed to use for Square Wobble already, so it was a matter of just replacing, and upgrading certain sections of code.

It doesn't mean that I haven't learnt anything - having went onto this forum I've learnt how to do the swipe command which was necessary to use for my new prototype.

This is the stage:

That's the code:

And here comes the swipe class, that contains the new code I've learnt:

And that's the game:

The obstacles show up as soon as I make my first swipe:

I swipe right to avoid hitting the edge of the screen:

Then I perform a number of quick left-right swipes to squeeze through the first obstacle gap

Once I managed to do that successfully I receive a point, and carry on swiping in order to beat the new incoming obstacles:

Eventually when I hit either the edge of the screen, or the obstacle, the game ends, and let's me restart if swiped again.

I still need to update the obstacle spawn code, however that should take very little to no time, so I'll be pretty much ready to start getting playtesters next week already!

References:
Swipe in all directions Touch and Mouse [ONLINE] Available at: http://forum.unity3d.com/threads/swipe-in-all-directions-touch-and-mouse.165416/ [Accessed 8th February 2015]

No comments:

Post a Comment