Voxel resources
Tell me anything about the project you'd like to me to put in the post.
- when you started Voxelman and why you chose D
- which of D's features have been a real benefit and how
- which features (or bugs) have caused you frustration or difficulties and how
- what your ultimate goals are for the project.
Now, as the project grew up and my skills matured, my motivation has much less oscilations than at the beginning. I wanted to make a project like this for a couple of years (I beleive since I first played Minecraft Classic). I was thinking of cool things I can do and improve, clever optimization tricks and all the low-level stuff. But never written any real code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module bytecodeplugin; | |
// lib | |
import std.datetime : MonoTime, Duration, msecs, dur; | |
import voxelman.log; | |
import voxelman.math; | |
import voxelman.geometry.box; | |
import pluginlib; | |
// plugins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static struct InputState | |
{ | |
ivec3 inputs = ivec3(0,0,0); | |
int boost = 1; | |
bool jump; | |
} | |
InputState gatherInputs() | |
{ | |
InputState state; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ip "localhost" | |
port 1234 | |
name "Player" | |
num_workers 4 | |
resolution 1280 720 | |
max_fps 120 | |
view_distance 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dub build --arch=x86_64 --config=server --vverbose --force | |
Using dub registry url 'http://code.dlang.org/' | |
Refreshing local packages (refresh existing: true)... | |
Looking for local package map at C:\ProgramData\dub\packages\local-packages.json | |
Looking for local package map at C:\Users\andrey\AppData\Roaming\dub\packages\local-packages.json | |
iterating dir C:\Users\andrey\AppData\Roaming\dub\packages\ | |
iterating dir C:\Users\andrey\AppData\Roaming\dub\packages\ entry anchovy-0.8.2 | |
Ignoring version specification (~master) for path based dependency ../../ | |
Ignoring version specification (~master) for path based dependency ../../ | |
iterating dir C:\Users\andrey\AppData\Roaming\dub\packages\ entry anchovy-0.8.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Version] | |
version=7.51 Build 020 | |
; environment for both 32/64 bit | |
[Environment] | |
DFLAGS="-I%@P%\..\..\src\phobos" "-I%@P%\..\..\src\druntime\import" | |
; optlink only reads from the Environment section so we need this redundancy | |
; from the Environment32 section (bugzilla 11302) |
WorldAccess wa
Linear access
foreach(index; 0..CHUNK_SIZE_CUBE)
{
wa.getBlock(index);
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Transform { | |
float x, y, z; | |
} | |
struct Velocity { | |
float x, y, z; | |
} | |
enum entityCountMax = 1_000_000; | |
enum entityCountMin = 100_000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// x86 release | |
// 0.000,294 secs byte | |
// 0.000,237 secs short | |
// 0.000,282 secs int | |
// 0.002,368 secs long | |
// 0.110,046 secs float | |
// 0.109,296 secs double | |
// 0.109,388 secs real | |
// | |
// x86_64 release |