npyscreen-adventure-game #8
|
@ -10,8 +10,13 @@ class QuitButton(npyscreen.ButtonPress):
|
|||
|
||||
|
||||
class GameNavigator(npyscreen.FormBaseNew):
|
||||
# def afterEditing(self):
|
||||
# it self.parentApp.setNextForm('GAME')
|
||||
"""
|
||||
This class handles all the drawing and 'graphics' of our game.
|
||||
only basic logic like initial loading should happen here. re-drawing
|
||||
and game logic should be done in Handler.py
|
||||
TODO: Find a fix for initial room startup
|
||||
TODO: Find a way to reset the cursor after a user hits sendButton
|
||||
"""
|
||||
|
||||
def update_log(self, newline):
|
||||
self.logList.append(newline) # Append the newline
|
||||
|
|
|
@ -5,6 +5,10 @@ from Player import Player
|
|||
|
||||
|
||||
class MainMenu(npyscreen.Form):
|
||||
"""
|
||||
This is the main menu, code here should only be for
|
||||
initializing the player data and any settings they want to change
|
||||
"""
|
||||
def afterEditing(self):
|
||||
# TODO: the game needs to happen after this inital main menu
|
||||
self.parentApp.setNextForm('GAME')
|
||||
|
|
Loading…
Reference in New Issue