957 Commits

Author SHA1 Message Date
IntegratedQuantum
2c70023779
Smooth collisions and stepping (#548)
* Prototype for spring-based collision boxes. It currently breaks at low fps and stairs are kind of weird

* Better stair climbing.

* Fix the problem where the player bounces off when jumping towards a block.

* Fix some things.

* More fixes
2024-07-07 17:32:26 +02:00
careeoki
25e82a51f9
Inventory item textures + Vetch & Iron (#545)
* Add ffiles!!! WOOOOOOWWW!!!!

* New material values for iron, tweak vetch textruye

* Tweak vetch, mahogany, update grass plant

* Revert blue glow crystal textures

* Revert blue glow crystal... Again!!!

* Fix indentation
2024-07-05 18:53:36 +02:00
IntegratedQuantum
117a1d7f71 Adjust structure chance in LOD.
follow-up to 2bc1292fc3ec50168dedfae94f01e2fcf3adc8e9
2024-07-04 11:27:32 +02:00
IntegratedQuantum
212b2f5b53 Filter degenerate quads, reducing total quad count in the base game from 266 to 250.
Degenerate quads were mainly created from the fence models.

Also fixed a bug with connections between fences.

fixes #280
2024-07-04 11:12:31 +02:00
IntegratedQuantum
be0406df09 Hotbar shortcut keys
fixes #343
2024-07-04 10:47:46 +02:00
IntegratedQuantum
45fed30069 Allow overwriting the block item texture.
fixes #345
2024-07-04 10:38:30 +02:00
IntegratedQuantum
337e014d88 Store settings and gui layout whenever it gets changed.
fixes #469
2024-07-04 10:24:57 +02:00
IntegratedQuantum
ac3847db79 Fix order of faces when drawing item textures.
This was working fine before due to a bug in the depth calculation that gave it negative depth values.

fixes #488
2024-07-03 22:11:46 +02:00
IntegratedQuantum
9d0f2fe681 Fix how fences/torches check neighboring blocks.
fixes #517
2024-07-03 21:21:28 +02:00
IntegratedQuantum
2bc1292fc3 Normalize structure chances if their sum is larger than one.
fixes #544
2024-07-03 21:09:23 +02:00
IntegratedQuantum
1f61ea0c37 Load music by ID from the assets folder and improve error handling when the file isn't found.
fixes #535
fixes #543
2024-07-03 17:22:07 +02:00
IntegratedQuantum
2e06b9d4af Add a button to hide the GUI (F1)
fixes #470
2024-07-02 22:18:05 +02:00
IntegratedQuantum
78db8f0839 Interpolate the biome interpolation based on some weights, instead of choosing the closest one.
This allows making plateaus without having a ramp (from the other biome interpolation) leading up to it.
2024-07-02 20:06:26 +02:00
IntegratedQuantum
4343f6eb18 Fix flat terrain bug.
fixes #183
2024-07-02 11:38:16 +02:00
IntegratedQuantum
12eae52f99 Normalize movement direction to make diagonal movement as fast as straight movement.
fixes #523
2024-07-02 10:48:56 +02:00
IntegratedQuantum
732b4d4836 Replace grass_vegetation with air in LOD.
fixes #542
2024-07-02 10:31:59 +02:00
IntegratedQuantum
d2bc6e6428 Allow configuring leaf radius and tree height independently.
fixes #519
2024-07-02 10:23:31 +02:00
IntegratedQuantum
02fff0fd4c Entity positions are now stored in their center instead of their bottom. 2024-07-01 23:54:34 +02:00
IntegratedQuantum
27d7b0c627 Prevent players from placing blocks inside of their own hitbox.
progress towards #90

To test other entities, their hitbox information would be needed.
2024-07-01 23:35:28 +02:00
IntegratedQuantum
36b56e9734 Sync client time more aggressively with server time. 2024-07-01 23:02:32 +02:00
IntegratedQuantum
07ede27823 Fix missing block warnings from the glass forest. Also make their stems opaque. 2024-07-01 17:07:44 +02:00
IntegratedQuantum
5f192f224f Decrease the compression ratio of stored maps to improve their generation time.
helps with #513
2024-07-01 16:36:54 +02:00
archbirdplus
ad9cad6270
Settings: add FPS cap (#532)
* settings: add fpsCap

* fpsCap: convert to nanos correctly

* main.zig: use specific names for lastBeginRendering and frameTime

* physics/fps window: use real time between frames

* graphics menu: add fps slider

* fpsCap: round slider + fix formatter

* fpsCap: prevent overflow

* fpsCap: remove debug spam

* fpsCap setting: add 'Limit'

* debug menu: note fps limit

* fpsCap formatter: dupe constant string to prevent free failure

* debug menu: remove contradictory (vsync) (unlimited)

* debug menu: fix mem leak in fps format

* debug manu: simplify fps limit text allocation
2024-07-01 11:59:51 +02:00
careeoki
3956f07556
Marble caves + bricks (#538)
* Lower contrast of bricks + add marble and limestone bricks

* Add files via upload

* Add marble cabve
2024-07-01 10:22:11 +02:00
OneAvargeCoder193
87ccca5399
Added stalagmiteBlock to json to choose what stalagmites are made of (#537)
* Added stalagmiteBlock to json to choose what stalagmites are made of per biome

* Added stalagmiteBlock to json to choose what stalagmites are made of per biome

* Remove goofy ahh github stuff
2024-06-30 20:09:41 +02:00
IntegratedQuantum
25a7cf6764 Add ghost(no clip) and hyperspeed modes to movements.
Also makes default fly slower.

fixes #522
2024-06-30 11:21:36 +02:00
IntegratedQuantum
669ab890cc Title bars can now be revealed by pressing a button in the pause menu.
This removes the ugly triangle from the top left of all windows and makes it harder to accidentally move around windows.

fixes #536
2024-06-30 11:00:25 +02:00
IntegratedQuantum
4d7192c2fe Fix inconsistency in collision response.
Should fix #531
2024-06-28 22:35:20 +02:00
IntegratedQuantum
1a4576b937 Increase CaveMap cache size to match the comment. This also makes world generation more efficient by doing less duplicate work. 2024-06-28 10:41:32 +02:00
IntegratedQuantum
ff80474943 Consider the emissive light of blocks during destructive light updates.
fixes #530
2024-06-28 10:06:24 +02:00
careeoki
e0d2645f29
Mahogany trees, updated jungle (somewhat) (#527)
* Add mahogany textures

* Add mahogany blocsk

* Add mahogany to jungles

* Tweak mahogany textures
2024-06-28 09:56:53 +02:00
IntegratedQuantum
04f9bae91c Remove redundant light refreshes.
helps with #277
2024-06-27 22:49:22 +02:00
IntegratedQuantum
d40da846a0 Fix synchronization issue.
fixes #528
2024-06-27 17:42:27 +02:00
IntegratedQuantum
9d47204ceb Resample audio when the sample rate doesn't match.
a better solution than #529
2024-06-27 12:31:42 +02:00
IntegratedQuantum
6e241b9258 Use a read-write lock with read-priority for light data.
fixes #331
helps with #277
2024-06-26 15:53:14 +02:00
IntegratedQuantum
ae45b93a6c Implement Raster Occlusion culling.
fixes #174
fixes #209
2024-06-26 09:45:53 +02:00
IntegratedQuantum
bb92b324c3 Improve opaque oak leaves to better match the color of the transparent variant. 2024-06-25 10:06:38 +02:00
IntegratedQuantum
85130a9233 Increase eye height to 1.7
Makes #514 less severe.
2024-06-24 23:30:49 +02:00
IntegratedQuantum
a80a9f90e8 Fix some fog parameters.
fixes #515
2024-06-24 23:08:53 +02:00
IntegratedQuantum
03b5ffcf3a Fix the menu background at small resolution scale.
fixes #508
2024-06-24 22:55:54 +02:00
IntegratedQuantum
2bf01b73f3 Increase wavelength of mountain noise and remove clamping of mountain noise, to avoid flattening of peaks.
fixes #424
2024-06-24 22:41:39 +02:00
IntegratedQuantum
e48f0d2fdb Fix crash when deleting world in the world selection screen.
fixes #486
2024-06-24 22:22:05 +02:00
IntegratedQuantum
5340317043 Collision: Return the closest collision box instead of the first one.
fixes #496
fixes #498
2024-06-24 19:42:57 +02:00
IntegratedQuantum
89c3e4740a Implement swept collision detection by making the bounding boxes longer.
fixes #520
2024-06-24 12:27:15 +02:00
IntegratedQuantum
33ca2c1d3a Remove irrelevant calculation 2024-06-23 12:25:47 +02:00
IntegratedQuantum
f7daa73e48 Solve the friction equation exactly instead of using a numerical approximation.
fixes #512

also changes behavior to stop moving when in unloaded chunks.
fixes #518 fixes #516

And finally adds some better parameters instead of using magic constants everywhere.
2024-06-23 12:20:21 +02:00
IntegratedQuantum
47752e37f3 Hide technical blocks, like opaque leaves, from the creative inventory.
fixes #507
2024-06-23 11:17:57 +02:00
IntegratedQuantum
d56db52835 Store height map as an integer, which makes it more compressible, reducing file size by ~5×.
fixes #479
2024-06-22 11:17:12 +02:00
careeoki
4ffd51217b
Birch trees, updated Forest (#511)
* Add birch textures + pine coloru tweaks

* Birch block files

* update Forest with birch trees

* Minor texture tweaks

* Make oak leaves more transparent
2024-06-22 10:16:12 +02:00
OneAvargeCoder193
52280e4233
Simplified the collision resolution code (#501)
* Simplified the collision resolution code

* Remove the wait from the main loop
2024-06-19 19:07:21 +02:00