diff --git a/README.md b/README.md index 53efbdc..3d548fa 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,4 @@ Fantasy Welt oder Realistisch? + LinkedList erweitern + Sprites Animationen etc improven -### WiP - -+ Sprite Auswahlrechteck in inputHandler umschreiben auf World Koordinaten. Sprites an sich sind auf World Koordinaten geƤndert \ No newline at end of file +### WiP \ No newline at end of file diff --git a/spiel b/spiel index 457f303..7ecb963 100755 Binary files a/spiel and b/spiel differ diff --git a/sprite.c b/sprite.c index fe059c6..1c4fbad 100644 --- a/sprite.c +++ b/sprite.c @@ -27,11 +27,11 @@ void DrawSpriteToWorld(Sprite *sprite, IsometricMap *map, Camera2D *camera){ pos.x -= camera->target.x; pos.y -= camera->target.y; if(sprite->selected){ - DrawTexture(*sprite->texture, pos.x, pos.y, WHITE); + DrawTexture(*sprite->texture, pos.x - sprite->texture->width/4, pos.y - sprite->texture->height/4, BLACK); //DrawTexture(*sprite->texture, sprite->x, sprite->y, BLACK); } else{ - DrawTexture(*sprite->texture, pos.x, pos.y, WHITE); + DrawTexture(*sprite->texture, pos.x - sprite->texture->width/4, pos.y - sprite->texture->height/4, WHITE); } } diff --git a/sprite.o b/sprite.o index 1db1cb1..0c3146f 100644 Binary files a/sprite.o and b/sprite.o differ