Monday, June 6, 2011

Overhead Camera

Ok, so we are getting close to having the basic mechanics worked out.  We will still have to do some tweeking to the physics and other behaviors, but that's ok!  The overhead cam is probably the biggest change we have made so far just because we have to tie it in to the other two cameras.
I also consolidated the code to hide/show the crosshairs into a function. Once we get the basic mechanics worked out, I am going to clean up the code a bit, so there may be some more consolidations.

Thursday, June 2, 2011

Heads up!

Cliche, I know...oh well.  Here we add a basic HUD component in the form of a crosshair for aiming.  Then I work some trickery to make the crosshair disappear when we aren't aiming.

Cleaning up the chase cam

 
 I really didn't like how sloppy my first chase cam was, but you have to start somewhere!  I cleaned things up a bit by relaxing the chase cam AI so that it didn't do much if the ball velocity falls below a certain threshold or the ball was within a certain range of the camera.  This is actually more in line with what I wanted originally when I imagined the chase cam.  I like that the camera stays put as the ball slowly rolls away at the end of the shot.

The Belly of the Whale: Living a Creative Life in the Games Industry

Here is a great article by Bob Bates about working in the games industry.  I felt it had a lot of good insights into the psychology of game developers.  It was also interesting to hear how things are "on the inside" since I have never worked for a game company.

Wednesday, June 1, 2011

Matching the rotation of the ball to the camera and...Fire!


 Ok, so the next part is pretty easy, just match the rotation of the ball to the camera and launch the ball.  It doesn't really look as smooth as I would like it so I may change the chase cam code to be more stable.

Moving a camera with the mouse

Part of aiming the ball will be to move a camera in order to look at where you are aiming. I use the mouse controls to enable us to rotate the camera.

Taking a look at an algorithm and how it changed my design

 
 I am really bad at planning out the details of my game before I jump in and start coding.  You would think that I could at least do some basic outlining so that I know if I am going down the right path.  In this video I plan out a basic algorithm for aiming and launching the ball and then go about making the changes in my code to reflect the change.  Luckily it is early in the process so there are no major changes, but I had better keep that in mind for the future!