Sunday, 7 December 2008

Warning Warning, a coding post

if (!coding && (weekend == true))
{ // better do some laundry

if (washer == empty)
{
if (ClothesInWasherBasket>0)
{
Printf("Bloody hell, didn't expect that)
LoadWasherWithClothesFromBasket(ClothesInWasherBasket);
Printf("Better have a look around just in case though!");
LoadWasherWithClothesonFloor(&Bedroom,&Bathroom);
}
else
LoadWasherWithClothesonFloor(&Bedroom,&Bathroom);

}

else
{ // washer must be full so...
PutDampStuffinDryer(TimeToDry);
Laundry = wet;
}

if (Laundry == dry) DotheIroningDude();

}

else

{
DoNothingElseButCode(noReally);
if ((rand(100) >=60) && DoWeHaveTime == true) MaybePlayAGame(OptionalDrinkLotsofBooze);
}

Anyway, quiet couple of days, been busy working away on my DS game engine, which need some extra physics added to it to improve its collision detection systems. I still haven't managed to get to Ikea but I promise I will soon, but a couple of good nights sleep have left me refreshed and felling a lot better so am cracking on with everything as fast as I can.

Working with Dino on a project and he has asked for these improvements which gives me an excuse to dive into code I wrote over a year ago and optimize and enhance it.








Ahthankyew

No comments: