Friday, October 5, 2012

October 2012 challenge, Day 5

If you look at it a certain way, then I'm almost done. If you look at it the real way, then all that's left is the stuff I'm not good at.

After some late night work, pre-work work, and lunchtime work, I've got the core ideas working so now it's mostly a matter of adding content (graphics, sound, music, more game objects, etc) and fine tuning it. I'm sure there will be a round of performance optimizations, a round of cross-platform hacks, a round of feedback from beta testers, a round of panicked hacking, and a round of October 30th surprises. But not today. Today is good.

I don't want to give away too much of what the game is about (October is only 17% done after all) but here's the AI for other creatures:

package;

class CreatureController
{
 public function new()
 {

 }

 public function update(creature:Creature):Void
 {
  var lowestScore = 1.0;
  var lowestNeed = creature.needs[0];

  for (i in 0 ... creature.needs.length)
  {
   if (creature.needScores[i] > lowestScore)
    continue;

   lowestScore = creature.needScores[i];
   lowestNeed = creature.needs[i];
  }

  lowestNeed.update(creature);
 }
}

And here's a screenshot:

It's hard to see but there's two different background colors. The large squares are plants, the medium squares are animals, and the tiny squares are fruits. The green bar is your happiness. Later the squares will be things that look like what they are.

4 comments:

  1. With the appearance of web revolution several job seekers square measure posting their workplace resumes on-line. nowadays several job seeking sites square measure maintaining roaring on-line interaction between job candidates and employers. my blog

    ReplyDelete
  2. Very challenging thing to do any development in the field of computer science. The developer must think beyond the level. He has to write the code or program with extra intelligence in order to take into working stream. For personal statement editing you may take the information.

    ReplyDelete
  3. I was writing a college statement of purpose on the same topic and i really appreciate your blog. It helped me a lot.

    ReplyDelete
  4. Seriously, I appreciate your good sense that you asked this question. I try to know this answer but I could not found the answer to this question. This is really so challenging and I like this challenge because without the challenge the life is dull and boring. You should to explore more with their.

    ReplyDelete