|
|
|
|
@ -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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|