Locked Crate UI
Hey Folks! Decided to tackle the UI for unlocking a crate with a PIN code today. Plus, Michael's off and running on his crate inventory grid. And Bjørn is starting to look at footstep audio based on tile material!
I spent a fair amount of time thinking about the lock UI, and scaring myself from working on it, before I decided to just dive in. Currently, I want the game to support a few different lock types, for use on different items. Some things require little security (a locker), while others should be near-unbreakable (access codes to a ship helm).
As a result, I've arbitrarily decided on these lock types:
- Mechanical combination lock
- Mechanical key/tumbler lock
- Electronic PIN lock
- "Q" Locks, which are a form of QKD encryption
- RFID locks, or chip readers
For now, we just need a PIN lock, but I wanted to think ahead a bit. Both for gameplay and world-building reasons.
Anyway, I setup a UI the object can spawn if the user chooses to unlock it, and then the fun begins! Normally, in this case, we type the 4-digit PIN into the keypad, then choose to lock or unlock, as needed. The indicator will change if it worked, or reset the digital readout if not. (I realize showing the PIN numbers is insecure in real life, but I don't yet have a * character in my 7-segment UI widget.)
And so far, this works at a basic level. I can lock or unlock any PIN lock UI in the game with "1234" :)
However, I still need to hook this up to in-game objects. And then I have to figure out how to make each lock generate a unique PIN. And then, how to sprinkle clues around the ship, if needed.
Meanwhile, Michael has a good start running on his crate inventory grid. You can walk up to any object, spawn a UI that shows the correct number of objects in a grid, and you can drag them around. They snap to grid, prevent overlapping, and you can move the whole grid around and resize the window for it. Pretty good! (And already a bit of an advancement over NEO Scavenger's static grids.) He's going to work on getting appropriate item sprites next.
Bjørn has started looking into footfall sound, and is figuring out how to get floor tile info to generate appropriate audio for each step.
Chris is back from his other job's tasks, and ready to resume salvage loop user stories.
And in a surprise email, Josh has mentioned he's interested in revamping the title screen music! I'm more than a little excited to see how that evolves. I always enjoy new track stuff from him.
So I guess this was a pretty busy day! A lot of stuff mid-completion, so I can't really show it off yet. But definitely an interesting step forward in gameplay on the near horizon!
That's all for this week. Have a good weekend, all. And see you Monday!