Fixed color palette and player starting location
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -165,7 +165,15 @@ class RaycasterPainter extends CustomPainter {
|
||||
// 1. PERFECT TEXTURE MAPPING
|
||||
// Wolf3D stores textures in pairs. Even = N/S (Light), Odd = E/W (Dark).
|
||||
int texNum = ((hitWallId - 1) * 2).clamp(0, textures.length - 2);
|
||||
if (side == 1) texNum += 1; // Instantly use the native dark texture!
|
||||
|
||||
if (hitWallId >= 90) {
|
||||
texNum = 98; // 98 is the canonical index for the Wood Door in VSWAP
|
||||
// Optional: Doors don't usually have a dark E/W variant, so we don't add +1 for side
|
||||
} else {
|
||||
// Standard wall texture pairing
|
||||
texNum = ((hitWallId - 1) * 2).clamp(0, textures.length - 2);
|
||||
if (side == 1) texNum += 1;
|
||||
}
|
||||
|
||||
int texX = (wallX * 64).toInt().clamp(0, 63);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user