I'm a general beginner to pyglet, so apologies if the following is a little general. I know what I would like to do but not how to get there and I'm looking for some steering.
My goal is to take PAWS (the Python adventure writing system for interactive fiction, like Zork) and present it using a pyglet display. PAWS is here for the curious: http://home.fuse.net/wolfonenet/PAWS.htm PAWS comes with an 'external' terminal for inputting and displaying text, but you're able to create your own external terminal that talks with PAWS' internal IO terminal. So my basic question is, how do I handle the text stream to PAWS (in the form of player input at a command prompt in pyglet) and the output to pyglet (in the form of text interleaved with the command prompts). In other words it looks like this in the pyglet window: [output from PAWS] > [player input] [output from PAWS] > [etcetera] It seems like for this application I want to use IncrementalTextLayout, is that right? Also, part of the reason for using pyglet is to incorporate the UI, animations and other effects with the text. Is InlineElement designed for animations and interactive animations within a text layout, or would I need to suspend the text IO and implement a separate interactive layer? Could this be drawn on the screen with the text output from PAWS? Apologies for the vague questions, this is where I'm really in the dark. Finally I'm wondering where to start with the main loop of the game itself; I'm guessing I will rewrite .app.run()? Thanks for any help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
