A simplified rebuilding of NS-SHAFT game which is written by python with only tkinter (without pygame).
python SinglePlayer.py
class PlayWindow(Canvas):
def __init__(self):
super().__init__(width = Constants.Canvaswidth,height = Constants.Canvasheight,background="white")
self.initGame()
self.pack()
def initGame(self):
'''Network Apply'''
self.SERVER = "140.118.115.124" # ← Modify the address here.
self.PORT = 5050
self.ADDR = (self.SERVER,self.PORT)
class PlayWindow(Canvas):
def __init__(self):
super().__init__(width = Constants.Canvaswidth,height = Constants.Canvasheight,background="white")
self.initGame()
self.pack()
def initGame(self):
'''Network Apply'''
self.CLIENT = "127.0.0.1" # ← Modify the address here.
self.PORT = 5050
self.ADDR = (self.CLIENT,self.PORT)
python '.\【Server】Doggy & Stairs - Network Version.py'
python '.\【Client】Doggy & Stairs - Network Version.py'