Learning Target:
I can program a Kodu character and an AI opponent to race along a path using simple conditional logic (WHEN/DO statements).
Success Criteria:
I will know I am successful when my Kodu responds to controller inputs to navigate the track smoothly. Additionally, my AI opponent must automatically follow a designated path and trigger an end-game screen when either character crosses the finish line.
This is the basic frame work for a racing game vs AI on Kodu. The programming is simple and easy to do, but can you think of ways to make the game more interesting or more challenging? The coding of the game is just to get the cycle from one end of the track to the other, and is copied with some slight tweaks for each player.
Changing the Game
Could we add some new characters as enemies? How could you change the way the world looks to give it a racing theme?
Notice how I turned off the Glass Walls at the end of the game? That's a really quick way to add some challenge to the game. With the Glass Walls turned off it means that the Cycles can fall to their doom!