Thursday, August 28, 2008

In Between Lines of Code

When I'm taking a break from programming the game, I go ahead and relax by modeling, texturing, baking normal maps and animating for the game...

Chests will throw an item at you when you open them. Now I only need to implement items of course.

Saturday, August 23, 2008

Constructive Criticism?

Today I've been told that this blog is boring...

Harder, Better, Faster, Stronger

Actually none of those, just a little less dumb, but it's a step forward I say.

Enemies are now able to surround the player and impale him at will... the bastards will even start celebrating when they finish you off!

Sometimes it takes a little time for the last enemy to reach that final open spot though, but I think I can improve that.

Friday, August 22, 2008

AI improvements: GO beware!

The evil empire of the teddy incident game ( I'm sorry, the bad guy's faction has no official name yet ) is proud to inform you that enemy IQ is steadily raising among their lines.

Now and again a couple of enemies with lemming complex will appear, and decide they rather wander around and jump off a ledge than patiently patrol their assigned area and wait to be slaughtered by a sociopath kid with an axe. Will have to teach them not to do that!

The ones that don't jump though are quite fun to kill.

Some glitches here and there of course. Mainly when finding obstacles in their way: There's absolutely no pathfinding going on. Might want to address that sometime soon...

Also, when in large numbers they can obstruct each other, but it only affects when many are trying to go to the same place

E.g. When trying to surround a player only the front line of enemies will reach him. The rest will probably get stuck behind the first line.

I'll probably need steering behaviours or something like that. We'll see what I have time to come up with.

All that aside, did I mention that the game is starting to be fun?

Here is a test screenshot of the main character being pursued by a bunch of standard bad guys.

By the way, AI is one of those things I dread the most working on: it's a never-ending stream of little tweaks... and immensely difficult to get juuust right.

And difficult as hell to debug sometimes!

Saturday, August 16, 2008

Busy Busy Busy

I've been working non stop on the masters game: It's due in less than a month, and that's very little time.

Anyway, I'm really glad that at the start of the project I spent a good amount of effort working on tools.

For example, the animation system is proving invaluable time and time again.

Just for fun, two screens of the editor with the animation trees we are using.

This enemy's animation tree is a very simple one, it just has a parameter to change the current animation.
But that's the beauty of it, you can complicate it as much as you want, that it won't affect much your final application code.

The player animation tree is a little bit more complex, but not all that much.

All the animations of the player are controlled by 5 parameters.
There is a main parameter to control the current animation, while the other parameters are for miscellaneous stuff to breathe life into the character ( e.g. Two parameters control the head orientation ).

By the way... somewhere between concept art and animation the main character lost its brows... eerie!

Saturday, August 9, 2008

A Necessary Post

I keep visiting this post to remember the XSI script I wrote to discard the W coordinate in explicit UVW texture projections, so here it is.

Now I hope won't have to search for it again in the Ogre forums.

The projection object must be selected for it to work.

set projection = Selection( 0 )
set objects = projection.parent

TranslateUVW objects, projection, 0, 0, 0, siAbsolute, siW, true

I almost forgot: A picture to appease my non technical friends...

Wednesday, August 6, 2008


This is an image I created some time ago for an online photo manipulation contest.

The idea with this type of contests is that you are supplied with some images that you use in any creative way you can come up with to make a new piece of artwork. Lots of fun.

On this page you can see the source images used.

Monday, August 4, 2008

Drawing Lines

Been working on my tools lately. I've added path creation and editing ( add, move and remove points ) capabilities to The Teddy Incident level editor.

It comes from the recent addition of movable platforms to the game. About time some might say, it's a platform game after all...

Using the same path infrastructure, enemies can have an associated path that their AI scripts can use as they see fit.

Being able to visually manipulate path points around is a great time saver.

Here's an image of how it looks in the editor ( Click for a larger image ).