This is an extremely basic version, so decorate it how you like @Parker
-- Pause Test
-- Use this function to perform your initial setup
function setup()
paused = 0
playing = 1
state = paused
m = "Tap to play"
x,y = WIDTH/2,HEIGHT/2
end
-- This function gets called once every frame
function draw()
background(255, 224, 0, 255)
text(m,x,y)
if state==paused then
m = "Tap to play"
else
m = "Pause"
end
end
function touched(t)
if t.state==ENDED then
if state==paused then
state=playing
else
state=paused
end
end
end