Mejorar aspecto visual y configurar filtro nearest neighbor
- Cambiar tamaño de pelota de 8x8 a 10x10 píxeles - Aclarar color de fondo de (32,32,32) a (64,64,64) - Redibujar textura ball.png con mejor definición - Implementar filtro nearest neighbor para texturas píxel-perfect - Actualizar README.md con documentación completa del proyecto 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -79,6 +79,9 @@ bool Texture::loadFromFile(const std::string &file_path)
|
||||
// Obtiene las dimensiones de la imagen
|
||||
width_ = loaded_surface->w;
|
||||
height_ = loaded_surface->h;
|
||||
|
||||
// Configurar filtro nearest neighbor para píxel perfect
|
||||
SDL_SetTextureScaleMode(new_texture, SDL_SCALEMODE_NEAREST);
|
||||
}
|
||||
|
||||
// Destruye la superficie cargada
|
||||
|
||||
Reference in New Issue
Block a user