Exercise
Aufgabe 5: Inverting powerups
(a) Write a program to make Argo walk through a box and invert an image out of powerups. More precisely: Collect all powerups and place new powerups where there were none before.
(b) Change the other worlds to test your program.
Reminder:
- Removing a powerup:
removePow()
- Putting down a powerup:
putPow()
- Turning left/right:
turnLeft()
/turnRight()
Remember to save your results in the learning environment (Lernumgebung
)!