Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/borbware/tic80tileswap
Swap around tiles in a TIC-80 .lua file (requires TIC-80 pro)
https://github.com/borbware/tic80tileswap
Last synced: about 1 month ago
JSON representation
Swap around tiles in a TIC-80 .lua file (requires TIC-80 pro)
- Host: GitHub
- URL: https://github.com/borbware/tic80tileswap
- Owner: borbware
- License: mit
- Created: 2019-10-10T20:18:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-15T21:49:29.000Z (almost 5 years ago)
- Last Synced: 2024-08-01T23:31:03.217Z (5 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-tic-80 - tic80tileswap - 80 .lua file (requires TIC-80 pro). (Tools / Text)
README
# tic80tileswap
Tools for modifying sprite sheet and tile map in a TIC-80 .lua file (requires TIC-80 pro)
The tools modify the file in-place, so take a backup before trying them out.
## replaceTile.py
usage: `python replaceTile.py [file] [oldtile] [newtile] ([tile_length = 1])`
example: `python replaceTile.py game.lua 14 185 3`
replaces instances of `[oldtile]` with `[newtile]` in MAP and swaps them around in TILES.
if tile_length is given, swaps a range {oldtile, oldtile + tile_length} with {newtile, newtile + tile_length}
## swapCols.py
usage: `python swapCols.py [infile] [col1] [col2] [tile]`
example: `python swapCols.py game.lua 1 4 152`
swaps colours `[col1]` and `[col2]` in `[tile]`.
## removeEmptiesFromMap.py
usage: `python removeEmptiesFromMap.py [file]`
goes through the tilemap in `[file]` and replaces empty (all-black) tiles with tile 0.