[#228] updated the platformer example to comply with the new “API”