forked from vilmibm/tilde-train
Compare commits
No commits in common. "f972b9b5cddbe43c0cb12f796b26cfe7399a37a3" and "1162faad18789c27ecb5652af2d861347dbfd569" have entirely different histories.
f972b9b5cd
...
1162faad18
@ -1,15 +1,17 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
## _ _ _ _ _ _
|
||||
## | |_(_) |__| |___ | |_ _ _ __ _(_)_ _
|
||||
## | _| | / _` / -_)| _| '_/ _` | | ' \
|
||||
## _ _ _ _ _ _
|
||||
## | |_(_) |__| |___ | |_ _ _ __ _(_)_ _
|
||||
## | _| | / _` / -_)| _| '_/ _` | | ' \
|
||||
## \__|_|_\__,_\___(_)__|_| \__,_|_|_||_|
|
||||
##
|
||||
## tilde.train is an instance of TerminalTrain. It was originally developed
|
||||
## by cmccabe on tilde.town but is now maintained by vilmibm.
|
||||
## by cmccabe on tilde.town but is now maintained in tildegit with the main
|
||||
## development ocurring on rawtext.club.
|
||||
##
|
||||
## If you want to contribute code improvements, create a pull request here:
|
||||
## https://git.tilde.town/vilmibm/tilde-train
|
||||
## If you want to contribute to code improvement, or if you have suggestions
|
||||
## for cmccabe, create a pull request here: https://tildegit.org/cmccabe/TerminalTrain
|
||||
## or email cmccabe at cmccabe@rawtext.club
|
||||
##
|
||||
## -----------------
|
||||
##
|
||||
@ -25,7 +27,7 @@
|
||||
## * turn main loop into a function, so cmd line arg reader can call it (with -p) and quit.
|
||||
## * figure out why tilde.train doesn't work in some terminals (sthg sthg unicode...)
|
||||
## * BUGFIX-1 - something about inclusion default cars adding extra "links" to the train.
|
||||
## * the -p (print train) option should print all cars, not limited to the max_cars value.
|
||||
## * the -p (print train) option should print all cars, not limited to the max_cars value.
|
||||
## * related to BUGFIX-1, that seems to impact spacers (links) between cars.
|
||||
## * allow users to create multiple frames so their cars can be animated (difficulty=med+)
|
||||
## * allow user configurable speed and number of train cars
|
||||
@ -51,7 +53,7 @@ print_train = False ## print train to file (instead of the screen scroll)
|
||||
train = [""]*max_y ## empty train of correct height.
|
||||
cars = []
|
||||
|
||||
engine = r""" ____
|
||||
engine = """ ____
|
||||
|____| ------------
|
||||
| | === | ------ |
|
||||
___| |__| |_____| | O | |
|
||||
@ -63,7 +65,7 @@ engine = r""" ____
|
||||
//// \__/ \__/ \__/ \__/ """
|
||||
engine = engine.split("\n")
|
||||
|
||||
caboose = r""" ||
|
||||
caboose = """ ||
|
||||
============= ||
|
||||
=========| |==========
|
||||
| ---- ---- |
|
||||
@ -75,7 +77,7 @@ caboose = r""" ||
|
||||
\__/ \__/ \__/ \__/ """
|
||||
caboose = caboose.split("\n")
|
||||
|
||||
default_car = r""" ----------------------------
|
||||
default_car = """ ----------------------------
|
||||
| |
|
||||
| YOUR TRAIN CAR HERE! |
|
||||
| Just create a |
|
||||
|
Loading…
x
Reference in New Issue
Block a user