Game Update (March 29) - Keyboard and UI overhauls + Working towards Offline Mode (Patreon)
Content
Hi adventurers!
I got back from Furnal Equinox last week, and I've been working on a few new things that I'm publishing today just to ensure nothing breaks the game!
There will be content coming soon in the next week or two with a bunch of stuff I've been working on here and there. Plus, the public build will be getting a bunch of long awaited content added to it!
A hint about the upcoming content: Deeproot's depths grow further. A new quest is being worked on, which will include the input system and some light puzzle mechanics. Also may be introducing a game over function (if I get it working as intended).
Patch notes:
[PUBLIC] Keyboard and input UI improvements
The UI elements for the keyboard have been slightly adjusted to be easier to hit on smaller device screens.
The keyboard layout is no longer uniform and follows more standard modern keyboard designs.
The period and comma keys have been moved to be beside the spacebar.
Fixed virtual keyboard inconsistently working on some browsers/devices. Please let me know if the virtual keyboard still doesn't work for you!
Fixed input field losing focus when pressing on-screen fields.
Fixed caret position (the cursor of the keyboard as you type) issues and incorrect text insertion that occasionally would occur for mobile users.
Adjusted behaviour for selected text when using the virtual keyboard to properly replace selected portions instead of insert text at the start of the selected portion.
Improved overall reliability of virtual keyboard input (improvements to key press handling, input update logic, UI race conditions, etc.).
The keyboard now will auto-capitalize the first letter when first initialized if the field is empty.
[PUBLIC] WebGL Template Adjustments
Tailraise is now a Progressive Web App.
This means it should act like an app (while just being the same game under the hood) which provides better support for mobile devices. This also might allow you to now add Tailraise to your phone's home screen as a shortcut!
This also introduces some improvements to data caching and handling, which should speed up the game download on slower devices/networks. As the game grows, this will grow more and more important.
A custom template has been created based on the PWA template.
[PUBLIC] Progress towards Offline Support
This is NOT READY yet, but the foundation is being implemented.
With Tailraise becoming a PWA, I can soon support offline play for the PUBLIC version of the game.
The Content Loader has been adjusted to no longer do an HTTP request to access public files and will use the ones included in the local copy of the game you load. Probably should've done this earlier, but I forgot to fix this ages ago and had it marked as trivial in terms of priority.
This speeds up loading all current game files (tiles and NPCs) in Twigleaf by about 50% on average when retrieved from the local build and not the webserver.
IMPORTANT: SUPPORTER CONTENT WILL NOT BE INCLUDED IN OFFLINE MODE.
Someone could easily make a pirated copy if supporter content is bundled offline, which diminishes my work.
In the future, I may revisit this and change my mind. It's just not worth the risk for me right now.
Once I confirm the PWA works and is stable, I will build a service worker that caches all public content for offline play to work and adjust the current system flows to account for this. If you're online and launch the game, it'll also always check for a new version and download new files as needed once it's ready.
[PUBLIC] UI Rework
The main game UI has been overhauled in several ways significantly.
The left panel when playing now works as a properly anchored sidebar to suit most game resolutions and sizes.
The right panel has been reworked entirely and now scales it's width based on the remaining canvas size to fit as far left to right as possible.
This means if you have a device that is very wide, you will now see more text on screen at once, no matter your game size.
Some strange device width/height ratios may still cut off. The existing UI scaling option in the settings will help you find the right size you need.
The UI scaling setting has been slightly tweaked and now has visuals to help make it more clear what it's doing.