Skip to main content

Edit ascii art scenes and control object overlay.

Project description

ascii-scenery-assembler

A tool that helps with putting ascii sprites over each other.

Guide

Requirements

  1. Python (3.10-ish or more recent recommended)
  2. pip for easy installation
  3. git for alternative installation (and the only way as of writing this) If you're not sure whether you have Python on your machine, type "python --version" in the terminal. If you get something like "no such command", go to https://python.org and get it from there.

Installation

Type git clone https://github.com/aal337/ascii-scenery-assembler.git in the terminal, then cd ascii-scenery-assembler, then pip install . , the dot is important.

As soon as asciiasm is available on PyPI: Type pip install asciiasm in the terminal.

Usage

  1. Type asciiasm in the terminal.
  2. Available commands:
    • load sprite path/to/sprite.txt where path/to/sprite.txt is the path to your sprite, which will be used as its name. Sprites currently have to be perfectly rectangular, including whitespace.
    • place sprite layer row column where layer is the number of the layer you want to put the sprite into, row the number of the row where the top left corner of the sprite should be, and column the number of the column. Rows/columns start at 0 and are counted from top to bottom/left to right. Layers start at 0, the higher the number, the further your sprite is
    • save canvas path where path is the path at which you want to save your canvas.
  3. End application:
    • CTRL + C
    • Type "exit tool"

Features

Currently, you may want to use something else with more QoL and customisation options. Analysing sprites to determine which whitespace fills a shape and which whitespace is outside of a shape to make the latter transparent is the main feature of this tool. See also: https://summer.hackclub.com/projects/6906

Disclaimer

I am not absolutely sure if everything works properly. Just take a look at the contents of the tests folder. Your terminal could behave weirdly after usage.

Contribution

If you've got feedback, send an email or open an issue.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asciiasm-0.1.0.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

asciiasm-0.1.0-py2.py3-none-any.whl (19.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file asciiasm-0.1.0.tar.gz.

File metadata

  • Download URL: asciiasm-0.1.0.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for asciiasm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f43dfead9df94833e260ef0c675ae7ce314969b4744980c50413068951ea5e7e
MD5 570f138fb6ec1d24ef3b9186829c4f23
BLAKE2b-256 f7384b2dffb7355693ca63f2b92eaa9adb146e1249173567ada7e485317c22e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for asciiasm-0.1.0.tar.gz:

Publisher: pypi-publishing.yml on aal337/ascii-scenery-assembler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file asciiasm-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: asciiasm-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for asciiasm-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c96e352d053c2b69a10336610a9d8f0d74bc9395ac3f7b92f69e4b4142ff329f
MD5 b1e8db8bade2fc369b7e4ffd7a0eef4e
BLAKE2b-256 5b1b339a11bb4375499fa2cc0166ab80488e8fef0a5090f749d5423b2e5f271d

See more details on using hashes here.

Provenance

The following attestation bundles were made for asciiasm-0.1.0-py2.py3-none-any.whl:

Publisher: pypi-publishing.yml on aal337/ascii-scenery-assembler

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page