Highlight and press X on every tree in the first level. Then, press Start to display the options screen. If done correctly, the last option will be "Cheat". Select it to access a cheat menu with options for maximum mana, all spells, and all buildings.