Karte.
This commit is contained in:
9
tomb.py
9
tomb.py
@@ -75,7 +75,6 @@ logging.debug('World initialisiert')
|
||||
actionmodul = ActionModul.ActionModul(world)
|
||||
|
||||
def inputLoop(stdscr):
|
||||
schrittzaehler = 0
|
||||
|
||||
world.stdscr = stdscr
|
||||
curses.echo()
|
||||
@@ -88,6 +87,7 @@ def inputLoop(stdscr):
|
||||
actionmodul.clearFehler()
|
||||
stdscr.addstr(11,0,'Was nun? ')
|
||||
command = stdscr.getstr(11,10,40).decode(encoding="utf-8")
|
||||
world.schrittzaehler = world.schrittzaehler +1
|
||||
command = command.rstrip()
|
||||
if command.startswith('debug:'):
|
||||
debugcommand = command.split(':',1)
|
||||
@@ -114,7 +114,6 @@ def inputLoop(stdscr):
|
||||
parsedCommand = world.parseInput(command)
|
||||
commandid = parsedCommand.commandid
|
||||
verarbeiteBefehl(parsedCommand)
|
||||
schrittzaehler = schrittzaehler +1
|
||||
actionmodul.raumaction()
|
||||
|
||||
def debug_Items():
|
||||
@@ -127,4 +126,8 @@ def debug_Items():
|
||||
# logging.debug(f'Item-IdId:{item.id} - Item-Name:{item.name}')
|
||||
count = count +1
|
||||
|
||||
wrapper(inputLoop)
|
||||
def main():
|
||||
wrapper(inputLoop)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
Reference in New Issue
Block a user