npyscreen-adventure-game #8

Manually merged
Kenwood merged 29 commits from npyscreen-adventure-game into adventure-game 2021-02-23 13:43:20 -05:00
3 changed files with 66 additions and 10 deletions
Showing only changes of commit 6743be8a6c - Show all commits

View File

@ -13,6 +13,21 @@ menu:
\____/_/ |_/_/ /_/_____/
not_found: |
. / \
/ ! \
/ \
--------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------
-----------------------------------------------/ \-----------------------------------------------
----------------------------------------------/ !! \----------------------------------------------
---------------------------------------------/ \---------------------------------------------
--------------------------------------No Art for this location------------------------------------
----------------------------------Consider making a pull request?---------------------------------
--------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------

View File

@ -0,0 +1,12 @@
office:
grid: [0, 0]
upon_enter: "You are standing behind your desk, you see a |NAMEPLATE|, a |TAPE RECORDER| and your trusty |LOG VIEWER|"
look_around: "You look around the room, you see a |DESK|, a |BOOKSHELF| and the |DOOR|"
pick_up_logviewer: "You pick the *LOG VIEWER* up."
desk:
look_at: "You move to stand behind your desk. You see a |NAMEPLATE|, a |TAPE RECORDER| and your trusty |LOG VIEWER|"
inspect: "Desk, ornate, stuff"
log_viewer:
look_at: "logviewer looks like garbo"
inspect: "beep boop"
pick_up: "You pick up the *LOG VIEWER*."

View File

@ -9,17 +9,46 @@ class GameNavigator(npyscreen.Form):
self.parentApp.setNextForm(None) # Nothing to do after this but exit the game.
def create(self):
self.artBox = self.add(npyscreen.BoxBasic, name='ArtBox', max_width=100, max_height=20, relx=21)
top_division_height = 20
inventory_width = 20
art_width = 100
self.artBox = self.add(npyscreen.BoxBasic,
name='ArtBox',
max_width=art_width,
max_height=top_division_height,
rely=2,
relx=inventory_width + 1,
editable=False)
self.artContent = self.add(npyscreen.MultiLineEdit,
rely=3,
relx=inventory_width + 2,
max_width=art_width - 2,
max_height=top_division_height - 2,
value=self.parentApp.gamelib['menu']['graphics']['not_found'],
editable=False)
self.artBox.footer = 'Unknown Location'
self.artBox = self.add(npyscreen.BoxBasic, name='Inventory', max_width=20, max_height=20, relx=1, rely=2)
self.artBox = self.add(npyscreen.BoxBasic,
name='Inventory',
max_width=inventory_width,
max_height=top_division_height,
relx=1,
rely=2,
editable=False)
self.DialogueBox = self.add(npyscreen.BoxBasic, name='Type Here', max_width=20, max_height=20, relx=1, rely=2)
self.dialogueBoxOutline = self.add(npyscreen.BoxBasic,
max_width=inventory_width + art_width,
max_height=3,
relx=1,
rely=top_division_height + 2)
#self.myName = self.add(npyscreen.TitleText, name='Name')
#self.myDepartment = self.add(npyscreen.TitleSelectOne, scroll_exit=True, max_height=3, name='Department',
# values=['Department 1', 'Department 2', 'Department 3'])
#self.myDate = self.add(npyscreen.TitleDateCombo, name='Date Employed')
self.dialogueBox = self.add(npyscreen.Textfield,
name='Type Here',
max_width=inventory_width + art_width - 2,
max_height=1,
relx=2,
rely=top_division_height + 3)
class MainMenu(npyscreen.Form):