935 Commits

Author SHA1 Message Date
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
OneAvargeCoder193
ab18231f06 Set velocity to 0 when colliding into a wall 2024-06-19 18:47:01 +02:00
OneAvargeCoder193
e936762f81 Fix bug where speed increases the lower the fps 2024-06-19 18:24:09 +02:00
OneAvargeCoder193
4e7f365f0c
Added collisions and a first person controller (#489)
* Added collisions and first person controller

* Made collision detection not have 12 if statements

* Added some more stuff

* Delete assets/backgrounds/client_539.png

* Fix issues with fences

* Made stepping work

* Added momentum and tweaked speed and friction values so you have less control in the air

* Remove debug print

* Avoid expensive copy of the model struct.

---------

Co-authored-by: IntegratedQuantum <jahe788@gmail.com>
2024-06-19 10:22:58 +02:00
careeoki
0289a5bc39
Dedicated fence textures, new Workbench and torch textures (#491)
* Update blocks for texture changes

* Texture cjhagnes
2024-06-19 09:44:33 +02:00
careeoki
91fa3f75e9 Update opaque leaves 2024-06-19 09:42:50 +02:00
IntegratedQuantum
3bd73cb1aa Fix asset path 2024-06-18 19:23:55 +02:00
IntegratedQuantum
4d92c18a07
Delete saves directory
fixes #453
2024-06-18 19:16:14 +02:00
IntegratedQuantum
e1b15fd8cf Add the save_creation screen.
fixes #79
2024-06-18 19:13:07 +02:00
IntegratedQuantum
3a9b228efe Add lodReplacement blocks to optimize leaves and remove torches in LOD.
fixes #482
2024-06-18 10:16:47 +02:00
careeoki
284a38eadd
Make leaf filenames consistent, update opaque textures (#483)
* Make leaf filenames consistent, add opaque textures

* Delete textures/oak_leaves_transparent.png

* Update oak_leaves.json for texture changes

* Update non degradable leaves

* Rename oak log top

* Nondegradable oak leaves are alwaysviewthrough

* Delete assets/cubyz/blocks/textures/oak_log_rings_top.png

* Rename to "oak_log", consistent with pine log

* Delete assets/cubyz/blocks/textures/oak_log_side.png

* Update oak_log.json for name changes

* Update oak_top.json

* Remove the non_degradable pine needles

---------

Co-authored-by: IntegratedQuantum <jahe788@gmail.com>
2024-06-18 10:06:53 +02:00
archbirdplus
6ca702b67d
Link Cubyz more correctly. (#461)
* Do not add cubyz_deps rpath.

* link deps as object file; add macos rpaths
2024-06-18 08:56:08 +02:00
IntegratedQuantum
eabfa32dfe Add planar rotation for blocks like pumpkins. 2024-06-17 19:47:05 +02:00
IntegratedQuantum
961ae104fb Check structures up to 16 blocks outside the current chunk.
fixes #203
Larger structures than that will need a different way of generating.
2024-06-17 15:47:45 +02:00
IntegratedQuantum
7e6c4385fc Fix data race in chat window.
fixes #407
2024-06-17 15:40:14 +02:00
IntegratedQuantum
e16c286735 Reduce resource usage when the game is minimized.
fixes #294
2024-06-17 15:09:30 +02:00
IntegratedQuantum
5aadd69e70 Fix background image recording.
fixes #471
2024-06-17 14:52:33 +02:00
IntegratedQuantum
d8c2a70ac5 Fix crash when changing anisotropic filtering
fixes #468
2024-06-17 12:40:58 +02:00
IntegratedQuantum
3de8271671 Store biome and height maps, interpolate height map with surrounding terrain on load, store heightmaps for old worlds that didn't have them on load.
fixes #350
2024-06-17 11:46:44 +02:00
OneAvargeCoder193
43f37763ce
Added biome fog (#466)
* Added biome dependent fog

* Fix day cycle length

* Fixed indentation

* Remove world changes

* fixed the world frfr this time

* fixed the world actually i promise this time

* WHYYYYYYYYYYYYYYY

* PLEEEEEEEEEEEAAAAAAAAAAAAAAASEEEEEEEEE BE THE LAST COMIT

* Fixes

* more fixes

* Remove world changes

* Remove biomeChecksum
2024-06-16 14:50:52 +02:00
IntegratedQuantum
582e35a670 Adjust the format_check.py to the new zig cache folder. 2024-06-16 11:49:33 +02:00
careeoki
0bb08097c7 Add magma and lava textures 2024-06-16 11:45:01 +02:00
careeoki
c89a87be78 Add lava and magma 2024-06-16 11:45:01 +02:00