Difficult-Rocket/SR-PY.py

28 lines
560 B
Python
Raw Normal View History

2020-11-28 15:17:44 +08:00
"""
writen by shenjackyuanjie
mail: 3695888@qq.com
"""
2020-11-28 20:36:43 +08:00
import pyglet
import libs
2020-12-05 14:57:43 +08:00
import json
2020-12-05 21:24:54 +08:00
import sys
import os
2020-11-28 15:17:44 +08:00
def main():
2020-12-05 21:24:54 +08:00
main_path = "d:\\git\\SR"
os.chdir(path=main_path)
py_v_info = sys.version_info
py_v = str("%d.%d.%d" % (py_v_info[0], py_v_info[1], py_v_info[2]))
print("Simple Rocket is running on Python Vision %s" % py_v)
if py_v_info[0] == 2:
raise Exception("Simple Rocket need python vision 3+")
game = libs.main.Game
game.setup(game)
game.start_game(game)
2020-11-28 15:17:44 +08:00
if __name__ == "__main__":
2020-12-05 21:24:54 +08:00
main()