Thursday, June 16, 2011

Code repository on github

I uploaded my AI script code files to github so you can view the complete code instead of relying only on the videos.  I'm doing this because sometimes it is easier to look around in the code when you are learning.  I consolidated all of the functions and event handlers for an AI into one file, but I couldn't do that for the AI variables--sorry.  So if you are following along in the code and see a reference preceded with "this" and you can't figure out where it is coming from, that's why.  I committed the code but it hasn't shown up on github so hopefully I am doing things right.

The great code cleanup!

Okay, so in my videos I keep saying that I will clean up the code and add some documentation.  As I have been working on some of the more complex features of the game, I realized that I needed to do the clean up now.  Last night I got through most of the code and got things straightened out and as a result I have also decided to publish the code so that people can take a look at it directly rather than just through video.  I'm working out the details, but the source should be up soon!

Wednesday, June 15, 2011

What I'm working on

I normally try to get videos out nearly every night, but I have run into some issues that are taking a bit longer to develop.  I am trying to implement rotating the objects in the game in addition to moving them.  While this is rather trivial on one sense, it is proving difficult because I am trying to setup a HUD overlay when you mouse over a movable object.  The overlay has a button for rotating the object.  So far I can get the overlay to appear in the correct position, but one of the issues I am having is that I have set the "onMouseLeave" event to hide the overlay but it doesn't seem to work the way I expected.  The other issue is that I want the overlay to be a circle around the object, but if I implement zooming in overhead mode, the objects will scale up and the overlay will need to scale up as well.  So I'm working on it--stay tuned....

Saturday, June 11, 2011

Moving objects in two parts!

 
 So we are now able to move objects within the game!  This is the first inkling of what the game may be like. Of course there will be several different types of objects within the game, but we will have to make due with the pillars for now.

Setting up the interface to move objects

In this video I change up some of the functionality so that when we are in "edit mode" we get our cursor back and we also get the ability to move around the screen.  The next step will be to allow us to actually move the objects so that we can position them in such a way that the ball will make it to the end of the level.

Thursday, June 9, 2011

The challenges of game balance

I think Understanding Balance in Video Games is a good article that points out some of the things that game developers need to think about in regards to game balance.  What I like about articles like this one is that it may not explain how to achieve game balance, but it at least gets you thinking about the issues.  I had not thought about some of the finer details of game balance and I also think I am beginning to understand where complexity comes from in a game.  Take Radioactive for instance, the game mechanics are fairly simple because the physics engine does most of the work, but the levels can be fairly difficult to balance properly - how many objects do you include within a level, what types of objects do you have, and what is the physical layout of the level?  When you consider that every collision surface within the level is potentially part of the solution, it can be difficult to add the right amount of challenge so that the level is not too easy and not too hard.

Tuesday, June 7, 2011

More bounce!

 
Ok, we have an overhead cam and a chase cam in place...let's add some objects!  Ok, so it's only one object because I found that by making the ball more bouncy, I also made the chase cam more bouncy.  As a result, I adjusted my chase cam code.  The result is simpler code and better behavior, so I think it was a win.  I like the iterative process that allows you to catch things like this along the way when it is easier to fix.  Keep your eyes open this week for more objects and maybe even the end target!