https://github.com/dobin/nkeyrollover
ASCII side-scrolling beat-em-up game
https://github.com/dobin/nkeyrollover
Last synced: 9 months ago
JSON representation
ASCII side-scrolling beat-em-up game
- Host: GitHub
- URL: https://github.com/dobin/nkeyrollover
- Owner: dobin
- License: gpl-3.0
- Created: 2019-08-04T00:06:06.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-22T17:07:46.000Z (over 6 years ago)
- Last Synced: 2025-09-20T09:48:27.745Z (9 months ago)
- Language: Python
- Homepage:
- Size: 4.92 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
* [Asciinema v0.3v2](https://asciinema.org/a/ZaUxKWxRHMBljvz26MRy9lmcv)
## 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
```