The best app to be made on Codea… BEHOLD!!!
-- GusNameGenerator
-- Use this function to perform your initial setup
function setup()
displayMode(FULLSCREEN)
names={"Die Harder", "Bighead Burton", "Homeskillet", "Big Baby Burton", "Burt the Billowy Bear", "Blackstar", "Chocolate Columbo", "Magic Head", "Slicks", "Peter Panic", "Gus T.T. Showbiz", "Ovaltine Jenkins", "Schoonie “U-Turn” Singleton", "Vernest Lambert Watkins", "Nick Nack", "Bruton Gaster", "Lavender Gooms", "Lemongrass Gogulope", "Squirts MacIntosh", "Dr. McTook", "Galileo Humpkins", "Gus “Silly-Pants” Jackson", "Fearless Guster", "Shmuel Cohen", "Methuselah Honeysuckle", "Paddy Simcox", "Chesterfield McMilla", "Felicia Fancybottom", "Black and Tan", "Ernesto Agapito Garces con y a de Abelar", "Longbranch Pennywhistle", "Watson Williams", "Scrooge Jones", "Hummingbird Saltalamacchia", "Wally Ali", "Dequan “Smallpox” Randolph", "Trapezius Milkington", "Sterling Cooper", "Burton “Oil Can” Guster", "Hollabackatcha", "Jazz Hands", "Gus Brown", "John Slade", "Detective Miles", "Ron Davis", "Black", "Cheswick", "Shawn", "Magic Eight Ball Head", "Ghee Buttersnaps aka “The Heater”", "The Vault of Secrets", "Jonathan Jacob Jingley-Schmidt", "Santonio Holmes", "Deon Richmond", "Chaz Bono", "MC ClapYoHandz", "G-Force", "Imhotep", "Control Alt Delete", "Donut Holestein", "Yasmine Bleeth", "Lodge Blackman", "Mission Face", "Radio Star", "Trending Ontwitter","Gus the fairy", "Bologna", "Denzel Diggs Underwood Moris Chestnut Washington", "Matt", "Slicks", "Bud", "Black Magic", "Guts", "Gurton Buster", "Mrs. Whittlebury", "Jet Blackness", "Burton Guster Black Spencer", "Bill Ofrights", "Blu Ivy Carter", "Brunton Gastor", "Burton Guster", "Burton Trout", "Darnel Guster", "Hammerin' Gus", "Jonas Gustaphson", "Magic Wish Machine", "Robert Jones", "Sh'Dynasty", "The Wiz", "Winston Zedmore", "V.J.Armitrage", "“Bad News” Marvin Barnes", "Black Cameron", "Black Magic", "Brown Sugar", "Burtine Guston", "Burton Gout-ster", "Count Blackula", "Doma Oragato", "Felicio Del Toro", "Gern Blantston", "Hurricane Carter", "Immaculate Conception", "Django Unchained", "Jet Blackness", "Lerenz Take", "Mr. Tips", "Otis", "Recap Mcgee"}
buttonx=WIDTH/6
buttony=HEIGHT/7
button2x=WIDTH/1.3
button2y=HEIGHT/7
screen = 0
talking = true
--mySound = 0
taps = 0
end
-- This function gets called once every frame
function draw()
-- This sets a dark background
background(255, 255, 255, 255)
if screen == 0 then
sprite("Documents:sadGus",WIDTH/2,HEIGHT/2,WIDTH,HEIGHT)
sprite("Cargo Bot:Dialogue Box",buttonx,buttony,300,150)
font("Futura-CondensedMedium")
fill(255, 255, 255, 255)
fontSize(40)
text("Get A Gus Nickname",buttonx,buttony)
fontSize(75)
text("Welcome to the Gus nickname generator",WIDTH/2,HEIGHT-50)
end
if screen == 1 then
sprite("Dropbox:Gus",WIDTH/2, HEIGHT/2, WIDTH, HEIGHT)
fill(255, 255, 255, 255)
fontSize(80)
font("Futura-CondensedMedium")
textWrapWidth(WIDTH)
sprite("Cargo Bot:Dialogue Box",button2x,button2y,300,150)
fontSize(50)
text("Get Another",button2x, button2y)
text(chosenName,WIDTH/2,HEIGHT/3)
end
-- This sets the line thickness
strokeWidth(5)
-- Do your drawing
end
function touched(touch)
if screen == 0 and touch.state == BEGAN and touch.x > buttonx-150 and touch.x < buttonx+150 and touch.y > buttony-75 and touch.y < buttony+75 then
taps = taps + 1
screen = 1
chosenName=names[math.random(1,#names)]
--nameSounds()
elseif screen == 1 then
screen = 1
end
if screen == 1 and touch.state == BEGAN and touch.x > button2x-150 and touch.x < button2x+150 and touch.y > button2y-75 and touch.y < button2y+75 then
mySound:stop()
taps = taps + 1
chosenName=names[math.random(1,#names)]
nameSounds()
end
end
I also have sound files that go with each name, I don’t know how to put sound files into a discussion, if there’s a way please tell me and I’ll post them.