Hacker News new | ask | show | jobs
by peckrob 3353 days ago
I was literally JUST thinking about doing this today! Although I was thinking I would only do the actual core (connection handling, database, etc) in Go, and do much of the actual game programming in Lua so that players could extend the game.
1 comments

That's a good idea! I'm not even remotely sure how to do that. I tackled this project as a way to really dig in and learn Go, and I'm still working my way through it. I'm slowly learning more idiomatic ways of writing Go, but I'm not even sure how I'd go about extending the game with Lua or anything else. Got any resources on that kind of thing, or could you give a high-level description of how that might work, so I can explore the possibility?

I definitely need some scripting ability. For example, it would be nice if I could script mobs to perform certain actions during quests, something that I'd have to hard-code in Go right now.

I think gopher-lua on github could be useful to you
I'll check it out, thanks!