From 04b21153d5705a2af67666098cee46fae1b3bd1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Fri, 14 Sep 2018 12:25:34 +0200 Subject: [PATCH] Add comment --- demo1.cpp | 3 +++ demo2.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/demo1.cpp b/demo1.cpp index 9016b01..9f85c96 100644 --- a/demo1.cpp +++ b/demo1.cpp @@ -17,6 +17,9 @@ #define CAMERA_COLL_HEIGHT_BELOW ((3 * UNITS_PER_SQUARE) / 2) #define HORIZONTAL_FOV (UNITS_PER_SQUARE / 5) +//#define USE_DIST_APPROX 1 +// ^ This turns on distance approximation, which is a bit uglier and faster. + #include "general.hpp" #define LEVEL_X_RES 29 diff --git a/demo2.cpp b/demo2.cpp index a146c67..afbf7e1 100644 --- a/demo2.cpp +++ b/demo2.cpp @@ -822,7 +822,7 @@ void draw() { PixelInfo pos = mapToScreen(shotPosition,UNITS_PER_SQUARE,player.mCamera); - drawSprite(spritePlasma,pos.position.x * SUBSAMPLE, + drawSpriteSquare(spritePlasma,pos.position.x * SUBSAMPLE, pos.position.y,pos.depth, perspectiveScale(64,pos.depth)); }