I was able to get some progress done on the Robot in the City
game. More importantly, I've decided to make it in such a fashion that making sequels will be easier. I've also decided to scale forward some features and just get over my laziness. Most important being removing the one room limitation. I've added some variables to the "createActor" and "createThing" functions to call for starting positions for X, Y as well as room.
Here you can see some things already working:
- Dialogue appears as a lightbox with profile picture on left and text on right. The same occurs for when you use an object, examine an object and so forth. Basically any interaction will use that.
- Dialogue works in that when you say one thing, it accesses the main brain of the dialogue tree and proceeds to check if there's another node to follow. If yes, it will "showDialogue(node)" otherwise it will simply close the dialogue lightbox.
- You can interact with objects and pick up ones that have a "_pickupable" variable equally true. The only weird finagling I had to do was assign it an inventory slot, which appears on the bottom of the screen as well. This limitation differs from the old Sierra and LucasArts games in that it's not simply pushing a new object into your inventory array and you are limited to how many items you can carry based on how many inventory slots have already been preassigned.
- While you can examine things and have them interact with other things (things or actors, including yourself), I have yet to determine if I want the ability to have things interact with other things in your inventory. I'm sure it's a quick implementation, but I haven't really thought about it yet. I probably need to assign "inventory._type = "inventory"" and do a quick check or something.
Anyway. Looking forward to actually working on the game now. I've got an Excel workbook ready so by filling in the fields it can generate the proper "createThing" and "createActor" code for me. Otherwise it's a bit too long and slightly confusing.