This repository has been archived on 2022-12-03. You can view files and clone it, but cannot push or open issues or pull requests.
texty/__main__.py

17 lines
384 B
Python
Raw Normal View History

2021-11-02 17:40:54 +01:00
from sys import argv
2022-01-25 17:16:07 +01:00
from lib.game import *
from colorama import init
2021-11-02 17:40:54 +01:00
2022-01-26 09:23:30 +01:00
def main(): # TODO: Maybe a menu for available text games?
init()
2021-11-02 17:40:54 +01:00
if len(argv)<2:
print("You need to specify a path to a YAML file")
exit(1)
else:
game = load(argv[1])
2021-11-26 22:13:30 +01:00
if(game is None):
exit(1)
2022-02-04 19:35:38 +01:00
game.main_menu()
2021-11-02 17:40:54 +01:00
if __name__ == "__main__":
2021-11-26 22:13:30 +01:00
main()