Update Kanjin-Engine

Adjusting how to initialise the script and start the server
This commit is contained in:
KansaiGaijin
2024-08-11 01:30:22 +12:00
committed by GitHub
parent ae6e1d8952
commit 14732cf007

View File

@@ -1,10 +1,17 @@
from pywebio import start_server
from functions import wait, startGame, query_equip, change_equip, get_instructions, error_message, parse from functions import wait, startGame, query_equip, change_equip, get_instructions, error_message, parse
from functions import current_inventory, current_equipment from functions import current_inventory, current_equipment
from player import * from player import *
# pyinstaller --onefile --paths=C:\Users\kasai\PycharmProjects\pythonProject\Kanjin\KanjinEngine.py # pyinstaller --onefile --paths=C:\Users\kasai\PycharmProjects\pythonProject\Kanjin\KanjinEngine.py
user = Player(*startGame())
def game_logic():
name, gender, age, race, job = startGame()
put_text(f"Character Created: {name}, {gender}, {age} years old, {race} {job}")
if __name__ == '__main__':
start_server(game_logic, port=8080)
class Engine(object): class Engine(object):