forked from vilmibm/tilde-train
Rewrite car templates as list of strings
This lets us trim all the trailing whitespace in the file automatically.
This commit is contained in:
parent
29a8ffa91e
commit
6d4e7c7914
@ -52,40 +52,42 @@ print_train = False ## print train to file (instead of the screen scroll)
|
|||||||
train = [""]*max_y ## empty train of correct height.
|
train = [""]*max_y ## empty train of correct height.
|
||||||
cars = []
|
cars = []
|
||||||
|
|
||||||
engine = r""" ____
|
engine = [
|
||||||
|____| ------------
|
r" ____ ",
|
||||||
| | === | ------ |
|
r" |____| ------------",
|
||||||
___| |__| |_____| | O | |
|
r" | | === | ------ |",
|
||||||
| | | |__/V\_| |
|
r" ___| |__| |_____| | O | |",
|
||||||
[[ | |
|
r" | | | |__/V\_| |",
|
||||||
| | ------------ | ~town |
|
r" [[ | |",
|
||||||
|__|______________|__________|
|
r" | | ------------ | ~town |",
|
||||||
//// / _\__/__\__/__\ / \
|
r" |__|______________|__________|",
|
||||||
//// \__/ \__/ \__/ \__/ """
|
r" //// / _\__/__\__/__\ / \ ",
|
||||||
engine = engine.split("\n")
|
r"//// \__/ \__/ \__/ \__/ ",
|
||||||
|
]
|
||||||
|
|
||||||
caboose = r""" ||
|
caboose = [
|
||||||
============= ||
|
r" || ",
|
||||||
=========| |==========
|
r" ============= || ",
|
||||||
| ---- ---- |
|
r"=========| |========== ",
|
||||||
| | | | | |
|
r" | ---- ---- | ",
|
||||||
| ---- ---- |
|
r" | | | | | | ",
|
||||||
| tilde.town railways |
|
r" | ---- ---- | ",
|
||||||
==| |==
|
r" | tilde.town railways | ",
|
||||||
== - / \-/ \-----/ \-/ \ - ==
|
r"==| |== ",
|
||||||
\__/ \__/ \__/ \__/ """
|
r"== - / \-/ \-----/ \-/ \ - == ",
|
||||||
caboose = caboose.split("\n")
|
r" \__/ \__/ \__/ \__/ ",
|
||||||
|
]
|
||||||
default_car = r""" ----------------------------
|
|
||||||
| |
|
|
||||||
| YOUR TRAIN CAR HERE! |
|
|
||||||
| Just create a |
|
|
||||||
| ~/.choochoo file! |
|
|
||||||
| __ __ __ __ |
|
|
||||||
- / \-/ \------/ \-/ \ -
|
|
||||||
\__/ \__/ \__/ \__/"""
|
|
||||||
default_car = default_car.split("\n")
|
|
||||||
|
|
||||||
|
default_car = [
|
||||||
|
r" ---------------------------- ",
|
||||||
|
r"| |",
|
||||||
|
r"| YOUR TRAIN CAR HERE! |",
|
||||||
|
r"| Just create a |",
|
||||||
|
r"| ~/.choochoo file! |",
|
||||||
|
r"| __ __ __ __ |",
|
||||||
|
r" - / \-/ \------/ \-/ \ - ",
|
||||||
|
r" \__/ \__/ \__/ \__/ ",
|
||||||
|
]
|
||||||
|
|
||||||
def print_help():
|
def print_help():
|
||||||
print("")
|
print("")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user