diff --git a/demo2.cpp b/demo2.cpp index 1f8b4ea..39a5c01 100644 --- a/demo2.cpp +++ b/demo2.cpp @@ -902,8 +902,6 @@ Unit textureAt(int16_t x, int16_t y) Unit rollAt(int16_t x, int16_t y) { - Unit square = textureAt(x,y); - if (x >= 0 && x < LEVEL_X_RES && y >= 0 && y < LEVEL_Y_RES && level[(LEVEL_Y_RES - y -1) * LEVEL_X_RES + x] == 6) return sinInt(pokitto.frameCount * 10) + DOOR_ROLL_SIGN * UNITS_PER_SQUARE; @@ -1012,7 +1010,6 @@ int main() int16_t moveDirection; int16_t rotationDirection; - bool strafe; while (pokitto.isRunning()) { @@ -1026,7 +1023,6 @@ int main() moveDirection = 0; rotationDirection = 0; - strafe = false; if (shotFired) { diff --git a/general.hpp b/general.hpp index 4d6c7c9..a5b7169 100644 --- a/general.hpp +++ b/general.hpp @@ -197,8 +197,6 @@ void inline drawSpriteSquare(const unsigned char *sprite, int16_t x, int16_t y, x -= size / 2; y -= size / 2; - Unit step = UNITS_PER_SQUARE / size; - uint8_t c; int16_t jTo = size - max(0,y + size - 88);