canviat abs per fabs

This commit is contained in:
2025-03-24 13:44:46 +01:00
parent e2e3b7c779
commit 29b18e30b5
7 changed files with 54 additions and 35 deletions

View File

@@ -1,14 +1,22 @@
#include <SDL3/SDL.h>
#include "texture.h"
#include "ball.h"
#include "defines.h"
#include "dbgtxt.h"
#include <iostream>
#include <vector>
#include <array>
#include <cstdlib>
#include <ctime>
#include <memory>
#include <SDL3/SDL_error.h> // for SDL_GetError
#include <SDL3/SDL_events.h> // for SDL_EventType, SDL_PollEvent, SDL_Event
#include <SDL3/SDL_init.h> // for SDL_Init, SDL_Quit, SDL_INIT_VIDEO
#include <SDL3/SDL_keycode.h> // for SDLK_1, SDLK_2, SDLK_3, SDLK_4, SDLK_5
#include <SDL3/SDL_render.h> // for SDL_SetRenderDrawColor, SDL_CreateRend...
#include <SDL3/SDL_stdinc.h> // for Uint64
#include <SDL3/SDL_timer.h> // for SDL_GetTicks
#include <SDL3/SDL_video.h> // for SDL_CreateWindow, SDL_DestroyWindow
#include <array> // for array
#include <cstdlib> // for rand, srand
#include <ctime> // for time
#include <iostream> // for basic_ostream, char_traits, operator<<
#include <memory> // for unique_ptr, shared_ptr, make_shared
#include <string> // for operator+, string, to_string
#include <vector> // for vector
#include "ball.h" // for Ball
#include "dbgtxt.h" // for dbg_init, dbg_print
#include "defines.h" // for SCREEN_WIDTH, SCREEN_HEIGHT, WINDOW_SIZE
#include "texture.h" // for Texture
// Variables globales
SDL_Window *window = nullptr;