From f99fd52c5cfba6ce9fe959f057fdcc7266a1c33e Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Tue, 17 May 2022 21:05:07 +0200 Subject: fuck --- src/pixelfunc.cpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'src/pixelfunc.cpp') diff --git a/src/pixelfunc.cpp b/src/pixelfunc.cpp index 08bbee6..13da915 100644 --- a/src/pixelfunc.cpp +++ b/src/pixelfunc.cpp @@ -50,33 +50,16 @@ void draw_doom() camera.resolution.x = SCREEN_W; camera.resolution.y = SCREEN_H; - for (int i = 0; i < 10000; ++i) + for (int i = 0; i < 100; ++i) { draw(); - int squareX = RCL_divRoundDown(camera.position.x,RCL_UNITS_PER_SQUARE); - int squareY = RCL_divRoundDown(camera.position.y,RCL_UNITS_PER_SQUARE); - if (rand() % 100 == 0) { - dx = 1 - rand() % 3; - dy = 1 - rand() % 3; dr = 1 - rand() % 3; } - while (heightAt(squareX + dx,squareY + dy) > 0) - { - dx = 1 - rand() % 3; - dy = 1 - rand() % 3; - dr = 1 - rand() % 3; - } - - camera.position.x += dx * 200; - camera.position.y += dy * 200; - camera.direction += dr * 10; - camera.height = RCL_UNITS_PER_SQUARE + RCL_sin(frame * 16) / 2; - frame++; } } -- cgit v1.2.3