From 14732cf00787c962ca054432428a8c3ed0cd6ac5 Mon Sep 17 00:00:00 2001 From: KansaiGaijin <83641841+KansaiGaijin@users.noreply.github.com> Date: Sun, 11 Aug 2024 01:30:22 +1200 Subject: [PATCH] Update Kanjin-Engine Adjusting how to initialise the script and start the server --- Kanjin-Engine | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Kanjin-Engine b/Kanjin-Engine index 54afc43..d3c16b0 100644 --- a/Kanjin-Engine +++ b/Kanjin-Engine @@ -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 current_inventory, current_equipment from player import * # 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):