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. --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index fff984c..25bd71f 100644 --- a/README.md +++ b/README.md @@ -18,10 +18,13 @@ In particular alpha blending is implemented in software. This was the result of - [X] Static sprite objects - [X] Skyclinder* - [X] No overdraw (without sprites, skyclinder) -- [ ] Variable height ceilings -- [ ] Walls extending from ceiling instead of floor +- [X] Variable height ceilings +- [X] Walls extending from ceiling instead of floor - [ ] Sprites look different from different directions - [ ] Animated textures +- [ ] Fluid-like floors +- [ ] Procedurally generated textures + *It's topologically a cylinder, not a box; hardware rendered for now @@ -37,4 +40,4 @@ The default keybinds are FRST for Forward, Left Strafe, Backward, Right Strafe a The code is GPLv3+, the artwork is CC-BY-SA 4.0 -I make use of the zig-sfml library, which is Copyright (C) 2021 Guigui220D under the terms of the MIT license. For details see `src/sfml/LICENCE` \ No newline at end of file +I make use of the zig-sfml library, which is Copyright (C) 2021 Guigui220D under the terms of the MIT license. For details see `src/sfml/LICENCE` -- cgit v1.3.1