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.
No comments:
Post a Comment