Commit Graph

36 Commits

Author SHA1 Message Date
zhenyan121
a54e87dbc6 refactor: terrain generation (#9)
* feat: add BlockType

* refactor: use fBM for heightmap generation

* feat: improve mountain realism

* refactor: adjust mountain spawn probability

* feat: add biome boundary blending

* refactor: remove resolve_biome_adjacency_conflict function

* feat: add snowy plain

* perf: speed up world generation

* refactor: lower overall terrain height
2026-05-23 10:33:52 +08:00
zhenyan121
1a26474a05 feat: add cave (#8)
* feat: add cave generate

* fix: incorrect blocks on cave surface

* fix: non-deterministic cave generator

* refactor: move all chunk generation to dedicated generation thread

* refactor: remove inital cave

* feat: add cave parameter adjustment

* refactor: adjust cave probability
2026-05-09 20:13:55 +08:00
zhenyan121
315c60e4a6 feat: block switching (#2)
* feat: add item tab item in dev panel

* feat: add block switching via mouse wheel
2026-04-30 11:53:35 +08:00
611a795481 chore: add clang-format and pre-commit configuration 2026-04-28 09:22:55 +08:00
c5a78185ba feat: add ChunkGenerator 2026-04-26 14:10:09 +08:00
a95ad796ce feat: add world and player tab item 2026-04-25 18:36:13 +08:00
8b5717a655 refactor: extract constants into separate constants.hpp file 2026-04-25 16:25:47 +08:00
055c4d687b fix: load path failure
Co-authored-by: Copilot <copilot@github.com>
2026-04-25 14:33:43 +08:00
4ca2133ff3 feat: add DevPanel 2026-04-25 14:24:50 +08:00
c2321a0a6e refactor: warp everything in Cubed namespace 2026-04-20 22:18:02 +08:00
0a0024361d fix: negative seed values 2026-04-18 19:11:58 +08:00
03ea97055f fix: make Perlin noise seed reproducible 2026-04-18 15:50:48 +08:00
de4df4b476 fix: data race in world::init_world() 2026-04-18 15:14:11 +08:00
bb888fd7b7 feat: add tree generation 2026-04-18 10:59:37 +08:00
30a4713092 refactor: extract biome logic into separate 2026-04-17 22:45:44 +08:00
f2328d19fd refactor: prevent desert from generation adjacent to mountain in biome generation 2026-04-17 22:24:29 +08:00
5723c17f94 feat: add 4 biomes 2026-04-17 19:55:47 +08:00
6362536daa fix: font load fail 2026-04-16 13:13:05 +08:00
42b5661a28 fix: shader load fail 2026-04-16 13:06:49 +08:00
ecc1595a39 fix: can't load image 2026-04-16 13:00:19 +08:00
cd107fa35d feat: add DEBUG_MODE and ASSETS_PATH macro 2026-04-16 12:55:36 +08:00
311c675852 feat: add text class 2026-04-16 10:44:05 +08:00
662e3ee798 feat: add random seed 2026-04-06 21:56:15 +08:00
23affb78b5 feat: add perlin noise 2026-04-05 18:21:43 +08:00
618ba0ce1c fix: NVIDIA graphics card compatibility 2026-03-30 14:24:42 +08:00
01d6e91da9 feat: update logger with new features 2026-03-29 12:38:06 +08:00
2cfbd1a03b feat: add shader class 2026-03-29 11:15:18 +08:00
a7c42f249d perf: optimize text rendering performance 2026-03-28 16:22:38 +08:00
c37c45ad19 feat: add font class and render font function 2026-03-28 12:04:31 +08:00
4d4bbe82ec feat: add frustum culling 2026-03-19 10:54:13 +08:00
f392a656a7 feat: add outline for block that is looked 2026-03-14 10:18:20 +08:00
f3ff209823 perf: optmize world rendering performance 2026-03-08 11:27:37 +08:00
668fa9a57d feat: add world class 2026-03-07 17:00:05 +08:00
2ad9deff3e feat: add TextureManager class 2026-03-07 11:46:36 +08:00
fc7f3e75b1 style: unify naming conventions across the project 2026-03-07 09:51:51 +08:00
9fe1eaec24 feat: initialize OpenGL 2026-03-05 17:01:01 +08:00