Archive for February, 2010

Stumbling over myself – Part I

February 27th, 2010

This could rather be a post on I Get Your Fail, a very entertaining site by the way. I started to note down stupid mistakes which took hours* to resolve, so here are the first two:

Case 1: happened @Level Master 2000, Qt/C++:

if( something = 0 )
{
    //...
}

Eventhough I debugged over this several times, I just kept wondering why something suddenly is null, and of course, being new to Qt, I claimed it to be causing that…what else should I say: I’m sorry Qt, for being so mean!
A colleague of mine told me, that in such cases, some people prefer to write 0 == something, cause if you forget the second “=”, you get an error. I’ve tried to adapt to this way of coding, but it somehow looks really weird, and I can’t say for sure if I can continue with this style…(more errors to come! =) )

Second case: I recently did some C# programming again, loving to use properties. But if so, it can be evil to use them before they are initialized / assigned to (well, actually this applies to all members, not only properties):

//In a constructor...
someotherthing = something * NumTiles
 
NumTiles = numTiles

So in that case, using NumTiles before being initialized, resulted in NumTiles returning zero, which led to someotherthing being total nonsense…and resulting in me going crazy!

I’m curious about the next time(s) I’m gonna stumble over myself again – it’s only a matter of time, I’m sure about that.

*: Ok, not maybe real hours, but at least it feels like so…

Back on track

February 23rd, 2010

Starting with today, I’m back on development of Level Master 2000. As posted previously, I’m going to do some refactoring first, and then come up with new features. One of the first will probably be project/scene management, as it’s a useless tool if one can’t save his current progress…
But more on that as soon as I’ve cleaned up the whole thing ;)

Squaby: iPhone tower defense

February 19th, 2010

Last semester, we worked on a “path based tower defense” game for the iPhone. It’s going to get finished next semester, but anyhow, here’s a work in progress video capture:

In case somebody doesn’t know what the goal of a tower defense game is: you must not let the monsters get under your bed…kill them as cruel as possible ;)

I’ll post my experiences of this whole process as soon as time allows!

First presentation of Level Master 2000!

February 14th, 2010

As promised, I’ve created a short presentation, which shows the currently implemented features:

Regarding further development: I’m on holidays* the upcoming and parts of the following week. I already got concrete refactoring plans and will post what features are to come after that.

*: Holidays in sense of going snow boarding and working on an old XNA based title we’ve worked on half a year ago, and needs some polishing in order that it can be able to be used in my portfolio. But more info on that when the time has come ;)

Polishing for presentation

February 5th, 2010

The first presentation of the one and only Level Master 2000 is comming closer and closer. The last few days (and the next ones ;) ) I’ll be putting all my effort to setup a nice little demo scene which can be edited. As soon as the presentation is over, I’ll post the results (meaning the scene), maybe a video, and future development plans!