From 824d635e88bd6f1ce18df90092d146a29c6c671b Mon Sep 17 00:00:00 2001 From: Pecusx Date: Mon, 15 May 2023 23:54:40 +0200 Subject: [PATCH] Last (?) code optimization for more than 6 tanks. --- constants.asm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/constants.asm b/constants.asm index 0f248fc..4ec1a8f 100644 --- a/constants.asm +++ b/constants.asm @@ -201,12 +201,9 @@ bittable2 ;---------------------------- disktance ;tanks distance .by 0,0 - .by screenwidth/3 - .by screenwidth/4 - .by screenwidth/5 - .by screenwidth/6 - .by screenwidth/7 - ;max number of players=6 :) +.REPT MaxPlayers-1, #+3 + .by screenwidth/:1 +.ENDR ; this table is for deciding where a tank should slide ; accordingly to what is below the tank