you get 1 yellow resource each time you level up from killing monsters. They'll be a codex in the future that explains that type of stuff better in the future.
thanks! I was reviewing the version histories and wanted to inform you that a few upgrades still require one "green cube" to complete. I think one of them was for halving the townsfolk upgrade times.