From 63418dfa8adac1f9eee3c8357b54454d0bc0b0d5 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Fri, 26 Nov 2010 16:42:18 +0000 Subject: Use a constant for the player's left/right move amount --- Level.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Level.cpp') diff --git a/Level.cpp b/Level.cpp index 7da0bf4..0cecd50 100644 --- a/Level.cpp +++ b/Level.cpp @@ -82,7 +82,7 @@ void Level::draw(Screen *screen) { screen->blit(player.getX(), player.getY(), player.image, player.getClip()); // Scroll level - if (player.getX() == 0 || player.getX() >= SCREEN_WIDTH - MARCUS_WIDTH - 10) { + if (player.getX() == 0 || player.getX() >= SCREEN_WIDTH - MARCUS_WIDTH - MOVE_AMOUNT) { if (player.getXVel() < 0 || player.getXVel() > 0) cameraX -= player.getXVel(); } -- cgit v1.2.3