Commit graph

113 commits

Author SHA1 Message Date
neveix
e2806fb19c add ladder block rotation 2026-08-10 16:00:02 +05:00
MihailRis
4befbb0086 add 'player-min-spawn-height', 'player-max-spawn-height' generator parameters 2026-03-19 19:15:11 +03:00
MihailRis
2600dd7ed9 add 'player-spawn-radius' generator parameter 2026-03-19 19:03:22 +03:00
MihailRis
b0d231c927 optimize collisions calculations (remove the stupid) 2026-02-18 18:54:49 +03:00
MihailRis
7a513949e9 fix fragment:place lights 2025-12-19 19:25:58 +03:00
MihailRis
618b3d7f61 fix world generator 2025-11-29 16:15:19 +03:00
eliotbyte
b85c5e367a fix extended block placement across chunk borders 2025-11-24 21:25:15 +03:00
eliotbyte
9ccaecddd2 add :block placement for single blocks 2025-11-24 21:23:59 +03:00
Eliot Byte
ed9cf8800a
fix correct line generation algorithm and bounds calculation (#657)
* fix correct line generation algorithm and bounds calculation

- Fix closest_point_on_segment algorithm using proper dot product projection
- Correct loop bounds calculation for radius=0 lines
- Use precise integer arithmetic to avoid rounding errors
- Resolves missing blocks in vertical line structures

* fix ai hallucinations

* polishing closest_point_on_segment

* refactor: extract dot product calculation
2025-10-23 12:29:04 +03:00
MihailRis
a46aafa562
fix fragment:place rotation (#593)
* fix fragment:place rotation
2025-08-22 22:26:43 +03:00
MihailRis
12c7d4dfb4 feat: voxel fragment rotation applying to 'stairs' profile 2025-04-30 21:56:04 +03:00
MihailRis
98813472a8 fix generator area centering 2025-04-11 20:37:08 +03:00
MihailRis
bf79f6bc75 fix "upgrade square is not fully inside of area" error 2025-04-10 23:10:49 +03:00
MihailRis
ecdf87ce0d fix windows build 2025-04-02 18:21:19 +03:00
MihailRis
3d22de761f fix compiler warnings (GCC + Clang) 2025-03-20 22:04:29 +03:00
MihailRis
0649419485 randomize rotatable plants in world generation 2025-02-21 19:35:37 +03:00
MihailRis
2f93d38fde fix biome choosing 2025-01-25 02:10:44 +03:00
MihailRis
c1b311f3c4 refactor: change pointer parameters to references for Level and Content in various classes 2024-12-25 18:53:53 +03:00
MihailRis
48d94036fd rename Level.chunksStorage to Level.chunks 2024-12-17 23:57:00 +03:00
MihailRis
b1fc666448 fix 2024-12-17 20:56:25 +03:00
MihailRis
1c18c02092 move Chunks from Level to Player 2024-12-17 19:40:00 +03:00
MihailRis
87c19d69dc move block set logic to the blocks_agent 2024-12-16 20:46:06 +03:00
MihailRis
e713412a6d rename ChunksStorage to GlobalChunks 2024-12-14 18:58:51 +03:00
MihailRis
c29db60fa4 Merge branch 'main' into text3d 2024-11-13 01:14:19 +03:00
MihailRis
4b0b643342 add 'lowering' generated structures property 2024-11-13 01:10:52 +03:00
MihailRis
c5ca9128e9 move getVoxels from ChunksStorage to Chunks 2024-11-11 22:30:42 +03:00
MihailRis
a78315b39c update blocks.fill and fragment.save commands 2024-10-28 21:05:30 +03:00
MihailRis
7819a5cd68 add fragment:place & add 'fragment.place' command 2024-10-28 10:03:08 +03:00
MihailRis
d8c3940451 add 'heights-interpolation', 'biomes-interpolation' 2024-10-28 09:22:02 +03:00
MihailRis
2b057a0977 fix: core:struct_air is being replaced with plants 2024-10-24 13:27:32 +03:00
MihailRis
6b84fa82fc fix: non-air lines are not placed 2024-10-19 05:37:10 +03:00
MihailRis
7b0db7b660 update base:demo generator & update default bpd values 2024-10-18 15:26:32 +03:00
MihailRis
552740b87b add missing includes 2024-10-18 02:43:16 +03:00
MihailRis
faca68e6c3 replace argument 'seed' with global constant 'SEED' 2024-10-16 08:46:32 +03:00
MihailRis
59c4e26eda feat: heightmap-inputs 2024-10-16 00:38:58 +03:00
MihailRis
3146499433 fix fragment rotation bits & increase player spawn attempts number 2024-10-15 03:32:16 +03:00
MihailRis
48143c5a2b add fragment.crop, fragment:crop() & fix fragments rotation when width is not equal to depth & fix extra structures placements 2024-10-15 00:03:06 +03:00
MihailRis
44eedadc06 make world generator less pedantic in structures placement 2024-10-14 20:47:37 +03:00
MihailRis
fd2bd15658 update voxel fragments lua api & replace structure.save command with fragment.save & add 'export' entry point 2024-10-14 19:39:58 +03:00
MihailRis
04e490c896 add config/defaults.toml 2024-10-14 02:56:33 +03:00
MihailRis
de00414456 add generator 'caption' property 2024-10-13 22:53:12 +03:00
MihailRis
7c56d8fd7f replace biomes.json with biomes.toml & make it combined object 2024-10-13 21:50:39 +03:00
MihailRis
40612dd7da update doc-comments 2024-10-11 19:06:38 +03:00
MihailRis
b5c1050f43 add placements priority 2024-10-11 18:37:03 +03:00
MihailRis
50eb83ad9b add generator param 'wide-structs-chunks-radius' & make caves more interesting 2024-10-10 03:57:43 +03:00
MihailRis
a578cca325 add 'place_structures_wide' callback 2024-10-10 02:00:13 +03:00
MihailRis
b4578cfb87 fix caves issues & add block 'surface-replacement' property 2024-10-08 22:37:41 +03:00
MihailRis
c022e11c3b move test caves to base:demo 2024-10-08 20:14:38 +03:00
MihailRis
5966ca5617 refactor WorldGenerator 2024-10-08 16:57:24 +03:00
MihailRis
ba3ac11b41 optimize lines generation 2024-10-08 16:26:26 +03:00