Page 93 - ThinkGPT_V2.1_C4_Flipbook
P. 93
Similarly, we can code our bot further as follows:
2 Click on plus sign
to code your bot.
Events from the WHEN section will be used to start the 'DO'
section.
When statements in the WHEN part become true, the actions in the
DO section take place.
3 Select Keyboard
from the menu.
4 Click on the
plus sign again
and select WASD.
Now we will add an opponent to our game.
5 Right-click on the
cycle and select Copy
from the popup menu.
Introduction to Kodu Game Lab 91

