22 Commits

Author SHA1 Message Date
Aaron Suen
a8dbfb221f EggCorn Overhaul!
- Place EggCorns as items, not as nodes.
- Tweak visual scales, thicken them up a bit.
- Allow planting eggcorns into dirt, as well as throwing dirt
  over eggcorns, to make planting easier.
2019-03-23 13:01:31 -04:00
Aaron Suen
9607bcc6a6 Start working on sounds, plus minor refinements.
- Clean up registered_* usage patterns.
- Reduce tendancy of leaves to create stack nodes.
  Now they tend to stack up properly in-world more often.
- Tweak damage system to create "headroom" where minor
  damage doesn't cost inv slots immediately.
- Make player hand skin color match model skin.
- Cleanup/unify grass abm logic.
- Start installing new sounds by MagikEh

Sound source:
  https://github.com/MagikEh/SoundsOfWarr
2019-03-13 23:51:59 -04:00
Aaron Suen
92d1877b99 Hotbar textures.
Hexagonal gradients aren't actually a thing, but 6 linear gradients
are a thing.  Render them in high-res to minimize the effect of
anti-aliasing gaps, and then shrink them to fit.
2019-03-11 21:53:32 -04:00
Aaron Suen
f98cb76fc5 Make HUDs a little more usable in low light conditions. 2019-03-10 20:39:20 -04:00
Aaron Suen
7c8cbfaf3e Breath HUD tidy up. 2019-03-10 18:11:35 -04:00
Aaron Suen
3bafe76629 Remove dead files. 2019-03-10 17:31:29 -04:00
Aaron Suen
4d0f0734ba Beginning of a bold new health system.
- Eliminate health and breath stat bars.
- Players NO LONGER DIE FROM INJURY.
- Players no longer lose walking speed or mobility.
- Players lose inventory slots in proportion to injury; they're
  stuffed with an "injury" item, and items they displace are
  ejected.  Slots are displaced in random order.
- Healing rate is much faster, so players are usually mildly
  inconvenienced by injury, but can soon enough pick up their
  stuff and leave.
- Health and breath HUDs are gone.  Health is visible based on
  number of lost slots, and breath uses a vignette to narrow
  tunnel vision for O2 loss.

Overall, the old health system has been more of an immersion-
breaking annoyance than anything.  This allows health to get out
of the way of the primary gameplay.

UNFINISHED: Need a replacement for the old "suicide to get unstuck"
mechanic.
2019-03-10 15:47:22 -04:00
Aaron Suen
e6cbc33e1c More reasonable positioning on non-pathological screens. 2019-03-06 14:00:35 -05:00
Aaron Suen
3be4f221ff Completely different approach to the item name tip thing.
Can't get HUDs to align right on high-DPI/android at all.  Give up
on the combination breath/wield bar, switch back to a much earlier
version of the code for that.

For wield names, add a new tooltip to the center of the screen, and
show it transiently so that it doesn't disrupt all gameplay.

As a bonus, this is also a logical place to put a "what am I
touching" display, so hook this up for punching.  Now you can
tell what you're touching even when you can't dig it.  This is
like a WAILA mod, but doesn't require tracing.
2019-03-06 13:50:54 -05:00
Aaron Suen
8e1c845611 Fix unknown item support. 2019-03-06 11:16:43 -05:00
Aaron Suen
23a1a7b5da Expand font to full USA 101-key keyboard support. 2019-03-06 11:02:37 -05:00
Aaron Suen
db0f5895b6 Attempt to work around HUD issues by using image HUD.
On android (and possibly other very high DPI displays) the position
of the HUD is calculated incorrectly for text HUDs.  According to
rubenwardy, "the HUD sucks", so it seems unlikely that this will
get fixed soon.  Switch to using a sequence of image HUDs and a
bitmap font to render the hotbar text.  This is currently limited,
but expandable.
2019-03-06 10:07:09 -05:00
Aaron Suen
ac322cf4fd Revert changes from last 2 commits.
They seemed to have no effect at all on android issue.
Conclusion: this is probably an engine bug, especially since I
can't get it to misbehave at all on low-DPI desktop.
2019-03-06 00:18:52 -05:00
Aaron Suen
d839ebced0 Make wield hud grow upwards instead of downwards under gui scaling. 2019-03-06 00:04:06 -05:00
Aaron Suen
4b92240350 Does this affect alignment issue on android? 2019-03-05 23:54:15 -05:00
Aaron Suen
d886f8cfc2 Typo. 2019-03-05 21:27:18 -05:00
Aaron Suen
4d099c8aa6 Tweak text outline shape. 2019-03-05 20:28:06 -05:00
Aaron Suen
d50a3fdd6b Try to fix breath/wield HUD for issue reported by Lone_Wolf.
Try to create HUDs in the correct initial state instead of
creating empty and trying to change on the very next tick, which
could lead to HUDs arriving out of order and desyncing.
2019-03-05 20:25:12 -05:00
Aaron Suen
9815a699d3 Heavy wield text outline, readable on any background. 2019-03-04 01:06:36 -05:00
Aaron Suen
2231d1dffe Add wield description HUD.
Swap it out with the breath bar, since the breath bar won't be
displaying most of the time, so we can afford to not read what an
item is until we come up for air to look at it.

Also, "eggcorn" is a single word.
2019-03-04 00:52:21 -05:00
Aaron Suen
7f123aea91 Goodbye, last GUI!
- Inventory screen is now no longer game-interactive, and serves
  as purely an "about" screen.
- Move the HUD components out of inv mod and into hud mod.
- Separate player setup mod for static physical limitations like
  step height, inv size, etc.
2019-03-03 16:53:12 -05:00
Aaron Suen
c7ac1f63db Reorg all player mods, give them lexically grouped names. 2019-03-02 20:32:50 -05:00