From d4f2376bb0ea219b79dac3f4f37b77342ca6ef4a Mon Sep 17 00:00:00 2001 From: tslil clingman <> Date: Thu, 7 Oct 2021 11:25:09 -0400 Subject: Variable height ceilings! Plus bonus graphical artefacts around the edges of such! In the end the majority of this code was rather easy: take the upwards floor drawing code and reflect it. However, there were many edge-cases and plenty of off-by-one pixels and rounding issues that didn't quite work the same way going down as they do going up. Also the object drawing code used to take advantage of the fact that the z-buffer was painted bottom-up only, so that required change too. --- src/constants.zig | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/constants.zig') diff --git a/src/constants.zig b/src/constants.zig index d363af5..450155f 100644 --- a/src/constants.zig +++ b/src/constants.zig @@ -28,5 +28,3 @@ pub const BackTextureWidth: f32 = 1280; pub const BackTextureHeight: f32 = 240; pub const TextureDim: f32 = 32.0; - -pub const MAX_HEIGHT: f32 = 2; -- cgit v1.3.1