This story was written in LUA. I have to check my syntax (grammar) and logic.
--Joseph was hungry, so he decided to go to the store to get some food.
joey = newPerson("Joseph")
if joey.hungry then
GoToStore()
GetSomeFood()
end
--However, when Joseph got to the store it was closed. This made Joseph really upset! So he pouted all the way home.
store = newBuilding()
if store.closed then
joey.upset = true
PoutAllTheWayHome()
elseif store.open then
joey.upset = false
GetSomeFood()
BeContent()
end
--When Joseph got home, he went to the fridge and peered in.
home = newBuilding()
fridge = newObject()
if joey.isHome then
GoToFridge()
PeerIn()
end
--He saw some flour and some water. So he decided to make bread.
flour = newObject()
water = newObject()
if flour.seen and water.seen then
MakeBread()
elseif not flour.seen and not water.seen then
LookLikeASadPuppy()
end
--He had to mix the flour and water for 30 minutes. Then he had to knead it for 45 minutes. He had to let it rise three times, 20 minutes each time.
for m=0,30 do
Mix(flour,bread)
m= m +1
end
for k =0, 45 do
Knead(flour,bread)
k = k +1
end
for r =0,3 do
for k=0, 20 do
LetRise(flour,water)
k = k +1
end
r = r +1
end
--He then had to let the bread bake for about 2 hours
for t =0, 120 do
Bake(bread)
t = t+1
end
--Joey could finally eat!
joey.EatTheBread()
joey.happy = true
End()
Your turn! Make it Legible.