UXVirtual / alexa-actual-cannibal-text-adventure

Demo text adventure game for Amazon Alexa Voice Service that supports complex behaviors such as inventory, item pickups / dropping and other game state.
Other
4 stars 3 forks source link

Awesome additions! Moving laterally? #1

Open BlueTurtle69 opened 7 years ago

BlueTurtle69 commented 7 years ago

I'm a newbie that just got started with the Adventure Game tool and your item management additions are awesome! One question: is there a simple way to move laterally between nodes? For instance, to create a door between Room 1 and Room 3? Or similarly to jump nodes when the user takes an action (setting a flag) and automatically stepping back or sideways (with the flag set) without requiring a user prompt?

jmlucas31070 commented 6 years ago

I had that same idea. I would love to see the cardinal directions included in each scene, if the value is 0 exit is closed, else it points to a scene number. Maybe even a global search command. I programmed COBOL many moons ago, and have been dealing with Java for a few years now. Since this code is a program writing a program in a language I'm not familiar with, I'm still sifting through how this code works. I did notice that at about 250 scenes, the browser locks up. That was original fork though. The bbc fork does have a link back button and it looks like they embedded sounds in it.

I looked at the diff, adding the link back button. Most of the code is straight-forward. The main.css is 2 very long lines and figuring the difference may be impossible. Line 2 looks like a PGP. Might be something created at run time. I would rather have the directions as globals, then a scene would only be needed if you need to check whether the character can pass that direction. Not to mention all the utterances, just to go north, south, east, west, up, and down.

I may figure it out, or tell my Alexa what she can do with herself. lol

jmlucas31070 commented 6 years ago

Totally gave up on that javascript garbage. At about 150 scenes, there is a noticeable lag. Not to mention I have yet to find the correct settings to get the damn thing to upload to Amazon.

Started with a JSplitPane and added a JTabbedPane. The TabPane has all the variables this current release has. I'm working on the DisplayPane now. I'm thinking of adding a TablePane that would list all variables and allow editing. I'm thinking of using a GridLayout and allow scene creation from the 8 cardinal points. Unless a room is created with more than 8 exits, display would work. Maybe a separate tab with other (non-exit) scenes. I'll set the Table up, then make Objects to load/save/zip, and work out ideas for the pretty display. When you see .java files in my fork, then you'll know I loaded the copy that is up to 170 something scenes and can at least edit and save them. BTW I'm adding load/save options for this fork and the original fork.