All,
Found this while I was taking a break from a bit of heavy coding. Thought I’d post up - but, tried to correlate printing up the emoji images in time with the text - no joy. So if any of you know the trick - please add to the code.
-- FlySwallowing
function setup()
--
fontSize(64)
fill(255, 255, 255, 255)
poem()
end
function draw()
--
end
function poem()
--
for sp = 0,7 do
speech.say("There was an old lady who swallowed a "..animals[sp+1])
if sp > 0 then speech.say(phrases[sp+1]) end
if sp == 7 then break end
if sp > 0 then
for j=sp,1,-1 do
speech.say("She swallowed the "..animals[j+1].." to catch the "..animals[j])
if j==2 then
speech.say(phrases[2])
end
end
end
speech.say("I don't know why she swallowed a fly - Perhaps she'll die!")
end
end
animals = {"fly", "spider", "bird", "cat","dog", "goat", "cow", "horse"}
phrases = {
"",
"That wriggled and jiggled and tickled inside her",
"How absurd to swallow a bird",
"Fancy that to swallow a cat",
"What a hog, to swallow a dog",
"She just opened her throat and swallowed a goat",
"I don't know how she swallowed a cow",
" ...She's dead of course"
}
emojis = {}
Emojis didn’t show up but they are fly, spider, bird, cat, dog, goat, cow, horse- all accessible from Codea emojis (note bird is a parrot!!!).