Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item drop entities? (voxel-debris) #1

Open
deathcap opened this issue Dec 26, 2013 · 0 comments
Open

Item drop entities? (voxel-debris) #1

deathcap opened this issue Dec 26, 2013 · 0 comments

Comments

@deathcap
Copy link
Member

Currently harvested items are directly added to player inventory. An alternative maybe worth considering is to drop the items on the ground, as new objects, then only add to player inventory when collided with.

https://github.com/substack/voxel-debris can do this. See also previous notes in voxel/voxelmetaverse#15


An interesting alternative to item drops: when a block is mined, add directly to player inventory. Requires an inventory system of course, but this is what Minetest does. Mentioned in this video: https://www.youtube.com/watch?v=ss9kAQCAzVc and it was highly praised, well received. Also could offer better performance, directly adding the items to inventory instead of spawning item drops and continuously collision-checking (for pickups).


Not sure if adding debris is worth it. Most harvested blocks are collected up immediately anyways. And there is this well-written post from /r/gamedev: https://pay.reddit.com/r/gamedev/comments/1toutc/what_makes_mmo_networking_code_so_difficult/cea1w63

Why can't we just throw items on the ground from our inventory?
[…]
The answer is worst-case scalability issues.

deathcap added a commit to voxel/voxelmetaverse that referenced this issue Dec 27, 2013
Would go better in voxel-harvest voxel/voxel-harvest#1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant