diff --git a/README.md b/README.md index e69de29..f75ec91 100644 Binary files a/README.md and b/README.md differ diff --git a/resources/ball.png b/resources/ball.png index f7b7411..4ead291 100644 Binary files a/resources/ball.png and b/resources/ball.png differ diff --git a/source/defines.h b/source/defines.h index 65b8b7f..0e49d37 100644 --- a/source/defines.h +++ b/source/defines.h @@ -5,7 +5,7 @@ constexpr char WINDOW_CAPTION[] = "vibe1_delta"; constexpr int SCREEN_WIDTH = 320; constexpr int SCREEN_HEIGHT = 240; constexpr int WINDOW_SIZE = 3; -constexpr int BALL_SIZE = 8; +constexpr int BALL_SIZE = 10; constexpr float GRAVITY_FORCE = 0.2f; constexpr Uint64 DEMO_SPEED = 1000 / 60; diff --git a/source/main.cpp b/source/main.cpp index 987538b..2edbaf8 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -235,7 +235,7 @@ void update() // Renderiza el contenido en la pantalla void render() { - SDL_SetRenderDrawColor(renderer, 32, 32, 32, 255); + SDL_SetRenderDrawColor(renderer, 64, 64, 64, 255); SDL_RenderClear(renderer); for (auto &ball : balls) diff --git a/source/texture.cpp b/source/texture.cpp index 9f3fde0..2e7cc41 100644 --- a/source/texture.cpp +++ b/source/texture.cpp @@ -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