some rebalancing

This commit is contained in:
Alexandre 2024-08-23 15:42:21 +02:00
parent 878e9d6540
commit ff4fb37e3a
5 changed files with 66 additions and 3 deletions

BIN
bin/back

Binary file not shown.

View File

@ -117,7 +117,7 @@ void drawNumberToRenderer(SDL_Renderer* renderer, imgs data, int n, int X, int Y
nIter--;
}
} else {
int toDraw = 0, remaining = -n, nIter = 1+ln_baseN(-n, 10);
int toDraw = 0, remaining = -n, nIter = ln_baseN(-n, 10);
drawDigitToRenderer(renderer, data, -727, X, Y, W, H);
while(nIter != 0) {
toDraw = remaining%10;

View File

@ -43,7 +43,7 @@ int main(int argc, char** argv) {
/* -------------------------------------------------------- */
//one_debug();
parse_configs("templates.txt", 23);
parse_configs("templates.txt", 30);
initialize(rend);

View File

@ -25,7 +25,7 @@ double epsilon_x = 0.0;
double epsilon_y = 0.0;
bool checkCollision() {
return unpack_coord(gridGet(map, player_cx, player_cy)->chdata.lines, player_x, player_y);
return (unpack_coord(gridGet(map, player_cx, player_cy)->chdata.lines, player_x, player_y));
}
void increment_x(double dx) {

View File

@ -34,6 +34,15 @@
1 1 1 0 0 1 1 1
1 1 1 0 0 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 0 0 0 0 0
1 1 1 0 0 0 0 0
1 1 1 0 0 1 1 1
1 1 1 0 0 1 1 1
1 1 1 0 0 1 1 1
1 1 1 1 1 1 1 1
1 0 0 0 0 0 0 1
1 0 0 0 0 0 0 1
@ -52,6 +61,15 @@
1 1 1 0 0 1 1 1
1 1 1 0 0 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
1 1 1 0 0 1 1 1
1 1 1 0 0 1 1 1
1 1 1 0 0 1 1 1
1 1 1 1 1 1 1 1
1 0 0 0 0 0 0 1
1 0 0 0 0 0 0 1
@ -70,6 +88,15 @@
1 1 1 1 1 1 1 1
1 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