Skip to content

Instantly share code, notes, and snippets.

@kallepersson
Last active January 3, 2016 06:49
Show Gist options
  • Save kallepersson/8425437 to your computer and use it in GitHub Desktop.
Save kallepersson/8425437 to your computer and use it in GitHub Desktop.
What if Bash was an MMO-MUD?

What if Bash was an MMO-MUD?

  • You SSH to get access to this world
  • All players are represented by users
  • No standard GNU/UNIX commands are enabled

Locations are folders:

  • ".." as a concept does not exist but rather the world is bound together by linked folders
  • Symbolic links can also be portals of sorts
  • The system keeps track of all users' CWD and you can "see each other" if you are in the same directory
  • CHMOD can be used to restrict access to certain parts, so that you require for instance a boat to cross "water"

Entites are files:

  • The files contain info about the entity they represent
  • The file extension is a sort of category (monster, item, NPC, etc)
  • Monsters and other NPCs are executable bash scripts, which you can interact with.

As a player you stat, ls, cat and do other things. These commands are aliased to more RPG-y variants (less = lookat, ls = lookaround ...)

Home base:

  • Each user's home directory is its base (and can only be accessed by it).
  • If the current user's CWD is ~, it will regenate HP/MANA etc
  • In it there are items and NPCs etc.

Daemons:

  • Keep track of the environment, re-growing consumed items etc
  • CRON makes sure the world is populated with fresh monsters etc
@datacarl
Copy link

Instalike

@djui
Copy link

djui commented Jan 15, 2014

👍 clever

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment