Not a bad effort for a first game, try googling 'better jump mechanics' for some alternative was to code the jumping mechanic. If jumping is the main mechanic of the game its worth putting more time into making it as smooth and fun as possible.