Small Update - Texture Gaps


Contrary to what I said before I decided to work on this a little more and see what I could do about the unsightly texture gaps above the floor/ceiling and walls.

Couple of things:

* Moved the floor/ceiling up/down two pixels with the following code:

"for y=lineOffset+2+lineHeight, windowHeight do"

Added the +2 to move them up and down which better aligns them.

* Also changed the way the X direction is rendered which closed the ceiling gap "mostly". It's moved half a pixel one way and so there's still a minute gap. Probably a better fix, but it's less ugly now.

* Added the ability to go to "Classic" mode:

Pressing "END" will toggle the floor/ceiling on/off. Increases frame rate and looks more like old school Wolf3D.

* Changed screen size.

Went from 320x180 (16:9) to 320x200 (Technically 4:3, but old DOS anyway)

Textures look a little better especially at a distance. Less stretched out. Scaler still works. (I love that thing.)

* Commented out some wall renderer code meant for debugging as it was causing the "0" (top left) pixel to be rendered as magenta.

Left the code in just in case someone wants to mess with textures so they have it, but it's now showing the entire texture.

*Moved collision back 5 units

Getting too close to the way would cause massive lag. Moving the collision back 5 units helps with lag and feels more like original Wolf3D.

Files

LOVE2D 11.4 Textured Raycaster 249 kB
May 22, 2023

Get 3DSage's Raycaster in LOVE2D 11.4 + SOURCE

Leave a comment

Log in with itch.io to leave a comment.