diff --git a/IsometricMap/isometricMap.c b/IsometricMap/isometricMap.c index 1fefdb9..c00e483 100644 --- a/IsometricMap/isometricMap.c +++ b/IsometricMap/isometricMap.c @@ -183,6 +183,7 @@ void IsometricMapDraw(Game *game){ IsometricMapProject(game->layers[0], game->camera, botleft.x, botleft.y, &botleft); Vector2 botright = {windowWidth, windowHeight}; IsometricMapProject(game->layers[0], game->camera, botright.x, botright.y, &botright); + int extraTiles = 1; int n = 0; int itmp = (int)(topleft.x / game->layers[0]->textureWidth) - extraTiles; @@ -209,13 +210,13 @@ void IsometricMapDraw(Game *game){ Node *current = game->sprites->head; int extraPixels = 0; + // drawing some extra corner pixels + // if extraPixels == 0 you can see flickering in the corners + itmp = (int)(topleft.x) - extraPixels; + jtmp = (int)(topright.y) - extraPixels; + maxI = (int)(botright.x) + extraPixels; + maxJ = (int)(botleft.y) + extraPixels; while(current != 0){ - // drawing some extra corner pixels - // if extraPixels == 0 you can see flickering in the corners - itmp = (int)(topleft.x) - extraPixels; - jtmp = (int)(topright.y) - extraPixels; - maxI = (int)(botright.x) + extraPixels; - maxJ = (int)(botleft.y) + extraPixels; // Only drawing the Sprites which are within Camera view if( current->data.x > itmp && current->data.y > jtmp && diff --git a/List/list.c b/List/list.c index 53ea5d1..8395697 100644 --- a/List/list.c +++ b/List/list.c @@ -114,15 +114,15 @@ void ListDrawAllSprites(List *list, IsometricMap **map, Camera2D *camera){ IsometricMapProject(map[0], camera, botleft.x, botleft.y, &botleft); Vector2 botright = {GetScreenWidth(), GetScreenHeight()}; IsometricMapProject(map[0], camera, botright.x, botright.y, &botright); - int itmp, jtmp, maxI, maxJ; int extraPixels = 0; + int itmp, jtmp, maxI, maxJ; + itmp = (int)(topleft.x) - extraPixels; + jtmp = (int)(topright.y) - extraPixels; + maxI = (int)(botright.x) + extraPixels; + maxJ = (int)(botleft.y) + extraPixels; while(current != 0){ // drawing some extra corner pixels // if extraPixels == 0 you can see flickering in the corners - itmp = (int)(topleft.x) - extraPixels; - jtmp = (int)(topright.y) - extraPixels; - maxI = (int)(botright.x) + extraPixels; - maxJ = (int)(botleft.y) + extraPixels; // Only drawing the Sprites which are within Camera view if( current->data.x > itmp && current->data.y > jtmp && diff --git a/animation.o b/animation.o new file mode 100644 index 0000000..75e4a75 Binary files /dev/null and b/animation.o differ diff --git a/animationHandler.o b/animationHandler.o new file mode 100644 index 0000000..21f4c01 Binary files /dev/null and b/animationHandler.o differ diff --git a/bucket.o b/bucket.o new file mode 100644 index 0000000..8143d5c Binary files /dev/null and b/bucket.o differ diff --git a/game.o b/game.o new file mode 100644 index 0000000..f438d02 Binary files /dev/null and b/game.o differ diff --git a/inputHandler.o b/inputHandler.o new file mode 100644 index 0000000..a96eea9 Binary files /dev/null and b/inputHandler.o differ diff --git a/isometricMap.o b/isometricMap.o new file mode 100644 index 0000000..45b4414 Binary files /dev/null and b/isometricMap.o differ diff --git a/isometricRenderer.o b/isometricRenderer.o new file mode 100644 index 0000000..605d535 Binary files /dev/null and b/isometricRenderer.o differ diff --git a/list.o b/list.o new file mode 100644 index 0000000..869c286 Binary files /dev/null and b/list.o differ diff --git a/main.o b/main.o new file mode 100644 index 0000000..f0cbcd6 Binary files /dev/null and b/main.o differ diff --git a/mergeSort.o b/mergeSort.o new file mode 100644 index 0000000..a2a49b1 Binary files /dev/null and b/mergeSort.o differ diff --git a/spiel b/spiel new file mode 100755 index 0000000..b30c5e4 Binary files /dev/null and b/spiel differ diff --git a/sprite.o b/sprite.o new file mode 100644 index 0000000..6d63660 Binary files /dev/null and b/sprite.o differ diff --git a/textureatlas.o b/textureatlas.o new file mode 100644 index 0000000..ddd110b Binary files /dev/null and b/textureatlas.o differ diff --git a/tile.o b/tile.o new file mode 100644 index 0000000..ab55776 Binary files /dev/null and b/tile.o differ