added example platformer code