Commit graph

34 commits

Author SHA1 Message Date
crumblingstatue
6d12d5c048 Use zstd compression level 9 2023-04-14 12:03:22 +02:00
crumblingstatue
c1a4c0db87 Clippy shenanigans 2023-04-14 11:48:19 +02:00
crumblingstatue
432be07370 Debug stuff 2023-04-14 11:45:25 +02:00
crumblingstatue
83f35e51ee Rudimentary (buggy) world serialization/deserialization 2023-04-12 22:11:02 +02:00
crumblingstatue
6896698883 First phase of serialization 2023-04-09 01:31:34 +02:00
crumblingstatue
aed3e86a17 Define region chunk extent 2023-04-09 00:00:57 +02:00
crumblingstatue
91c727e509 Add comment 2023-04-08 22:12:53 +02:00
crumblingstatue
e7c30d231b Shorten the name of various scalar types 2023-04-08 22:12:05 +02:00
crumblingstatue
390a4d45d2 Move the player inside World 2023-04-08 22:10:10 +02:00
crumblingstatue
4fd826c218 Put ticks into World 2023-04-08 22:04:21 +02:00
crumblingstatue
3938654843 Inspect World as well 2023-04-07 00:50:15 +02:00
crumblingstatue
a11d69eee2 Make use of egui_inspect 2023-04-07 00:36:34 +02:00
crumblingstatue
930f7aac47 Add very crude proof-of-concept worldgen 2023-04-05 15:09:19 +02:00
crumblingstatue
c72b16a889 Adjust surface to generate above... surface level 2023-04-05 01:00:13 +02:00
crumblingstatue
462eede90f Adjust code to new 100,000 block limit 2023-04-05 00:53:08 +02:00
crumblingstatue
ff6dcca482 Fix some clippy warnings 2023-04-04 17:19:16 +02:00
crumblingstatue
0a345aae5e Make surface and cave generation make more sense 2023-04-04 00:19:10 +02:00
crumblingstatue
20409e3ee2 Add tile placement 2023-04-03 22:21:36 +02:00
crumblingstatue
ccdacbfa45 Add background and foreground tile layers 2023-04-03 21:44:08 +02:00
crumblingstatue
6ca737f36c Add unbreakanium layer at bottom 2023-04-03 14:34:31 +02:00
crumblingstatue
165577e516 Raise stone layer up a bit 2023-04-03 12:43:59 +02:00
crumblingstatue
bb25d62561 Add a surface/underground divide 2023-04-03 12:41:27 +02:00
crumblingstatue
d41032dbcc Scale back coordinate types for new 50 km limit 2023-04-03 12:01:59 +02:00
crumblingstatue
6e2ab5837b Make chunk coordinate type 32 bits
This ensures there isn't a problem converting between world coords
and chunk coords.

Since the world center if half of max of u32, this is a
very real problem to handle with only 16 bits.
2023-04-03 11:01:12 +02:00
crumblingstatue
becc441955 Make chunk pos scalar unsigned 2023-04-03 10:52:04 +02:00
crumblingstatue
2a2c8f721c Eliminate negative coordinates
They were making coordinate calculations more difficult,
and probably slower due to having to special case negative coordinates
2023-04-03 10:32:20 +02:00
crumblingstatue
67b2098ffb Remove unused commented out code 2023-04-02 17:17:31 +02:00
crumblingstatue
7dba1b22e3 Fix world pos to tile pos calculation for negative values 2023-04-02 12:10:11 +02:00
crumblingstatue
62bd6b2c7c Fix local tile offset calculation for large coordinates 2023-04-02 11:53:54 +02:00
crumblingstatue
38699c9d09 Take into account negative coords in chunk offset calculations 2023-04-02 10:21:57 +02:00
crumblingstatue
5e539d668f Render some tiles 2023-04-01 23:43:46 +02:00
crumblingstatue
7a3018c2b1 Use the world "tile" instead of "block" 2023-04-01 21:03:09 +02:00
crumblingstatue
fbc7e35f9e Add tile graphic 2023-04-01 21:01:14 +02:00
crumblingstatue
d78726eb5b Add some world defs 2023-04-01 20:12:09 +02:00