function init() { for (var id = 10; id <= 13; id++) { addBringCrateToPlatformObjective(id, 1); } }

function onSwitch(s) { switch (s.getID()) { case 30: gameControl.getObjectById(22).toggle(); break; case 31: gameControl.getObjectById(23).toggle(); break; case 32: gameControl.getObjectById(22).toggle(); gameControl.getObjectById(23).toggle(); gameControl.getObjectById(25).toggle(); break; case 33: gameControl.getObjectById(22).toggle(); gameControl.getObjectById(23).toggle(); gameControl.getObjectById(26).toggle(); break; case 34: gameControl.getObjectById(20).toggle(); gameControl.getObjectById(22).toggle(); break; case 35: gameControl.getObjectById(21).toggle(); gameControl.getObjectById(23).toggle(); break; } }

function onObjectiveReached() { gameControl.finish(); }