comment
This commit is contained in:
parent
024cf2cafe
commit
766ee272d5
1 changed files with 7 additions and 3 deletions
10
main.go
10
main.go
|
@ -51,10 +51,14 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
g := &engine.Game{
|
g := &engine.Game{
|
||||||
ScreenSize: image.Pt(320, 240),
|
ScreenSize: image.Pt(320, 240), // Window interior is this many pixels.
|
||||||
Projection: engine.IntProjection{X: 0, Y: 1},
|
Projection: engine.IntProjection{
|
||||||
|
// Each 1 voxel step in Z is projected as 1 in Y.
|
||||||
|
X: 0,
|
||||||
|
Y: 1,
|
||||||
|
},
|
||||||
VoxelScale: engine.Float3{
|
VoxelScale: engine.Float3{
|
||||||
// Each voxel counts for this much Eucliden space:
|
// Each voxel counts for this much Eucliden space.
|
||||||
X: 1,
|
X: 1,
|
||||||
Y: 1,
|
Y: 1,
|
||||||
Z: math.Sqrt(3),
|
Z: math.Sqrt(3),
|
||||||
|
|
Loading…
Reference in a new issue