Hi there,
I'm a retro gamer and hobby-programmer. Currently I'm programming a simple Atari game. The programming language is plain C (Ansi-C / C89) . I'm using the CC65-crosscompiler package, but I don't think the platform/language is of big importance to my question.
I'm facing the challenge to program a real arcade game. But I have some difficulties to start on implementing the logic of my opponent "gopher". It's getting more and more complicated and I would like to ask here to get some introduction/best practice from you.
[attachment=35844:reference_320.png]
A little introduction to my game: It's a about a gopher (AI/opponent) who lives in the cave. It's digging in 6 pre-defined slots up to the surface where the the farmer (player) watches his carrots. The gopher wants to steal the carrots. The farmer has a shovel and can hit the gopher while it is on the surface. If the gopher got all carrots, the game is over. If the farmer catches the gopher he get points. The farmer also can close the slots by using his shovel.
So the game itself is pretty basic. But I don't know where to start and how I should construct / define the behavior and map that to actions like left, right, up, down.
Of course the Atari is not a particular AI/algorithm platform, so there must be some basic principles. I just wonder how it could be done using some simple C-control / switch statements.
thanks for any help,
Thomas