Finally! After many years of being a developer I get to make something to do with my favourite sport basketball!
Think of those basketball shooter games in the arcades – this was the goal I was going for.
The component of the game for the LG Android phone was going to be in 2D – so I decided to do this in Adobe AIR. I used AIR as this was going to be a completely custom game with no native UI requied. Why not use Unity here also and use it’s 2D support? Well I didn’t have a Pro Android license.
In the Unity projects I’ve worked on I’ve always thought a level of structure and order was missing. I was a massive fan of Robotlegs for AS3 projects with MVC and dependency injection so I thought it would be great to try find something that offers similar features. After some searching and reading I came across StrangeIOC – http://strangeioc.github.io/strangeioc/. I can say without hesitation it lead to the most structured Unity project I’ve ever done. After getting into the flow of things it felt second nature. I would definitely recommend giving it a try.
The installation of this project was going to have 2 instances of the game running and scores were to be placed on a shared leaderboard. The backend developer I was working with created a virtual machine and placed a database on it that I then posted and retrieved data from.
A video would play when the game was not being played, when touched a welcome screen was presented for the player to proceed.
Next the player would enter their initials – after touching continue, a countdown would start, when complete the phone would vibrate and the game has started.
A basketball would appear from the bottom of the screen, flicking the ball up and off the screen would act as taking a shot. The speed of the flick dictated the strength of the shot, if the ball was released to the left or right this would also change the shot and tilting the phone up and down (as indicated with the bar in the top left) would effect the angle of the shot.
When time is up, the phone vibrates again and the final score is displayed.