1
Fork 0
mirror of https://github.com/Steffo99/flyingsnake.git synced 2024-12-22 06:34:18 +00:00

Add "flyingsnake" console entry point

This commit is contained in:
Steffo 2019-08-28 16:28:54 +02:00
parent 7c9387c9d9
commit 9e4549c4ed
2 changed files with 12 additions and 7 deletions

View file

@ -23,7 +23,7 @@ python3.7 -m pip install flyingsnake
To create a basic world map named `Output.png` from the `Small_Example.wld` file present in your current working directory, run in your terminal: To create a basic world map named `Output.png` from the `Small_Example.wld` file present in your current working directory, run in your terminal:
``` ```
python3.7 -m flyingsnake Small_Example.wld Output.png flyingsnake Small_Example.wld Output.png
``` ```
### Layers ### Layers
@ -43,7 +43,7 @@ The background layer is made by coloring the Overworld, the Underground and the
It can be selected exclusively with the `--background` flag, or turned off with the `--no-background` flag. It can be selected exclusively with the `--background` flag, or turned off with the `--no-background` flag.
![The background layer](https://i.imgur.com/69qRLZX.png) ![flyingsnake Small_Example.wld Output.png --background](https://i.imgur.com/69qRLZX.png)
#### Walls #### Walls
@ -54,7 +54,7 @@ It can be selected exclusively with the `--walls` flag, or turned off with the `
If the walls are painted, they will be colored with the paint color. If the walls are painted, they will be colored with the paint color.
You can turn off paint colors with the `--no-paints` flag. You can turn off paint colors with the `--no-paints` flag.
![The wall layer](https://i.imgur.com/Grkq5PQ.png) ![flyingsnake Small_Example.wld Output.png --walls](https://i.imgur.com/Grkq5PQ.png)
#### Liquids #### Liquids
@ -62,7 +62,7 @@ The liquids layer contains the colors of the liquids present in the world (water
It can be selected exclusively with the `--liquids` flag, or turned off with the `--no-liquids` flag. It can be selected exclusively with the `--liquids` flag, or turned off with the `--no-liquids` flag.
![The liquids layer](https://i.imgur.com/Pifjb4D.png) ![flyingsnake Small_Example.wld Output.png --liquids](https://i.imgur.com/Pifjb4D.png)
#### Blocks #### Blocks
@ -73,7 +73,7 @@ It can be selected exclusively with the `--blocks` flag, or turned off with the
If the blocks are painted, they will be colored with the paint color. If the blocks are painted, they will be colored with the paint color.
You can turn off paint colors with the `--no-paints` flag. You can turn off paint colors with the `--no-paints` flag.
![The blocks layer](https://i.imgur.com/E05kgOA.png) ![flyingsnake Small_Example.wld Output.png --blocks](https://i.imgur.com/E05kgOA.png)
#### Wires #### Wires
@ -81,7 +81,7 @@ The wires layer is a semi-transparent overlay of the wires present in the world.
It can be selected exclusively with the `--wires` flag, or turned off with the `--no-wires` flag. It can be selected exclusively with the `--wires` flag, or turned off with the `--no-wires` flag.
![The wires layer](https://i.imgur.com/XDLRCAE.png) ![flyingsnake Small_Example.wld Output.png --wires](https://i.imgur.com/XDLRCAE.png)
### Custom colors ### Custom colors

View file

@ -23,5 +23,10 @@ setuptools.setup(
"Development Status :: 4 - Beta", "Development Status :: 4 - Beta",
"Operating System :: OS Independent", "Operating System :: OS Independent",
"Programming Language :: Python :: 3.7" "Programming Language :: Python :: 3.7"
],
entry_points={
"console_scripts": [
"flyingsnake = flyingsnake.__main__:flyingsnake"
] ]
}
) )