im creating a game in canvas where the character (a pokemon) has gravity and has to move only in 2 directions (Left & right). The main idea of the game is that the character