It doesn't really look too bad for what I assume is someone's early code, heck, I'm kind of in the same boat regarding every language.
If it isn't, that's fine too, learning is a continuous process.
The lack of "else"s is kinda weird but I don't know Lua, so I can't comment.
If I was making this in Assembly I'd make something like...
Code: Select all
Has the player pressed Select?
If so, set the flag that tells the game to display the map; if it is already set, then clear it. Else, ignore.
Is said flag set?
If so, Display map. Else end.
You should probably ask around for help on like Codehaus or something, try to study the documentation
if you haven't already. Make notes for you to reference later as you do your thang, instead of trying to memorize Everything
. I'd try to give you a hand but I don't know the ins and outs of SMBX, myself.
Cute Wolf avatar btw. I don't know if I ever told you that in the past, but I might as well. Wolf looks like he'd feel nice to cuddle, so would the rest of Star Fox and Star Wolf (except pigma and andrew tho, nothing against pigs or monkeys, these two are just ugly).
Best of luck in making your game a reality \o/