3 ms·
A Lua Text Adventure Engine: Having settled on lua as a first 'real' programming language to teach my son I created a text adventure engine for him to code up s
by shawndumas 15y ago
A Lua Text Adventure Engine: Having settled on lua as a first 'real' programming language to teach my son I created a text adventure engine for him to code up some games. (He had a blast with MIT's Scratch and Lego's MindStorms.)
There are two complete, albeit short, examples for him / you to get started with. I am learning Lua as well and so far I love it. Since I am a beginner to Lua I am certain that I am not coding idiomatically; any suggestions are welcome.
- Kototama 15y agoHow old is your son?
- shawndumas 15y ago10; His eyes where glazing over when I was talking about abstract concepts. He really liked Scratch because it was immediately available; very audio-visual. Once I got one complete adventure written he was excited to do the second with me. Now hopefully he'll take one from cradle to grave with only oversight from me.
- dividuum 15y agoYou might have a look at two projects of mine related to gaming and lua: http://geolua.com/ http://geolua.com/ - Allows you to develop mobile games for the browser using lua. http://geolua.com/adventure/all-widgets-demo-132 http://geolua.com/adventure/all-widgets-demo-132 shows a basic example. http://github.com/dividuum/infon http://github.com/dividuum/infon - A multiplayer game where players control ant-like creatures using lua. They fight, evolve and compete for food. https://github.com/dividuum/infon/tree/master/contrib/bots https://github.com/dividuum/infon/tree/master/contrib/bots has some example code.
- shawndumas 15y agoI will totally be checking them out. Thank you.
- dividuum 15y agoFeel free to contact me (email in profile) if you have any questions.
- shawndumas 15y agoWill do. Thanks again!