python cli tool converts bmp to qbasic sprite display
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kami bf9a2b0d96 added --no-display flag 1 year ago
.gitignore init 1 year ago
README.md added --no-display flag 1 year ago
bmptobass.py added --no-display flag 1 year ago
requirements.txt init 1 year ago

README.md

Bmp2BasS

Converts a .bmp to a BASIC sprite display (“DATA”).

Installation

$ pip install -r requirements.txt

Help

$ py bmptopbass.py -h
usage: bmptobass.py [-h] [-i FILE] [-n NTH] [-s SCALE] [--no-display]

Converts a bmp to a BASIC Sprite

optional arguments:
  -h, --help            show this help message and exit
  -i FILE, --file FILE  file.bmp (default: image.bmp)
  -n NTH, --nth NTH     nth Pixel to get (default: 5)
  -s SCALE, --scale SCALE
                        Scale of Pixel in bmp to Pixel in Sprite (default: 10)
  --no-display          do not add help code (default: False)

Usage

You may need to adjust the colorkey in bmptobass.py.

$ py bmptobass.py -i image.bmp -n 5 -s 10 > sprite.bas

Now you can load sprite.bas in qb64 and run it. Sprite. Yay!