slacker-game/slacker_game/__main__.py

13 lines
235 B
Python
Raw Permalink Normal View History

2020-09-05 11:09:52 +02:00
from slacker_game import Slacker
2020-09-06 10:51:54 +02:00
def main() -> None:
2020-09-06 09:40:55 +02:00
"""Run game."""
2020-09-06 09:24:37 +02:00
with Slacker() as slacker:
2020-09-06 09:40:55 +02:00
for i in iter(slacker.handle_events, False):
slacker.update_screen()
2020-09-05 11:09:52 +02:00
2020-09-06 09:40:55 +02:00
if __name__ == '__main__':
main()