[CORONA] I’m Making a Word Game!
That’s right guys, I’m goin educational al ova yo asses!
*Ahem* So I’m currently working on a word game and I thought it would be fun to share the things I learn as I go. They will mostly be in Issue:Solution format so here is number 1!
Issue: The dictionary I downloaded doesn’t have any slang (“pee” for example) so I need a way for users to add words to the dictionary BUT it has to be moderated or else they could add the alphabet and just troll the crap out of my game’s leader-boards…damn trolls
Solution: I think the best thing to do is allow users to email word suggestions and then I can add them to the database. I’ll eventually make it so they can update the database as words are added but for now words will be in updates. So here is my email button:
1 2 3 4
local function newMail(event) system.openURL( "mailto:email@example.com?subject=New Word Suggestion&body=") end mail:addEventListener("tap", newMail)
So you’re gonna have to find your own email button because mine is too awesome…but basically this opens up the mail client. I don’t think this works for iOS or Android but it does for Nook which means there’ll be a follow up on other platforms because I’ll be uploading to iOS and Nook. For the code, you’re gonna wanna change “firstname.lastname@example.org” to your email and “New Word Suggestion” to whatever you want the subject to be.
There you go, an email button.