Skip to content

Multi-User Dungeon game prototype for the High-level Programming Languages class.

Notifications You must be signed in to change notification settings

weywocketer/mud

Repository files navigation

Multi-User Dungeon game prototype

Overview

Prototype of a platform for the text-based multiplayer game, created using Python.

  • Clients can interact with the world by sending player commands to the server.
  • In fixed intervals, server sends updated world information to clients.
  • Communication based on TCP protocol — due to relatively wide server fixed intervals, higher packet delays are not a big concern.
  • Multithreading is used to handle multiple server connections.
  • Clients use text-based user interface (TUI) created with npyscreen library.

Repository contains .pdf file with presentation (in Polish) describing the base concepts of the project.

Usage

Tested with Python 3.9
Required libraries: windows-curses (on Windows), npyscreen

Launch instructions:

  1. Run the server (mudServer.py)
  2. Run clients (mudClient.py) — make sure that the terminal window in which client is run is quite large (as the Text User Interface will open in this window), otherwise the app will crash.

In game, player can use the following commands:
move [destination name] — move to adjacent location
shout [message] — send message visible to all players present at your location
say [target name] [message] — send message to specific player present at your location

About

Multi-User Dungeon game prototype for the High-level Programming Languages class.

Topics

Resources

Stars

Watchers

Forks

Languages