Code:
background=loadImage("background.png")
Person = { "Abraham", "Adolf Hitler", "Agamemnon", "Alfonso Ribeiro", "Ariel Sharon", "Barbara Walters", "Benedict Arnold", "Bob Saget", "Bruce Vilanch", "Buford Pusser", "Charlemagne", "Conan the Barbarian", "Dennis Kucinich", "Eleanor Roosevelt", "Elle McPherson", "Ernest Hemingway", "Ezra Pound", "Fred Rogers", "Galileo", "Gary Condit", "Geronimo", "Hera", "Jack the Ripper", "Jethro Bodine", "John Quincy Adams", "Judge Judy", "Julius Caesar", "Kid Rock", "King Arthur", "King Kong", "Lando Calrissian", "Lex Luthor", "Lucille Ball", "Mahatma Gandhi", "Marshall Applewhite", "Mark Felt", "Meriweather Lewis", "Mother Teresa", "Napoleon", "Osama bin Laden", "Patrick Ewing", "Philo T. Farnsworth", "Ray Charles", "Robert DeNiro", "Robert Novak", "Salvador Dali", "Samuel Clemens", "Stanley Kubrick", "Steve Jobs", "Thomas Edison" }
EventsA = { "assassinating", "at the crucifixion of", "comparing scars with", "doing the Vulcan nerve pinch on", "engaging in fisticuffs with", "feeling up", "finding a potato chip shaped like", "giving a black eye to", "giving the Heimlich maneuver to", "going bowling with", "going on a road trip with", "playing chess with", "putting the moves on", "running a three-legged race with", "running over", "saying a eulogy for", "sharing a Big Mac with", "singing a duet with", "snorting coke with", "starring in a TV movie about the life of", "stealing the election from", "swapping baseball cards with", "waxing philosophical with" }
EventsB = { "at the Astrodome", "at the burning of Rome", "at Woodstock", "crossing the Delaware", "eating a balanced breakfast", "ending the War of 1812", "getting abducted by a UFO", "in detention", "in the nude", "inventing a better mouse trap", "jacked into the Matrix", "on the grassy knoll", "on steroids", "proclaiming that Dewey has defeated Truman", "riding around on a go-cart", "singing karaoke", "visiting a pet store", "walking on the moon" }
math.randomseed( os.time() )
math.random()
function gameover()
clearscreen()
os.exit(0)
end
function presskeytocontinue()
--print("\n<Press Key to Continue>\n")
repeat
pad = ctrlRead()
until isCtrlUp(pad) or isCtrlDown(pad) or isCtrlLeft(pad) or isCtrlRight(pad) or isCtrlCircle(pad) or isCtrlCross(pad) or isCtrlTriangle(pad) or isCtrlSquare(pad) or isCtrlStart(pad) or isCtrlSelect(pad)
if isCtrlSelect(pad) then
gameover()
end
end
function clearscreen()
--flipDrawFrame()
--fillBackground(0, 0, 480, 272)
blitImage(0,0, background)
end
function wait(blinks)
for i=0,blinks do
waitVblankStart()
end
end
while true do
Sentence = "It's like "
Sentence = Sentence .. Person[math.random(table.getn(Person))] .. " "
if math.random() < 0.4 then
Sentence = Sentence .. "and " .. Person[math.random(table.getn(Person))] .. " "
end
if math.random() < 0.5 then
Sentence = Sentence .. EventsA[math.random(table.getn(EventsA))] .. " " .. Person[math.random(table.getn(Person))]
if math.random() < 0.2 then
Sentence = Sentence .. " " .. EventsB[math.random(table.getn(EventsB))]
end
else
Sentence = Sentence .. EventsB[math.random(table.getn(EventsB))]
end
Sentence = Sentence .. "."
print(Sentence)
presskeytocontinue()
clearscreen()
wait(25)
end
Bookmarks