661 Commits

Author SHA1 Message Date
Aaron Suen
aa0fc9296d Heal faster when not moving, nullify healing while diving. 2019-03-11 23:12:04 -04:00
Aaron Suen
ff57c0aaba Replace suicide command with stuck command.
It does something similar, though it doesn't send you back to
spawn, just "phase shifts" nearby.
2019-03-11 23:00:42 -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
b717fcb04c Fix excess prills from tool breakage. 2019-03-10 19:25:28 -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
148f55ccae Typo. 2019-03-10 04:56:52 -04:00
Aaron Suen
1382af2fac Revert "Work around particle emission issues."
This reverts commit 78f1b2971abd5c221aea272d14a052d5fe65df00.

Turns out I was testing on an outdated client.
2019-03-10 03:48:44 -04:00
Aaron Suen
7bf237fe26 More debug code. 2019-03-10 03:36:37 -04:00
Aaron Suen
78f1b2971a Work around particle emission issues.
Seems like minetest doesn't behave very well on trying to spawn
more than 1 particlespawner during a single tick.

Work around this so smoke comes out correctly...
2019-03-10 03:32:59 -04:00
Aaron Suen
65d9400115 Add protection against the minetest:get_meta() class of bug. 2019-03-10 01:32:36 -05:00
Aaron Suen
e51b301888 Fix some :get_meta()/.get_meta() bugs. 2019-03-10 01:31:06 -05:00
Aaron Suen
50869403e0 Unified soaking/cooking API, smoke particles for cooling too. 2019-03-10 01:00:57 -05:00
Aaron Suen
1f932edab4 Add smoke particles to cooking recipes as they stand now.
Like pummeling, this should give feedback when players are doing
something right.
2019-03-10 00:24:16 -05:00
Aaron Suen
fd94d67389 Fix awkwardness with leaf digging prediction. 2019-03-10 00:23:54 -05:00
Aaron Suen
811186f835 Turn tools based on wear instead of count. 2019-03-09 21:24:17 -05:00
Aaron Suen
14e89bbb90 Removed debug code. 2019-03-09 19:49:14 -05:00
Aaron Suen
0f0377da52 Make lens/prism light pass thru sunlight_propagates nodes.
This also prevents the lens from igniting them.

Made stick and staff at least as transarent as frames/ladders.
2019-03-09 19:46:52 -05:00
Aaron Suen
111338e56f Pound glass back into sand. Fix recipe prioritization for pummels. 2019-03-09 19:40:02 -05:00
Aaron Suen
767934393f Planning, chipping stone produces gravel. 2019-03-09 19:21:32 -05:00
Aaron Suen
122f1c1677 Lens firestarting. 2019-03-08 23:30:12 -05:00
Aaron Suen
96b5863fc0 Tools melt down to prills; reworking is necessary. 2019-03-08 23:22:14 -05:00
Aaron Suen
efa9007793 Change how visinv items handle rotation.
Rotation is now fixed, non-moving, and deterministic.  This fits
in better with the rest of the visuals in the game being
stationary when in steady-state, i.e. only things actually changing
are actually moving.

Instead of rotation speed indicating a full stack, rotation angle
now does; non-full stacks will always be off significantly from
orthogonal, while full ones will be perfectly square.
2019-03-08 19:11:05 -05:00
Aaron Suen
0dfc08cdfc Fix cube/block/node renaming error. 2019-03-08 14:42:04 -05:00
Aaron Suen
e64e21b490 Call in-world nodes "cubes" instead of "blocks".
The confusing terminology is so annoying, so let's pick a word
that doesn't have a technical meaning, maybe?
2019-03-07 23:16:29 -05:00
Aaron Suen
f4657cb10a Dammit! minetest.get_meta, NOT minetest:get_meta! 2019-03-07 23:06:11 -05:00
Aaron Suen
be2bef8d3e Actually, we probably don't need to nerf the light so much. 2019-03-07 22:43:11 -05:00
Aaron Suen
1ae9408819 Nerf molten glass light emission. 2019-03-07 22:41:49 -05:00
Aaron Suen
83acbe39ca Merge branch 'optics' into dev 2019-03-07 22:29:00 -05:00
Aaron Suen
58109d30e7 Create basic crafting recipes, completing tech tree bridge.
It should now be possible to obtain the new optical stuff given
only resources in-game.  The molten glass casting process, in
particular, should be at least a little interesing.

These recipes aren't very interesting and may be subject to
refinements in the future.
2019-03-07 22:27:38 -05:00
Aaron Suen
19bfab1c1f Glass now cools/quenches.
Almost done with this new feature; just need to craft lenses and
prisms from chroma glass...
2019-03-07 22:21:04 -05:00
Aaron Suen
bcca369cc7 Molten glass flows (source "rolls") downhill.
This will allow us to pour glass into molds for casting.
2019-03-07 22:05:37 -05:00
Aaron Suen
ed7fa1e95c Add molten glass, cook sand into it w/ fire. 2019-03-07 21:50:29 -05:00
Aaron Suen
332f42bdc7 Rename a thing. 2019-03-07 21:06:53 -05:00
Aaron Suen
718c31386f New name by Yanakov. 2019-03-07 19:35:01 -05:00
Aaron Suen
c0e68a24b4 Add basic glass nodes, new textures. 2019-03-07 19:26:53 -05:00
Aaron Suen
1b90ed6599 Merge branch 'dev' into optics 2019-03-07 16:47:48 -05:00
Aaron Suen
516780a619 Fix bug causing pummel particles for invalid recipes (node check). 2019-03-07 16:47:12 -05:00
Aaron Suen
dad4de4a89 Merge branch 'dev' into optics 2019-03-07 10:35:20 -05:00
Aaron Suen
fb70360b5b Totes were never really supposed to stack... 2019-03-07 10:35:05 -05:00
Aaron Suen
0f21dcd29c Merge branch 'dev' into optics 2019-03-07 10:08:46 -05:00
Aaron Suen
cbb7f823c3 Fix node dig prediction, allow limited zoom. 2019-03-07 10:08:22 -05:00
Aaron Suen
0652636e47 Remove redundant rotations, simplifying node spinning. 2019-03-07 10:04:32 -05:00
Aaron Suen
fa4ae544ad Crank abm back up again, log unloaded area issues. 2019-03-07 01:56:27 -05:00
Aaron Suen
cb78b5a334 Got immediate triggering working. 2019-03-07 01:40:26 -05:00
Aaron Suen
94082bc86a Prism and full logic basically working.
There seems to be an issue triggering events, so a lot of work
is being done by the abm to cover over this problem...

Much like my earlier work with sz_rotary, I suspect a lot of
fine-tuning will be needed.
2019-03-07 00:58:37 -05:00
Aaron Suen
e68693c062 Optic API works, lens basically works. 2019-03-07 00:35:27 -05:00
Aaron Suen
8c2bc87748 Merge branch 'master' into optics 2019-03-06 23:13:14 -05:00