I'm a fan of the idea of changing code to effect the world! I like the idea that setting gravity to a positive number also flips the sprite.
I agree with some of the other minor critiques of the game (default jump barely reaching areas, time to hold R to restart is a little long - but maybe I'm just impatient).
Outside of that, good job!