My First Programm :)

Hi everyone! I Played around with codea, and this came Out. My FIRST programm, dont be dissapointed.

(i dont know how to Write the Code like you do…)

– Upgrade Town
– By max Taamussino

function setup()
print(“Press the button to upgrade the mall.”)
watch(“Mall”)
Mall = 1
ftc = color(225, 225, 225, 255)
ttc = color(176, 176, 176, 255)
c = ftc
isItRight = false

end

function touched(touch)
tx = touch.x
ty = touch.y

if touch.state == BEGAN then
    if tx>(WIDTH - 100) and tx<(WIDTH - 10) and ty>(HEIGHT - 100) and ty<(HEIGHT - 10) then
        c = ttc
        isItRight = true
    end
end

if touch.state == MOVING and isItRight then
    c = ttc
end

if touch.state == ENDED and isItRight then
    if Mall < 4 then
        Mall = Mall + 1
    end
    c = ftc
    isItRight = false
end

end

function draw()
background(35, 95, 31, 255)

spriteMode(CENTER)
tint(c)
sprite("Small World:Icon",WIDTH - 55, HEIGHT - 60)

tint(ftc)
spriteMode(CORNER)
if Mall == 1 then
    sprite("Small World:Store",(WIDTH/2)-20,(HEIGHT/2)-20)
end
if Mall == 2 then
    sprite("Small World:Store Medium",(WIDTH/2)-20,(HEIGHT/2)-20)
end
if Mall == 3 then
    sprite("Small World:Store Large",(WIDTH/2)-20,(HEIGHT/2)-20)
end
if Mall >= 4 then
    sprite("Small World:Store Extra Large",(WIDTH/2)-20,(HEIGHT/2)-20)
end

end