News for hackers. Stuff that matters.
Re:Show HN: My first Open Source project -- Teaching my son Lua by shawndumas on Monday May 21, 2012 @06:29AM (#4002156)
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.

Re:Show HN: My first Open Source project -- Teaching my son Lua by dividuum on Monday May 21, 2012 @08:21AM (#4002485)
You might have a look at two projects of mine related to gaming and lua:

http://geolua.com/ - Allows you to develop mobile games for the browser using lua. http://geolua.com/adventure/all-widgets-demo-132 shows a basic example.

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 has some example code.

Re:Show HN: My first Open Source project -- Teaching my son Lua by shawndumas on Monday May 21, 2012 @08:30AM (#4002506)
I will totally be checking them out. Thank you.
Re:Show HN: My first Open Source project -- Teaching my son Lua by dividuum on Monday May 21, 2012 @08:34AM (#4002517)
Feel free to contact me (email in profile) if you have any questions.
Re:Show HN: My first Open Source project -- Teaching my son Lua by shawndumas on Monday May 21, 2012 @08:35AM (#4002523)
Will do. Thanks again!
Re:Show HN: My first Open Source project -- Teaching my son Lua by Kototama on Monday May 21, 2012 @07:33AM (#4002318)
How old is your son?
Re:Show HN: My first Open Source project -- Teaching my son Lua by shawndumas on Monday May 21, 2012 @07:37AM (#4002331)
10; 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.