aboutsummaryrefslogtreecommitdiff
path: root/src/renderConstants.zig
diff options
context:
space:
mode:
authortslil clingman <>2021-09-01 15:48:09 -0400
committertslil clingman <>2021-09-01 15:54:03 -0400
commitde255063b234871021da004d32964e25d549d3e4 (patch)
tree5d687c07ad9cefd1574aacec31ab2b3019837b65 /src/renderConstants.zig
parentc97c9fc4203dc12982b590d3bfae1d419cf59fbe (diff)
Scale the projection plane to the screen correctly
Also bumped up the textures to 32x32
Diffstat (limited to 'src/renderConstants.zig')
-rw-r--r--src/renderConstants.zig8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/renderConstants.zig b/src/renderConstants.zig
index aa477ee..2dbadee 100644
--- a/src/renderConstants.zig
+++ b/src/renderConstants.zig
@@ -14,11 +14,13 @@
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
+pub const screenWidth: f32 = 1024;
+pub const screenHeight: f32 = 768;
pub const planeWidth = 320;
pub const planeHeight = 240;
-pub const backTextureWidth: f32 = 1280.0;
-pub const backTextureHeight: f32 = 240.0;
+pub const backTextureWidth: f32 = 1280;
+pub const backTextureHeight: f32 = 240;
-pub const wallTextureDim: f32 = 16.0;
+pub const wallTextureDim: f32 = 32.0;