from JMSSGraphics import *

jmss = Graphics(width = 800, height = 600, title = "Final Game!", fps = 60)

ypos = 550
yvel = 0

@jmss.mainloop
def game():
    global ypos, yvel
    jmss.clear()
    ypos = ypos - yvel
    yvel = vvel + 0.2

    if ypos <= 0:
        ypos = 0
        yvel = -1 * yvel

    jmss.drawImage("mario.png", x = 350, y = ypos)

jmss.run()
