ice_iix
77cd4ecf35
Use field init shorthand, instead of x:x, just x,
...
https://rust-lang-nursery.github.io/edition-guide/rust-2018/data-types/field-init-shorthand.html
find src -name '*.rs' -exec perl -pe 's/\b(\w+): \1,/$1,/g' -i {} \;
2018-11-04 13:43:30 -08:00
ice_iix
411e4f69a6
Remove unnecessary 'extern crate's in Rust 2018 edition, import macros
...
https://rust-lang-nursery.github.io/edition-guide/print.html#no-more-extern-crate
https://rust-lang-nursery.github.io/edition-guide/rust-2018/macros/macro-changes.html
https://github.com/iceiix/steven/pull/13#issuecomment-435702507
2018-11-04 12:39:23 -08:00
ice_iix
a40cd43a2e
Update to use crate:: for current crate, for Rust 2018 edition
...
From `cargo fix --edition`, see https://rust-lang-nursery.github.io/edition-guide/print.html#the-crate-keyword-refers-to-the-current-crate
2018-11-04 12:06:00 -08:00
ice_iix
db02f9e790
Update try!() to new ? syntax for Rust 2018 edition
...
Not automatically updated, see https://users.rust-lang.org/t/why-does-cargo-fix-replace-try-with-r-try-instead-of/21972/3
There are other tools to replace it, btu this is what I used:
find src -name '*.rs' -exec perl -MRegexp::Common -0777 -pe'$bp=$RE{balanced}{-parens=>"()"}; s/try\!($bp)/substr($1, 1, length($1) - 2) . "?"/ges' -i {} \;
2018-11-04 11:48:51 -08:00
iceiix
90aaeaf16a
Support beta Rust release. Closes #8 ( #11 )
...
* Remove seemingly unneeded const on MetadataKey<T> new
* Change biome temperature/moisture to integer, x100 to remove floating-point so can use within stable 'const fn'
* Remove unstable const_fn feature, now using stable const fn: see https://www.reddit.com/r/rust/comments/9msqfn/const_fn_soon_on_stable_rust/
* Test on Rust beta (awaiting 1.31 release for stable)
* Update readme for beta Rust support
2018-11-02 16:57:23 -07:00
ice_iix
80c740c1c5
Update to cgmath 0.16.1, collision 0.18.0
...
https://github.com/iceiix/steven/issues/4
2018-10-27 18:11:26 -07:00
ice_iix
2f861f815a
Use std::time for 5ms light updates instead of time crate
...
More progress on https://github.com/iceiix/steven/issues/3
2018-09-29 22:36:55 -07:00
llogiq
5e0c041a71
Fixed another batch of clippy warnings
...
Those are mostly readability-related. Also did a cargo update.
2016-09-15 15:15:52 +01:00
Thinkofname
f8be801eac
Improve biome color handling
2016-04-24 20:09:24 +01:00
Thinkofname
3038596b27
Simplify chunk loading
2016-04-21 21:20:28 +01:00
Thinkofname
d719e117ad
Work around a block mapping bug
2016-04-21 13:38:49 +01:00
Thinkofname
feb7ea1630
Fix a crash caused by duplicate block mappings
2016-04-21 12:55:42 +01:00
Thinkofname
23e779c0d7
Make BlockSnapshots use BlockStorage
2016-04-20 21:52:04 +01:00
Thinkofname
94bfc1493b
Make the storage system used for chunk sections reusable
2016-04-20 21:52:04 +01:00
Thinkofname
027134f4c6
Better handling for unused blocks found during chunk load ( Fixes #34 )
2016-04-08 01:48:45 +01:00
Thinkofname
51ec66ec5c
Don't clean up air blocks from the block map on chunk load ( Fixes #34 )
2016-04-08 01:18:08 +01:00
Thinkofname
a0ae0465b0
Don't over resize chunk sections
2016-04-08 01:01:28 +01:00
Thinkofname
2a21429685
Restore the original lighting when updating a chunk
2016-04-05 21:41:39 +01:00
Thinkofname
c117f28b2a
Block entity support, implement signs
2016-04-04 22:08:24 +01:00
Thinkofname
3fb58a1b2c
Smooth biome colors + biome bug fixes
2016-04-04 15:05:24 +01:00
Thinkofname
17cfa26532
Remove unused block entries from chunks sent by the server
2016-04-04 13:24:33 +01:00
Thinkofname
1544543c6a
Optimize chunk loading
2016-04-04 12:37:21 +01:00
Thinkofname
8094fbbd0a
Fix chunks being culled at the edge of the screen when they shouldn't
2016-04-03 23:00:00 +01:00
Thinkofname
ed4399a3e6
Default sky light to 15 when out of bounds
2016-04-03 21:03:56 +01:00
Thinkofname
98ecd348c6
Replace usages of x,y,z for block positions with Position
2016-04-03 20:53:40 +01:00
Thinkofname
92d773bd72
Move blocks into its own crate to speed up compile times
2016-04-03 18:26:52 +01:00
Scetch
051f836fde
Remove unused Display impl.
2016-04-03 11:16:51 -04:00
Scetch
dc9e70bd72
Implement lighting for various blocks.
2016-04-03 10:59:44 -04:00
Thinkofname
222c095d8c
Fix bounds check on chunk functions
2016-04-03 15:42:54 +01:00
Thinkofname
74c507ec7e
Initial implementation of light updates
2016-04-03 15:08:36 +01:00
Thinkofname
e7cef1eea7
Simplify material handling to reduce duplicates
2016-04-03 12:58:53 +01:00
Thinkofname
d2c5d0641c
Fix collisions for slabs
2016-04-03 01:55:10 +01:00
llogiq
0b8cc33c17
Fixed various clippy warnings
2016-04-03 01:26:31 +01:00
Scetch
4efa8c936c
Fix some simple collisions.
2016-04-02 12:05:15 -04:00
Scetch
62f33ac712
Don't silently fail.
2016-04-01 17:07:52 -04:00
Scetch
b696ade883
Slab collision.
2016-04-01 17:02:05 -04:00
Thinkofname
2ad817c540
Flag surrounding sections as dirty when setting a block
2016-04-01 21:17:21 +01:00
Thinkofname
0d9073420c
Add fancy clouds
2016-04-01 20:01:10 +01:00
Scetch
c59aca6cd8
Holy collisions batman.
2016-04-01 14:56:08 -04:00
Scetch
c8026743cf
Fix most connectables, mycelium, and pumpkin/melon stem tints.
2016-04-01 12:45:08 -04:00
Thinkofname
c9c44e9309
Fix a few spotted mistakes in blocks
2016-04-01 11:23:23 +01:00
Thinkofname
34c4d5d54d
Fix redstone wire
2016-04-01 11:17:27 +01:00
Scetch
96d4184933
Some more progress. Updated TODO list. I'm sorry.
2016-04-01 01:04:08 -04:00
Thinkofname
b161e3004c
Fix leaves2's culling
2016-03-31 20:51:59 +01:00
Scetch
643737c00f
Fix portal, hay bale and purpur pillar.
2016-03-31 13:18:52 -04:00
Thinkofname
7f70fd7dfe
Fix double flowers data value
...
Apparently the unused bits do get used sometimes
2016-03-31 15:39:22 +01:00
Thinkofname
480b7afd3b
Multipart model support
2016-03-31 14:59:40 +01:00
Scetch
35d9a2aefa
99 broken blocks in the world, 99 brocken blocks. Track one down, patch it around, 100 broken blocks in the world.
2016-03-30 09:37:04 -04:00
Thinkofname
ec50947617
Fix trapdoors
2016-03-29 21:04:35 +01:00
Scetch
d621528bb8
A few more block fixes.
2016-03-29 11:14:58 -04:00
Thinkofname
81dd2adc42
Model loading changes and a few more block fixes
2016-03-29 14:52:07 +01:00
Thinkofname
af33935f47
Implement update_state for doors + fixes for various blocks
2016-03-29 13:44:46 +01:00
Scetch
1a50332150
Implement block data for a lot of blocks.
2016-03-29 00:46:00 +01:00
Thinkofname
fc0a0e3090
Don't cull the chunk section the player is standing in
2016-03-28 00:18:55 +01:00
Thinkofname
7f1e859a87
Implement more blocks
2016-03-26 18:48:10 +00:00
Thinkofname
c70f9548c6
Follow some of clippy's suggestions
2016-03-26 14:24:26 +00:00
Thinkofname
c25dba3c8b
Fix some warnings
2016-03-26 13:28:14 +00:00
Thinkofname
25a743703c
Implement stairs
2016-03-26 13:21:19 +00:00
Thinkofname
0855424e52
Move Direction and BlockVertex into better locations
2016-03-26 11:46:37 +00:00
Thinkofname
fdfdfa71e2
Add a way to do state updates for blocks
2016-03-26 11:40:53 +00:00
Thinkofname
e43b86e750
Fix a typo in Farmland's model name
2016-03-26 10:19:50 +00:00
Thinkofname
75eb62c975
Collisions and normal style movement
2016-03-26 10:19:16 +00:00
Thinkofname
d5274c0b5b
Add a workaround for leaves' culling changes
2016-03-25 21:15:13 +00:00
Thinkofname
ba29de40ae
Update to 1.9.0
2016-03-25 20:56:45 +00:00
Thinkofname
69139b2933
Add most blocks without full implementation
2016-03-25 17:30:29 +00:00
Thinkofname
63da7e5452
Fix a mistake with log's data value
2016-03-25 14:26:55 +00:00
Thinkofname
3738c5a0c0
Liquid rendering
2016-03-25 09:47:39 +00:00
Thinkofname
d7bc0b2b0f
Transparent renderering
2016-03-25 01:17:03 +00:00
Thinkofname
de673f1ee1
Implement better chunk culling
2016-03-24 23:27:22 +00:00
Thinkofname
7692c54cf7
More layout changes to chunk rendering
2016-03-24 21:47:11 +00:00
Thinkofname
70ccd5cd3d
Tidy up chunk rendering
2016-03-24 21:13:24 +00:00
Thinkofname
99a500b4dd
Implement biome colors
2016-03-24 19:39:14 +00:00
Thinkofname
f8b8c5eea4
Initial work on implementing biomes
2016-03-24 19:20:26 +00:00
Thinkofname
e149a7eca5
Tidy up block defining
2016-03-24 18:37:51 +00:00
Thinkofname
480bfcba5e
Add a few more blocks
2016-03-24 18:09:28 +00:00
Thinkofname
12b1dd6445
Initial block model support
2016-03-24 15:39:57 +00:00
Thinkofname
baeb6b94aa
Rework block system
2016-03-23 21:10:40 +00:00
Thinkofname
2969dfe799
Failed attempt at working with the block system
2016-03-23 18:36:52 +00:00
Thinkofname
49a749534c
Don't use the default hasher
2016-03-22 19:49:11 +00:00
Thinkofname
e6477bd186
Spectator style movement + chunk unloading
2016-03-21 22:34:57 +00:00
Thinkofname
217ec33413
Render chunks nearest to the player first
2016-03-21 16:51:19 +00:00
Thinkofname
99caa01032
Implement basic culling
2016-03-21 16:36:50 +00:00
Thinkofname
ce1c286801
Implement chunk loading
2016-03-21 14:05:13 +00:00
Thinkofname
189c063f67
First attempt at block handling rework
2016-03-20 00:29:35 +00:00
Thinkofname
6bee18b68c
Initial rendering implementation
2016-03-19 18:09:10 +00:00
Thinkofname
ad81ef8f17
Basic chunk building (not rendering)
2016-03-19 16:32:13 +00:00
Thinkofname
5f17aead7e
Base implementation for worlds/blocks
2016-03-18 22:24:30 +00:00