Commit graph

590 commits

Author SHA1 Message Date
34857eabbc Add spawn coordinates 2015-02-02 18:33:21 +01:00
db59b73856 Refactor info generation 2015-02-02 17:56:43 +01:00
8bbc75d42f Block: don't use lighting 2015-02-02 17:31:55 +01:00
22bc6db52a Chunk: zero data buffers to avoid using unitialized data 2015-02-02 17:13:51 +01:00
f8a66ee6b6 viewer: always use nearest-neighbor filter for zooming 2015-02-02 14:29:41 +01:00
410106b798 Allow zooming in to level 3 2015-02-02 14:18:04 +01:00
db5dbe26d8 viewer: allow zooming in by one step 2015-02-02 10:53:23 +01:00
32c967c1e9 viewer: better mobile browser support 2015-02-02 10:47:32 +01:00
8ec33899d5 Make the default zoom level 0 instead of 1 2015-02-02 09:58:41 +01:00
9395b1f01d viewer: add repository link 2015-02-02 09:34:38 +01:00
e922dd601e Add map viewer based on Leaflet 2015-02-02 09:08:36 +01:00
fd4ce45885 Generate info file 2015-02-02 05:13:07 +01:00
89baed4ed5 Region: make visitor argument a reference 2015-02-02 04:50:08 +01:00
8bdbfd3ec0 Factor out filename check 2015-02-02 04:47:40 +01:00
213124ec57 Output "normal" messages to stdout
This makes it easier to filter for the errors
2015-02-02 03:53:49 +01:00
75671b4b96 Catch exceptions for single regions 2015-02-02 03:38:49 +01:00
a3d6648fa6 Workaround for old libraries without regex support 2015-02-02 03:33:43 +01:00
bedd81dce6 Don't explicitly include setjmp
libpng does this for us.
2015-02-02 03:20:25 +01:00
58adcc4c15 Skip unchanged regions 2015-02-02 03:06:22 +01:00
248b9e319d Convert all regions with one call 2015-02-02 02:25:56 +01:00
8db3a5b94f Use DIM constant as PNG dimension 2015-02-02 01:47:16 +01:00
8c1629af42 Change region reader to a visitor pattern
Not keeping the whole region in memory reduces the needed space
to less than 5MB (from about 140).
2015-02-02 01:41:17 +01:00
1e5e315816 Chunk: refactor getTopLayer() 2015-02-02 00:46:39 +01:00
22b9cfcb8b Move ressource files to a separate directory 2015-02-02 00:31:52 +01:00
843b3abde6 Extend colors by metadata 2015-02-02 00:26:09 +01:00
9b1d92387d Use biome data 2015-02-01 15:19:18 +01:00
143b9f6c78 Add support for biome colors, fix block type indices 2015-02-01 15:10:07 +01:00
e880f8997f Performance improvements 2015-02-01 14:35:31 +01:00
8b09f6f4ec Handle lighting and depth 2015-02-01 14:02:04 +01:00
d26fe3d9f8 Write PNG files
No biome colors or light levels yet...
2015-02-01 11:58:50 +01:00
cd45c4009c Compute top non-air layer
This doesn't yet ignore non-opaque blocks.
2015-02-01 07:47:22 +01:00
2d2671a686 Use buffer API for chunk decompression 2015-02-01 06:04:56 +01:00
18ed3d4c5d Further chunk parsing 2015-02-01 05:54:42 +01:00
d922636311 Don't throw an exception when a compound field is not found 2015-02-01 05:18:51 +01:00
8403a4e71c Start analyzing the chunks 2015-02-01 05:18:35 +01:00
8a8a41a800 Parse chunk data on demand 2015-02-01 04:14:42 +01:00
fc1fc8fbbc Use template argument for list subtype, extract further information from chunks 2015-02-01 03:21:57 +01:00
a6a2a62812 More convenient tag access 2015-02-01 01:38:20 +01:00
cbe6461882 Implement most of the chunk format 2015-02-01 00:27:01 +01:00
1e74afda41 Initial commit 2015-01-31 15:07:47 +01:00