Skip to content

dobin/nkeyrollover

Repository files navigation

nkeyrollover

  • ASCII Beat Em Up
  • With MOBA controls

Follow the adventures of ASCIIMAN.

History Lesson

In the early days, computers were feed using paper punch cards, and produced results printed on paper.

Then mainframes came around, where you could actually type on a keyboard, instead of feeding it paper, and it showed the result on a primitive monitor, instead of printing the result. Multi user support was developed, so that more than one person can use the million dollar computer at once. Each at their own terminal. This was the short time where ASCII games were the only games available.

Shortly after, 8-bit home computers were developed, and those with graphic processing units quickly gained worldwide adoption (Commodore 64, Amiga). They could be used to play games, with graphics!

The timeframe for ASCII games was very short, and the art was lost forever.

Or was it?

Videos

Play It

telnet dobin.ch

Requirements

  • Python 3.7

Miscellaneous

Mypy

python3.7 -m mypy nkeyrollover.py

VSC settings.json:

    "python.linting.flake8Args": ["--ignore=E231,E203,E303,E252,E251", "--max-line-length=88"],

Unit tests

python3.7 -m unittest

Performance tests

python3.7 -m cProfile -s time -o perf.txt nkeyrollover.py
python3.7 readperf.py

Telnet config

Install:

# apt install telnet telnetd
# cd /opt
# git clone https://github.com/dobin/nkeyrollover.git
# touch nkeyrollover/app.log
# chown game:game nkeyrollover/app.log

Configure:

# adduser game # password game

With password

# chsh -s '/opt/nkeyrollover/nkeyrollover.py' game

Without password

man telnetd:

     -L loginprg  This option may be used to specify a different login program.  By default, /usr/lib/telnetlogin is used.

inetd.conf:

telnet          stream  tcp     nowait  telnetd /usr/sbin/tcpd  /usr/sbin/in.telnetd -L /opt/nkeyrollover/nkeyrollover-inetd.sh
# service inetd restart

Install?

Ubuntu 18.04:

sudo apt install python3-pip  # Install python 3.6 pip
python3.7 -m pip install pip  # install 3.7 pip
python3.7 -m pip install -r requirements.txt

About

ASCII side-scrolling beat-em-up game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages