smcamerons-python-adventure
smcamerons-python-adventure | smcamerons-lua-adventure | |
---|---|---|
3 | 1 | |
3 | 0 | |
- | - | |
2.6 | 0.0 | |
about 1 year ago | almost 5 years ago | |
Python | Lua | |
- | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
smcamerons-python-adventure
-
Source code for a 1977 version of Zork
I don't know if this counts, but I wrote a parser for "the ship's computer" in my game, "Space Nerds in Space". It's described here: https://scaryreasoner.wordpress.com/2016/05/14/speech-recogn...
I also wrote some toy "interactive fiction" things (with less sophisticated parsers) in python and Lua as a way to gain familiarity with those languages, not that they are very interesting in and of themselves, though they demonstrate a fairly standard technique behind these kinds of games in a compact way.
https://github.com/smcameron/smcamerons-python-adventure
https://github.com/smcameron/space-nerds-in-space/blob/maste...
-
Text adventure game.
Here's a trivial text adventure in python I made when I was starting to learn python: https://github.com/smcameron/smcamerons-python-adventure
-
Whats the best way to learn LUA?
The point though is to start with a very simple, well known, text only type of game, like interactive fiction or a "text adventure", or whatever they call Zork like games nowadays, which in its simplest incarnation is (or at least can be) pretty simple (i.e, mine is about 400 lines of Lua), but can be made arbitrarily more complex by adding new types of objects, object interactions, verbs, and sentence syntax that it can understand. It will give you a good feel for how to organize a Lua program, how to deal with data structures ("tables" in Lua), etc. It's simple enough, and being text only, you don't get caught up in details of the problem that don't actually have much to do with the language itself, but complex enough that you have to think a bit. I find it a good problem for new languages (I did the same thing when learning python.)
smcamerons-lua-adventure
-
Whats the best way to learn LUA?
Many people have a pet problem they deploy when learning a new language. For me, it is to write a Zork-like adventure game with a simple parser, rooms that you can move between, and objects you can pick up, drop, and examine, maybe with some support for words like "all", or "everything", or "it" to refer to the last object mentioned. Like this thing I made when I was first messing around with Lua Later, I made a much more complicated thing which is a kind of interactive fiction library in Lua used by a mission script for my space game.
What are some alternatives?
ink - inkle's open source scripting language for writing interactive narrative.
twinejs - Twine, a tool for telling interactive, nonlinear stories
YarnSpinner - Yarn Spinner is a tool for building interactive dialogue in games!
space-nerds-in-space - Multi-player spaceship bridge simulator game. Captain your starship through adventures with your friends. See https://smcameron.github.io/space-nerds-in-space
inform7-ide - A design system for interactive fiction based on natural language.