diff options
| author | tslil clingman <> | 2021-10-11 21:55:39 -0400 |
|---|---|---|
| committer | tslil clingman <> | 2021-10-11 22:56:39 -0400 |
| commit | b21e399bd09577d2eef78d81c0db642ba4c390b7 (patch) | |
| tree | 34d0f1cadcc8de141f6dbe3552c521ec98201f2f /src/main.zig | |
| parent | cb15709551921e111d2648f7d6545e4d0e3fdcd6 (diff) | |
Fix many texture bugs, access memory in increasing order everywhere
- switch z_buffer to use screen space coordinates (why does y increase
downward!)
- extract pointless (re)calculations from inside hot loops, in
particular from object drawing but also to the extent allowed by
applicable law from floor and ceiling drawing
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig index c3647b4..1211529 100644 --- a/src/main.zig +++ b/src/main.zig @@ -67,11 +67,11 @@ pub fn main() !void { map.cells.items[16 * 7 + 7] = level.Cell{ .floor_height = 0.5, - .ceiling_height = 2, + .ceiling_height = 2.2, .lower_texture = 1, .upper_texture = 1, .floor_texture = 1, - .ceiling_texture = 2, + .ceiling_texture = 1, .draw_down = true, }; |
